Makes CTF flags and spawn protection not affect or get affected by non CTF mobs. (#25809)

* Update capture_the_flag.dm

* Update capture_the_flag.dm
This commit is contained in:
kevinz000
2017-04-04 22:41:39 -07:00
committed by duncathan salt
parent 5cac1f7c51
commit 0c7d3d1f05
@@ -48,7 +48,8 @@
STOP_PROCESSING(SSobj, src)
/obj/item/weapon/twohanded/ctf/attack_hand(mob/living/user)
if(!user)
if(!is_ctf_target(user))
to_chat(user, "Non players shouldn't be moving the flag!")
return
if(team in user.faction)
to_chat(user, "You can't move your own flag!")
@@ -510,6 +511,7 @@
R.set_frequency(REDTEAM_FREQ)
R.freqlock = TRUE
R.independent = TRUE
H.dna.species.stunmod = 0
/datum/outfit/ctf/blue/post_equip(mob/living/carbon/human/H)
..()
@@ -517,6 +519,7 @@
R.set_frequency(BLUETEAM_FREQ)
R.freqlock = TRUE
R.independent = TRUE
H.dna.species.stunmod = 0
@@ -534,6 +537,8 @@
return
/obj/structure/trap/ctf/trap_effect(mob/living/L)
if(!is_ctf_target(L))
return
if(!(src.team in L.faction))
to_chat(L, "<span class='danger'><B>Stay out of the enemy spawn!</B></span>")
L.death()