SphereCommunity
guards help - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: guards help (/Thread-guards-help)



guards help - jexnico - 01-04-2018 10:17 AM

how to make sure that city guards do not kill criminal players and, instead, send us to jail for a set time?


RE: guards help - Leonidas - 01-04-2018 03:48 PM

// Will guards kill instantly or follow normal combat rules
GuardsInstantKill=0

Make sure that's set to 0.

And you could make a custom bow that calls a function on=@damage that sends them to jail.


RE: guards help - zottolo - 01-04-2018 04:24 PM

or you can work it out with @hit trigger


RE: guards help - Criminal - 01-05-2018 08:27 AM

go sphere_citizens.scp
search:
c_guard
c_guard_f

on=@hit
src.go jail


RE: guards help - Neissten - 01-18-2018 02:08 AM

Is it possible to make the guards do this at a certain percentage of the attacked player's health? I'd like to have the jail punishment done if the attacked player is near death.


RE: guards help - Tr0p1c4l - 01-18-2018 02:24 AM

on=@hit
if ( <src.hits> < <eval <src.maxhits>/100*30> )
src.go jail

i'm pretty new in sphere but it should be something like that