Overriding the gameplay entity key/value
Posted: Mon Aug 29, 2005 10:14 pm
I'm trying to make it so that if an entity has "gametype" "ctf" allow it which means that it would only be CTF, but i need to have it also do Reverse CTF so that the flags, and other static entities can spawn
.
Any help would be great, thanks!
It would most likely be somewhere in here (g_spawn.c):

Any help would be great, thanks!
It would most likely be somewhere in here (g_spawn.c):
Code: Select all
if( G_SpawnString( "gametype", NULL, &value ) ) {
if( g_gametype.integer >= GT_FFA && g_gametype.integer < GT_MAX_GAME_TYPE ) {
gametypeName = gametypeNames[g_gametype.integer];
s = strstr( value, gametypeName );
if( !s ) {
G_FreeEntity( ent );
return;
}
}
}