.string cvarfilter;
bool DoesQ3ARemoveThisEntity(entity this);
void SV_OnEntityPreSpawnFunction()
-{SELFPARAM();
+{ENGINE_EVENT();
+ __spawnfunc_expecting = true;
__spawnfunc_expect = this;
if (this)
if (this.gametypefilter != "")
if (!isGametypeInFilter(MapInfo_LoadedGametype, teamplay, have_team_spawns, this.gametypefilter))
{
remove(this);
+ __spawnfunc_expecting = false;
return;
}
if(this.cvarfilter != "")
{
//print("cvarfilter fail\n");
remove(this);
+ __spawnfunc_expecting = false;
return;
}
}
if(DoesQ3ARemoveThisEntity(this))
{
remove(this);
+ __spawnfunc_expecting = false;
return;
}
if(MUTATOR_CALLHOOK(OnEntityPreSpawn, this))
{
remove(this);
+ __spawnfunc_expecting = false;
return;
}
}