Switch flags?
Posted: Sun Jan 18, 2009 9:27 am
I wanted to make a new game type: The blue flag spawns in red base and the red flag spawns in blue base. What I did is this in G_CallSpawn:
What happens is just NOTHING. Both team's base is just empty. I can spawn any weapon, armor, health, holdable,... but flags won't work.
Code: Select all
if( g_gametype.integer == GT_CTT ) {// TROPHIES
if(Q_stricmp(ent->classname, "team_ctf_redflag") == 0) {
strcpy(ent->classname, "team_ctf_blueflag");
} else
if(Q_stricmp(ent->classname, "team_ctf_blueflag") == 0) {
strcpy(ent->classname, "team_ctf_redflag");
}
}