void EAVYCallSpawnCompatibilityCheck(edict_t *ent) { cvar_t *SpawnTeam = gi.cvar("EAVYspawnteam", "", 0); if (SpawnTeam->value && !strcmp(ent->classname, "info_player_team1")) { ent->svflags &= ~SVF_NOCLIENT; ent->s.effects |= EF_COLOR_SHELL; ent->s.renderfx |= RF_SHELL_RED; SP_misc_teleporter_dest (ent); return; } if (SpawnTeam->value && !strcmp(ent->classname, "info_player_team2")) { ent->svflags &= ~SVF_NOCLIENT; ent->s.effects |= EF_COLOR_SHELL; ent->s.renderfx |= RF_SHELL_BLUE; SP_misc_teleporter_dest (ent); return; } if (!strcmp(ent->classname, "info_flag_red") || !strcmp(ent->classname, "info_flag_team1")) { ent->classname = "item_flag_team1"; return; } if (!strcmp(ent->classname, "info_flag_blue") || !strcmp(ent->classname, "info_flag_team2")) { ent->classname = "item_flag_team2"; return; } }
/*QUAKED info_player_deathmatch(1 0 1)(-16 -16 -24)(16 16 32) potential spawning position for deathmatch games */ void SP_info_player_deathmatch(edict_t *self){ if(!deathmatch->value){ G_FreeEdict(self); return; } SP_misc_teleporter_dest(self); }