-var float MAPINFO_TYPE_ALL = 0;
+float MAPINFO_TYPE_ALL;
entity MapInfo_Type_first;
entity MapInfo_Type_last;
.entity enemy; // internal next pointer
float lost;
string savevar;
- won = 0;
+ won = lost = 0;
head = findchain(classname, "player");
while(head)
float drag;
crosshair_trace_plusvisibletriggers(self);
+ drag = FALSE;
if(vlen(self.origin - trace_ent.origin) <= autocvar_g_grab_range)
{
switch(trace_ent.grab)
// Last updated: December 29th, 2011
// =====================================
-#define GET_BAN_ARG(v,d) if((argc > reason_arg) && ((v = stof(argv(reason_arg))) != 0)) ++reason_arg; else v = d
+#define GET_BAN_ARG(v,d) if(argc > reason_arg) { if((v = stof(argv(reason_arg))) != 0) ++reason_arg; else v = d; } else v = d
#define GET_BAN_REASON(v,d) if(argc > reason_arg) v = substring(command, argv_start_index(reason_arg), strlen(command) - argv_start_index(reason_arg)); else v = d
void Ban_KickBanClient(entity client, float bantime, float masksize, string reason);
float Ban_Delete(float i);
// used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
-void BanCommand_macro_write_aliases(float fh)
\ No newline at end of file
+void BanCommand_macro_write_aliases(float fh)
case "pink": selection = COLOR_TEAM4; break;
case "auto": selection = (-1); break;
- default: break;
+ default: selection = 0; break;
}
if(selection)
print_to(caller, sprintf(strreplace(" ", separator, " %-4s %-20s %-5s %-3s %-9s %-16s %s "),
"ent", "nickname", "ping", "pl", "time", "ip", "crypto_id"));
+ total_listed_players = 0;
FOR_EACH_CLIENT(tmp_player)
{
is_bot = (clienttype(tmp_player) == CLIENTTYPE_BOT);
#undef COMMON_COMMAND
return;
-}
\ No newline at end of file
+}
if(self.flags & FL_ONGROUND)
sf |= 0x40;
+ ft = fr = 0;
if(self.fade_time != 0 || self.fade_rate != 0)
{
ft = (self.fade_time - time) / sys_frametime;
print(s, "\n");
if(to_eventlog)
GameLogEcho(s);
+
+ file = -1;
if(to_file)
{
file = fopen(autocvar_sv_logscores_filename, FILE_APPEND);
print("^2Listing all existing active bans:\n");
+ n = 0;
for(i = 0; i < ban_count; ++i)
{
if(time > ban_expire[i])
entity e;
float n;
n = 0;
+ order = 0;
for(e = cb; e.cbc_next; e = e.cbc_next)
{
while(e.cbc_next.cbc_func == func)
c1 = c2 = c3 = c4 = -1;
cb1 = cb2 = cb3 = cb4 = 0;
+ teament_name = string_null;
if(g_onslaught)
{
// onslaught is special
entity pseudoprojectile;
float f, ffs;
+ pseudoprojectile = world;
+
railgun_start = start;
railgun_end = end;