// ctf
set g_ctf 0 "Capture The Flag: take the enemy flag and bring it to yours at your base to score"
set g_ctf_flag_returntime 15
-set g_ctf_flagcarrier_selfdamage 1
-set g_ctf_flagcarrier_selfforce 1
+set g_ctf_flagcarrier_selfdamagefactor 1
+set g_ctf_flagcarrier_selfforcefactor 1
+set g_ctf_flagcarrier_damagefactor 1
+set g_ctf_flagcarrier_forcefactor 1
set g_ctf_fullbrightflags 0
set g_ctf_dynamiclights 0
set g_ctf_flag_damageforcescale 2
flag.ctf_status = FLAG_CARRY;
// messages and sounds
- Send_KillNotification (player.netname, flag.netname, "", INFO_PICKUPFLAG, MSG_INFO);
+ Send_KillNotification(player.netname, flag.netname, "", INFO_PICKUPFLAG, MSG_INFO);
sound(player, CH_TRIGGER, flag.snd_flag_taken, VOL_BASE, ATTN_NONE);
ctf_EventLog("pickup", flag.team, player);
verbosename = ((autocvar_g_ctf_flag_pickup_verbosename) ? strcat(Team_ColorCode(player.team), "(^7", player.netname, Team_ColorCode(player.team), ") ") : "");
PlayerScore_Add(player, SP_CTF_PICKUPS, 1);
// effects
- if (autocvar_g_ctf_flag_pickup_effects) // field pickup effect
+ if(autocvar_g_ctf_flag_pickup_effects) // field pickup effect
{
pointparticles(particleeffectnum("smoke_ring"), 0.5 * (flag.absmin + flag.absmax), '0 0 0', 1);
}
self.items |= IT_CTF_SHIELDED;
// scan through all the flags and notify the client about them
- for (flag = ctf_worldflaglist; flag; flag = flag.ctf_worldflagnext)
+ for(flag = ctf_worldflaglist; flag; flag = flag.ctf_worldflagnext)
{
if(flag.ctf_status == FLAG_CARRY)
if(flag.owner == self)