mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
- Replaced all the .pulling = object instances with start_pulling() and stop_pulling(). Use these from now on. - Ian and Runtime will now no longer move when being pulled git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4155 316c924e-a436-60f5-8080-3fe189b3f50e
40 lines
947 B
Plaintext
40 lines
947 B
Plaintext
/turf/simulated/floor/engine/attack_paw(var/mob/user as mob)
|
|
return src.attack_hand(user)
|
|
|
|
/turf/simulated/floor/engine/attack_hand(var/mob/user as mob)
|
|
if ((!( user.canmove ) || user.restrained() || !( user.pulling )))
|
|
return
|
|
if (user.pulling.anchored)
|
|
return
|
|
if ((user.pulling.loc != user.loc && get_dist(user, user.pulling) > 1))
|
|
return
|
|
if (ismob(user.pulling))
|
|
var/mob/M = user.pulling
|
|
var/atom/movable/t = M.pulling
|
|
M.stop_pulling()
|
|
step(user.pulling, get_dir(user.pulling.loc, src))
|
|
M.start_pulling(t)
|
|
else
|
|
step(user.pulling, get_dir(user.pulling.loc, src))
|
|
return
|
|
|
|
/turf/simulated/floor/engine/ex_act(severity)
|
|
switch(severity)
|
|
if(1.0)
|
|
ReplaceWithSpace()
|
|
del(src)
|
|
return
|
|
if(2.0)
|
|
if (prob(50))
|
|
ReplaceWithSpace()
|
|
del(src)
|
|
return
|
|
else
|
|
return
|
|
|
|
/turf/simulated/floor/engine/blob_act()
|
|
if (prob(25))
|
|
ReplaceWithSpace()
|
|
del(src)
|
|
return
|
|
return |