mirror of
https://git.code.sf.net/p/quake/nuq
synced 2024-11-25 13:31:19 +00:00
no more IDGODS or idgods
This commit is contained in:
parent
c8483de74f
commit
ba6d26302a
2 changed files with 0 additions and 81 deletions
|
@ -989,59 +989,6 @@ void Host_Version_f (void)
|
||||||
Con_Printf ("Exe: "__TIME__" "__DATE__"\n");
|
Con_Printf ("Exe: "__TIME__" "__DATE__"\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef IDGODS
|
|
||||||
void Host_Please_f (void)
|
|
||||||
{
|
|
||||||
client_t *cl;
|
|
||||||
int j;
|
|
||||||
|
|
||||||
if (cmd_source != src_command)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if ((Cmd_Argc () == 3) && strcmp(Cmd_Argv(1), "#") == 0)
|
|
||||||
{
|
|
||||||
j = atof(Cmd_Argv(2)) - 1;
|
|
||||||
if (j < 0 || j >= svs.maxclients)
|
|
||||||
return;
|
|
||||||
if (!svs.clients[j].active)
|
|
||||||
return;
|
|
||||||
cl = &svs.clients[j];
|
|
||||||
if (cl->privileged)
|
|
||||||
{
|
|
||||||
cl->privileged = false;
|
|
||||||
cl->edict->v.flags = (int)cl->edict->v.flags & ~(FL_GODMODE|FL_NOTARGET);
|
|
||||||
cl->edict->v.movetype = MOVETYPE_WALK;
|
|
||||||
noclip_anglehack = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
cl->privileged = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Cmd_Argc () != 2)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for (j=0, cl = svs.clients ; j<svs.maxclients ; j++, cl++)
|
|
||||||
{
|
|
||||||
if (!cl->active)
|
|
||||||
continue;
|
|
||||||
if (strcasecmp(cl->name, Cmd_Argv(1)) == 0)
|
|
||||||
{
|
|
||||||
if (cl->privileged)
|
|
||||||
{
|
|
||||||
cl->privileged = false;
|
|
||||||
cl->edict->v.flags = (int)cl->edict->v.flags & ~(FL_GODMODE|FL_NOTARGET);
|
|
||||||
cl->edict->v.movetype = MOVETYPE_WALK;
|
|
||||||
noclip_anglehack = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
cl->privileged = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
void Host_Say(qboolean teamonly)
|
void Host_Say(qboolean teamonly)
|
||||||
{
|
{
|
||||||
client_t *client;
|
client_t *client;
|
||||||
|
@ -1931,9 +1878,6 @@ void Host_InitCommands (void)
|
||||||
Cmd_AddCommand ("name", Host_Name_f);
|
Cmd_AddCommand ("name", Host_Name_f);
|
||||||
Cmd_AddCommand ("noclip", Host_Noclip_f);
|
Cmd_AddCommand ("noclip", Host_Noclip_f);
|
||||||
Cmd_AddCommand ("version", Host_Version_f);
|
Cmd_AddCommand ("version", Host_Version_f);
|
||||||
#ifdef IDGODS
|
|
||||||
Cmd_AddCommand ("please", Host_Please_f);
|
|
||||||
#endif
|
|
||||||
Cmd_AddCommand ("say", Host_Say_f);
|
Cmd_AddCommand ("say", Host_Say_f);
|
||||||
Cmd_AddCommand ("say_team", Host_Say_Team_f);
|
Cmd_AddCommand ("say_team", Host_Say_Team_f);
|
||||||
Cmd_AddCommand ("tell", Host_Tell_f);
|
Cmd_AddCommand ("tell", Host_Tell_f);
|
||||||
|
|
|
@ -94,10 +94,6 @@ cvar_t *config_modem_clear;
|
||||||
cvar_t *config_modem_init;
|
cvar_t *config_modem_init;
|
||||||
cvar_t *config_modem_hangup;
|
cvar_t *config_modem_hangup;
|
||||||
|
|
||||||
#ifdef IDGODS
|
|
||||||
cvar_t *idgods;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int vcrFile = -1;
|
int vcrFile = -1;
|
||||||
qboolean recording = false;
|
qboolean recording = false;
|
||||||
|
|
||||||
|
@ -878,9 +874,6 @@ void NET_Init (void)
|
||||||
config_modem_clear = Cvar_Get("_config_modem_clear", "ATZ", CVAR_ARCHIVE, "None");
|
config_modem_clear = Cvar_Get("_config_modem_clear", "ATZ", CVAR_ARCHIVE, "None");
|
||||||
config_modem_init = Cvar_Get("_config_modem_init", "", CVAR_ARCHIVE, "None");
|
config_modem_init = Cvar_Get("_config_modem_init", "", CVAR_ARCHIVE, "None");
|
||||||
config_modem_hangup = Cvar_Get("_config_modem_hangup", "AT H", CVAR_ARCHIVE, "None");
|
config_modem_hangup = Cvar_Get("_config_modem_hangup", "AT H", CVAR_ARCHIVE, "None");
|
||||||
#ifdef IDGODS
|
|
||||||
idgods = Cvar_Get("idgods", "0", CVAR_NONE, "None");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Cmd_AddCommand ("slist", NET_Slist_f);
|
Cmd_AddCommand ("slist", NET_Slist_f);
|
||||||
Cmd_AddCommand ("listen", NET_Listen_f);
|
Cmd_AddCommand ("listen", NET_Listen_f);
|
||||||
|
@ -995,21 +988,3 @@ void SchedulePollProcedure(PollProcedure *proc, double timeOffset)
|
||||||
proc->next = pp;
|
proc->next = pp;
|
||||||
prev->next = proc;
|
prev->next = proc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef IDGODS
|
|
||||||
#define IDNET 0xc0f62800
|
|
||||||
|
|
||||||
qboolean IsID(struct qsockaddr *addr)
|
|
||||||
{
|
|
||||||
if (!idgods->int_val)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (addr->sa_family != 2)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if ((BigLong(*(int *)&addr->sa_data[2]) & 0xffffff00) == IDNET)
|
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue