EliminatedPlayers_Init(ca_isEliminated);
ActivateTeamplay();
- SetLimits(autocvar_g_ca_point_limit, autocvar_g_ca_point_leadlimit, -1, -1);
+ SetLimits(autocvar_g_ca_point_limit, autocvar_g_ca_point_leadlimit, autocvar_timelimit_override, -1);
if (autocvar_g_ca_team_spawns)
have_team_spawns = -1; // request team spawns
SELFPARAM();
if (!allowed_to_spawn && IS_PLAYER(this)) // this is true even when player is trying to join
{
- this.classname = STR_OBSERVER;
+ TRANSMUTE(Observer, this);
if (this.jointime != time && !this.caplayer) // not when connecting
{
this.caplayer = 0.5;
}
if (it.caplayer)
{
- it.classname = STR_PLAYER;
+ TRANSMUTE(Player, it);
it.caplayer = 1;
- WITH(entity, self, it, PutClientInServer());
+ WITHSELF(it, PutClientInServer());
}
});
return true;
MUTATOR_HOOKFUNCTION(ca, ClientConnect)
{
SELFPARAM();
- this.classname = STR_OBSERVER;
+ TRANSMUTE(Observer, this);
return true;
}
MUTATOR_HOOKFUNCTION(ca, MakePlayerObserver)
{
SELFPARAM();
- if (this.caplayer == 1)
+ if (!IS_DEAD(this))
ca_LastPlayerForTeam_Notify();
if (this.killindicator_teamchange == -2)
this.caplayer = 0;