mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 22:12:58 +01:00
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:
@@ -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]!"))
|
||||
|
||||
Reference in New Issue
Block a user