[READY]Pulling claw 2 (#33817)

Pulling claw is integrated circuit,which allows drones to pull things.
This commit is contained in:
arsserpentarium
2018-01-11 14:03:52 -06:00
committed by CitadelStationBot
parent b2021912d7
commit 1d91243ae2
10 changed files with 162 additions and 57 deletions
+7 -13
View File
@@ -335,7 +335,7 @@
return 1
//this and stop_pulling really ought to be /mob/living procs
/mob/proc/start_pulling(atom/movable/AM, supress_message = 0)
/mob/start_pulling(atom/movable/AM, supress_message = 0)
if(!AM || !src)
return FALSE
if(!(AM.can_be_pulled(src)))
@@ -410,20 +410,14 @@
setDir(D)
spintime -= speed
/mob/verb/stop_pulling()
/mob/stop_pulling()
..()
update_pull_hud_icon()
/mob/verb/stop_pulling1()
set name = "Stop Pulling"
set category = "IC"
if(pulling)
pulling.pulledby = null
var/mob/living/ex_pulled = pulling
pulling = null
grab_state = 0
update_pull_hud_icon()
if(isliving(ex_pulled))
var/mob/living/L = ex_pulled
L.update_canmove()// mob gets up if it was lyng down in a chokehold
stop_pulling()
/mob/proc/update_pull_hud_icon()
if(hud_used)