Human Pinball (#10762)

Throwing a humanoid at another humanoid will knock both over.
This commit is contained in:
Geeves
2020-12-16 23:23:18 +02:00
committed by GitHub
parent ce4b382915
commit b98ea98ed6
2 changed files with 11 additions and 0 deletions
@@ -447,6 +447,11 @@ emp_act
visible_message("<span class='warning'>[src] is pinned to the wall by [O]!</span>","<span class='warning'>You are pinned to the wall by [O]!</span>")
src.anchored = 1
src.pinned += O
else if(ishuman(AM))
var/mob/living/carbon/human/H = AM
H.Weaken(3)
Weaken(3)
visible_message(SPAN_WARNING("[src] get knocked over by [H]!"), SPAN_WARNING("You get knocked over by [H]!"))
/mob/living/carbon/human/embed(var/obj/O, var/def_zone=null)
if(!def_zone) ..()