mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
@@ -266,13 +266,19 @@ Auto Patrol: []"},
|
|||||||
src.mode = 0
|
src.mode = 0
|
||||||
walk_to(src,0)
|
walk_to(src,0)
|
||||||
|
|
||||||
// We re-assess human targets, before bashing their head in, in case their credentials change
|
|
||||||
if(target && istype(target, /mob/living/carbon/human))
|
|
||||||
var/threat = src.assess_perp(target, idcheck, check_records, check_arrest)
|
|
||||||
if(threat < 4)
|
|
||||||
target = null
|
|
||||||
|
|
||||||
if(target) // make sure target exists
|
if(target) // make sure target exists
|
||||||
|
// We re-assess human targets, before bashing their head in, in case their credentials change
|
||||||
|
if(istype(target, /mob/living/carbon/human))
|
||||||
|
var/threat = src.assess_perp(target, idcheck, check_records, check_arrest)
|
||||||
|
if(threat < 4)
|
||||||
|
frustration = 8
|
||||||
|
return
|
||||||
|
|
||||||
|
// The target must remain in view to complete the desire to bash its head in
|
||||||
|
if(!(target in view(search_range,src)))
|
||||||
|
frustration++
|
||||||
|
return
|
||||||
|
|
||||||
if(!lasercolor && Adjacent(target)) // If right next to perp. Lasertag bots do not arrest anyone, just patrol and shoot and whatnot
|
if(!lasercolor && Adjacent(target)) // If right next to perp. Lasertag bots do not arrest anyone, just patrol and shoot and whatnot
|
||||||
if(istype(src.target,/mob/living/carbon))
|
if(istype(src.target,/mob/living/carbon))
|
||||||
playsound(src.loc, 'sound/weapons/Egloves.ogg', 50, 1, -1)
|
playsound(src.loc, 'sound/weapons/Egloves.ogg', 50, 1, -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user