mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
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:
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()
|
||||
|
||||
Reference in New Issue
Block a user