[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:
@@ -6,10 +6,11 @@
|
||||
invisibility = INVISIBILITY_MAXIMUM
|
||||
anchored = TRUE
|
||||
|
||||
/obj/effect/oneway/CanPass(atom/movable/mover, turf/target)
|
||||
/obj/effect/oneway/CanAllowThrough(atom/movable/mover, turf/target)
|
||||
. = ..()
|
||||
var/turf/T = get_turf(src)
|
||||
var/turf/MT = get_turf(mover)
|
||||
return ..() && (T == MT || get_dir(MT,T) == dir)
|
||||
return . && (T == MT || get_dir(MT,T) == dir)
|
||||
|
||||
|
||||
/obj/effect/wind
|
||||
|
||||
@@ -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