procs
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
/obj/vehicle/sealed/mecha/combat/durand/Initialize(mapload)
|
||||
. = ..()
|
||||
shield = new /obj/durand_shield(loc, src, layer, dir)
|
||||
RegisterSignal(src, COMSIG_MECHA_ACTION_TRIGGER, .proc/relay)
|
||||
RegisterSignal(src, COMSIG_PROJECTILE_PREHIT, .proc/prehit)
|
||||
RegisterSignal(src, COMSIG_MECHA_ACTION_TRIGGER, PROC_REF(relay))
|
||||
RegisterSignal(src, COMSIG_PROJECTILE_PREHIT, PROC_REF(prehit))
|
||||
|
||||
|
||||
/obj/vehicle/sealed/mecha/combat/durand/Destroy()
|
||||
@@ -156,7 +156,7 @@ own integrity back to max. Shield is automatically dropped if we run out of powe
|
||||
chassis = _chassis
|
||||
layer = _layer
|
||||
setDir(_dir)
|
||||
RegisterSignal(src, COMSIG_MECHA_ACTION_TRIGGER, .proc/activate)
|
||||
RegisterSignal(src, COMSIG_MECHA_ACTION_TRIGGER, PROC_REF(activate))
|
||||
|
||||
|
||||
/obj/durand_shield/Destroy()
|
||||
@@ -204,7 +204,7 @@ own integrity back to max. Shield is automatically dropped if we run out of powe
|
||||
playsound(src, 'sound/mecha/mech_shield_raise.ogg', 50, FALSE)
|
||||
set_light(l_range = MINIMUM_USEFUL_LIGHT_RANGE , l_power = 5, l_color = "#00FFFF")
|
||||
icon_state = "shield"
|
||||
RegisterSignal(chassis, COMSIG_ATOM_DIR_CHANGE, .proc/resetdir)
|
||||
RegisterSignal(chassis, COMSIG_ATOM_DIR_CHANGE, PROC_REF(resetdir))
|
||||
else
|
||||
flick("shield_drop", src)
|
||||
playsound(src, 'sound/mecha/mech_shield_drop.ogg', 50, FALSE)
|
||||
|
||||
Reference in New Issue
Block a user