mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
hookshot clipping
This commit is contained in:
@@ -703,11 +703,11 @@ Thanks.
|
||||
for(var/i = 1;i<hookshot.maxlength;i++)
|
||||
var/obj/effect/overlay/hookchain/HC = hookshot.links["[i]"]
|
||||
if(HC.loc != hookshot)
|
||||
HC.forceMove(get_step(HC,direct),direct)
|
||||
HC.Move(get_step(HC,direct),direct)
|
||||
|
||||
if(hookshot.hook)
|
||||
var/obj/item/projectile/hookshot/hook = hookshot.hook
|
||||
hook.forceMove(get_step(hook,direct),direct)
|
||||
hook.Move(get_step(hook,direct),direct)
|
||||
if(direct & NORTH)
|
||||
hook.override_starting_Y++
|
||||
hook.override_target_Y++
|
||||
|
||||
@@ -298,6 +298,7 @@
|
||||
/obj/effect/overlay/hookchain/Destroy()
|
||||
if(shot_from)
|
||||
shot_from.panic = 1
|
||||
shot_from = null
|
||||
..()
|
||||
|
||||
//THE CHAIN THAT TETHERS STUFF TOGETHER
|
||||
|
||||
Reference in New Issue
Block a user