[DNM][DNM][WIP] Projectile backend code port and update
Ports#54924, #65061, #59804 from /tg. adds auxiliary code from /tg to make code work.
This commit is contained in:
@@ -405,10 +405,10 @@
|
||||
/obj/item/projectile/bullet/ctf
|
||||
damage = 0
|
||||
|
||||
/obj/item/projectile/bullet/ctf/prehit(atom/target)
|
||||
/obj/item/projectile/bullet/ctf/prehit_pierce(atom/target)
|
||||
if(is_ctf_target(target))
|
||||
damage = 60
|
||||
return //PROJECTILE_PIERCE_NONE /// hey uhh don't hit anyone behind them
|
||||
return PROJECTILE_PIERCE_NONE /// hey uhh don't hit anyone behind them
|
||||
. = ..()
|
||||
|
||||
/obj/item/gun/ballistic/automatic/laser/ctf
|
||||
@@ -442,10 +442,10 @@
|
||||
damage = 0
|
||||
icon_state = "omnilaser"
|
||||
|
||||
/obj/item/projectile/beam/ctf/prehit(atom/target)
|
||||
/obj/item/projectile/beam/ctf/prehit_pierce(atom/target)
|
||||
if(is_ctf_target(target))
|
||||
damage = 150
|
||||
return //PROJECTILE_PIERCE_NONE /// hey uhhh don't hit anyone behind them
|
||||
return PROJECTILE_PIERCE_NONE /// hey uhhh don't hit anyone behind them
|
||||
. = ..()
|
||||
|
||||
/proc/is_ctf_target(atom/target)
|
||||
|
||||
Reference in New Issue
Block a user