[READY]Pulling claw 2 (#33817)
Pulling claw is integrated circuit,which allows drones to pull things.
This commit is contained in:
committed by
CitadelStationBot
parent
b2021912d7
commit
1d91243ae2
+7
-13
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user