ScoreRules_basics_end();
}
+void cts_EventLog(string mode, entity actor) // use an alias for easy changing and quick editing later
+{
+ if(autocvar_sv_eventlog)
+ GameLogEcho(strcat(":cts:", mode, ":", ((actor != world) ? (strcat(":", ftos(actor.playerid))) : "")));
+}
+
MUTATOR_HOOKFUNCTION(cts_PlayerPhysics)
{
// force kbd movement for fairness
if(!s)
e.race_place = 0;
}
- print(e.netname, " = ", ftos(e.race_place), "\n");
+ cts_EventLog(ftos(e.race_place), e);
}
if(g_race_qualifying == 2)
ScoreRules_basics_end();
}
+void race_EventLog(string mode, entity actor) // use an alias for easy changing and quick editing later
+{
+ if(autocvar_sv_eventlog)
+ GameLogEcho(strcat(":race:", mode, ":", ((actor != world) ? (strcat(":", ftos(actor.playerid))) : "")));
+}
+
MUTATOR_HOOKFUNCTION(race_PlayerPhysics)
{
// force kbd movement for fairness
if(!s)
e.race_place = 0;
}
- print(e.netname, " = ", ftos(e.race_place), "\n");
+ race_EventLog(ftos(e.race_place), e);
}
if(g_race_qualifying == 2)