void SP_Seek_Cover_Spawn(gentity_t * ent, int team) { g_serverEntity_t *svEnt; if(!(ent->spawnflags & 1)) { BotDropToFloor(ent); } ent->aiTeam = team; // XreaL BEGIN // Doom 3 mapping convention: every entity has a name if(ent->targetname && !ent->targetnameAutogenerated) { // TAT 11/13/2002 - seek cover spots are special server only entities // so let's make one with our data svEnt = CreateServerEntity(ent); // set the setup func svEnt->setup = bot_seek_cover_spot_think; } // XreaL END // free this entity - we should now have a server entity for it G_FreeEntity(ent); }
void SP_ai_marker( gentity_t *ent ) { if ( !( ent->spawnflags & 1 ) ) { BotDropToFloor( ent ); } // TAT 11/13/2002 - use the server entities for this CreateServerEntity( ent ); // free this entity - we should now have a server entity for it G_FreeEntity( ent ); }