mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
Refactors preparePixelProjectile (#25567)
* preparePixelProjectile now just takes a target and source atom as parameters * remove commented out code * ahem * hopefully fixes null target nonsense in colossus * those who cannot remember the past are condemned to repeat It * i just woke up in a cold sweat at 5am in realization * reverts back to client-view based firing if source is a mob
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
var/obj/item/projectile/tether = new /obj/item/projectile/tether(get_turf(mod.wearer))
|
||||
tether.original = target
|
||||
tether.firer = mod.wearer
|
||||
tether.preparePixelProjectile(target, get_turf(target), mod.wearer)
|
||||
tether.preparePixelProjectile(target, mod.wearer)
|
||||
tether.fire()
|
||||
playsound(src, 'sound/weapons/batonextend.ogg', 25, TRUE)
|
||||
INVOKE_ASYNC(tether, TYPE_PROC_REF(/obj/item/projectile/tether, make_chain))
|
||||
|
||||
@@ -470,7 +470,7 @@
|
||||
var/obj/item/projectile/bomb = new /obj/item/projectile/bullet/reusable/mining_bomb(get_turf(mod.wearer))
|
||||
bomb.original = target
|
||||
bomb.firer = mod.wearer
|
||||
bomb.preparePixelProjectile(target, get_turf(target), mod.wearer)
|
||||
bomb.preparePixelProjectile(target, mod.wearer)
|
||||
bomb.fire()
|
||||
playsound(src, 'sound/weapons/grenadelaunch.ogg', 75, TRUE)
|
||||
drain_power(use_power_cost)
|
||||
|
||||
Reference in New Issue
Block a user