Add Goon-style pushing

This commit is contained in:
Aronai Sieyes
2020-05-06 20:27:55 -04:00
parent b2fa5ec136
commit e55f9d2deb

View File

@@ -224,7 +224,15 @@ default behaviour is:
for(var/obj/structure/window/win in get_step(AM,t))
now_pushing = 0
return
step(AM, t)
var/turf/T = AM.loc
var/turf/T2 = get_step(AM,t)
if(!T2) // Map edge
now_pushing = 0
return
var/move_time = movement_delay(loc, t)
move_time = DS2NEARESTTICK(move_time)
if(AM.Move(T2, t, move_time))
Move(T, t, move_time)
if(ishuman(AM) && AM:grabbed_by)
for(var/obj/item/weapon/grab/G in AM:grabbed_by)
step(G:assailant, get_dir(G:assailant, AM))