float infobartime = stof(argv(3));
string successful, t;
+ successful = string_null;
if((targets) && (admin_message))
{
{
entity client;
string reason = argv(1);
- float i;
+ float i = 0;
FOR_EACH_REALPLAYER(client)
{
}
}
-void GameCommand_bbox(float request) // legacy
+void GameCommand_bbox(float request)
{
switch(request)
{
}
}
-void GameCommand_bot_cmd(float request, float argc) // mostly legacy
+void GameCommand_bot_cmd(float request, float argc)
{
switch(request)
{
}
}
-void GameCommand_database(float request, float argc) // legacy
+void GameCommand_database(float request, float argc)
{
switch(request)
{
case CMD_REQUEST_COMMAND:
{
entity client;
- float i;
+ float i = 0;
float argc;
FOR_EACH_CLIENT(client)
}
}
-void GameCommand_delrec(float request, float argc) // legacy // perhaps merge later with records and printstats and such?
+void GameCommand_delrec(float request, float argc) // perhaps merge later with records and printstats and such?
{
switch(request)
{
}
}
-void GameCommand_effectindexdump(float request) // legacy
+void GameCommand_effectindexdump(float request)
{
switch(request)
{
}
}
-void GameCommand_extendmatchtime(float request) // legacy
+void GameCommand_extendmatchtime(float request)
{
switch(request)
{
}
}
-void GameCommand_find(float request, float argc) // legacy // is this even needed? We have prvm_edicts command and such ANYWAY
+void GameCommand_find(float request, float argc) // is this even needed? We have prvm_edicts command and such ANYWAY
{
switch(request)
{
}
}
-void GameCommand_gametype(float request, float argc) // legacy
+void GameCommand_gametype(float request, float argc)
{
switch(request)
{
}
}
-void GameCommand_gettaginfo(float request, float argc) // legacy
+void GameCommand_gettaginfo(float request, float argc)
{
switch(request)
{
}
}
-void GameCommand_gotomap(float request, float argc) // mostly legacy
+void GameCommand_gotomap(float request, float argc)
{
switch(request)
{
}
}
-void GameCommand_make_mapinfo(float request) // legacy
+void GameCommand_make_mapinfo(float request)
{
switch(request)
{
string notify = argv(3);
string successful, t;
+ successful = string_null;
// lets see if the target(s) even actually exist.
if((targets) && (destination))
}
}
-void GameCommand_nospectators(float request) // legacy
+void GameCommand_nospectators(float request)
{
switch(request)
{
}
}
-void GameCommand_playerdemo(float request, float argc) // mostly legacy
+void GameCommand_playerdemo(float request, float argc)
{
switch(request)
{
}
}
-void GameCommand_printstats(float request) // legacy
+void GameCommand_printstats(float request)
{
switch(request)
{
}
}
-void GameCommand_reducematchtime(float request) // legacy
+void GameCommand_reducematchtime(float request)
{
switch(request)
{
{
if(teamplay)
{
- entity tmp_player, client;
- float i, x, z, t_teams, t_players, team_color, accepted;
+ entity tmp_player;
+ float i, x, z, t_teams, t_players, team_color;
// count the total amount of players and total amount of teams
+ t_players = 0;
+ t_teams = 0;
FOR_EACH_PLAYER(tmp_player)
{
CheckAllowedTeams(tmp_player);
{
case CMD_REQUEST_COMMAND:
{
- // This is kinda a mess, a lot of it is legacy and thus not rewritten/optimized.
entity e;
vector org, delta, start, end, p, q, q0, pos, vv, dv;
float i, f, safe, unsafe, dq, dqf;
{
rint(42); // do an engine breakpoint on VM_rint so you can get the trace that errnoeously returns startsolid
tracebox(start, PL_MIN, PL_MAX, end, MOVE_NOMONSTERS, world);
- tracebox(p, PL_MIN, PL_MAX, q, MOVE_NOMONSTERS, world);
if(trace_startsolid)
{
}
}
-void GameCommand_warp(float request, float argc) // mostly legacy
+void GameCommand_warp(float request, float argc)
{
switch (request)
{
print(((command != "") ? strcat("Unknown server command \"", command, "\"") : "No command provided"), ". For a list of supported commands, try sv_cmd help.\n");
return;
-}
\ No newline at end of file
+}