return false;
}
+MUTATOR_HOOKFUNCTION(as, OnEntityPreSpawn)
+{
+ switch(self.classname)
+ {
+ case "info_player_team1":
+ case "info_player_team2":
+ case "info_player_team3":
+ case "info_player_team4":
+ return true;
+ }
+
+ return false;
+}
+
// scoreboard setup
void assault_ScoreRules()
{
Keys: "angle" viewing angle when spawning. */
spawnfunc(info_player_team1)
{
- if(g_assault) { remove(this); return; }
-
this.team = NUM_TEAM_1; // red
spawnfunc_info_player_deathmatch(this);
}
Keys: "angle" viewing angle when spawning. */
spawnfunc(info_player_team2)
{
- if(g_assault) { remove(this); return; }
-
this.team = NUM_TEAM_2; // blue
spawnfunc_info_player_deathmatch(this);
}
Keys: "angle" viewing angle when spawning. */
spawnfunc(info_player_team3)
{
- if(g_assault) { remove(this); return; }
-
this.team = NUM_TEAM_3; // yellow
spawnfunc_info_player_deathmatch(this);
}
Keys: "angle" viewing angle when spawning. */
spawnfunc(info_player_team4)
{
- if(g_assault) { remove(this); return; }
-
this.team = NUM_TEAM_4; // purple
spawnfunc_info_player_deathmatch(this);
}