Stops the cargo tug from running over people leaning on walls (#21777)

as the title says, before I get a canon security charge from this bug.
This commit is contained in:
Casper3667
2026-02-02 17:09:09 +00:00
committed by GitHub
parent d0d0b3ce14
commit d9aeb0aca9
2 changed files with 14 additions and 0 deletions
+8
View File
@@ -227,6 +227,9 @@
playsound(src, 'sound/machines/vehicles/button.ogg', 50, FALSE)
/obj/vehicle/train/cargo/RunOver(var/mob/living/carbon/human/H)
if(HAS_TRAIT(H, TRAIT_LEANING))
return
var/list/parts = list(BP_HEAD, BP_CHEST, BP_L_LEG, BP_R_LEG, BP_L_ARM, BP_R_ARM)
H.apply_effects(5, 5)
@@ -236,11 +239,16 @@
/obj/vehicle/train/cargo/trolley/RunOver(var/mob/living/carbon/human/H)
..()
if(HAS_TRAIT(H, TRAIT_LEANING))
return
attack_log += "\[[time_stamp()]\] <span class='warning'>ran over [H.name] ([H.ckey])</span>"
/obj/vehicle/train/cargo/engine/RunOver(var/mob/living/carbon/human/H)
..()
if(HAS_TRAIT(H, TRAIT_LEANING))
return
if(is_train_head() && istype(load, /mob/living/carbon/human))
var/mob/living/carbon/human/D = load
to_chat(D, SPAN_DANGER("You ran over [H]!"))