}
default:
+ case DROP_RESET:
case DROP_NORMAL:
{
flag.velocity = ('0 0 200' + ('0 100 0' * crandom()) + ('100 0 0' * crandom()));
te_lightning2(world, reciever.origin, player.origin);
break;
}
+
+ case DROP_RESET:
+ {
+ // do nothing
+ break;
+ }
default:
case DROP_THROW:
void ctf_Handle_Return(entity flag, entity player)
{
// messages and sounds
- //centerprint(player, strcat("You returned ", flag.netname));
+ //centerprint(player, strcat("You returned the ", flag.netname));
Send_KillNotification (player.netname, flag.netname, "", INFO_RETURNFLAG, MSG_INFO);
sound(player, CH_TRIGGER, flag.snd_flag_returned, VOL_BASE, ATTN_NONE);
ctf_EventLog("return", flag.team, player);
// automatically kill the flag and return it
self.health = 0;
ctf_CheckFlagReturn(self);
+ return;
}
if(autocvar_g_ctf_flag_return_damage)
{
self.health = self.health - damage;
ctf_CheckFlagReturn(self);
+ return;
}
}
{
if(self.owner)
if(self.owner.classname == "player")
- ctf_Handle_Throw(self.owner, world, DROP_NORMAL);
+ ctf_Handle_Throw(self.owner, world, DROP_RESET);
ctf_RespawnFlag(self);
}