set g_race_qualifying_timelimit 0
set g_race_qualifying_timelimit_override -1 "qualifying session time limit overriding the mapinfo specified one (use 0 to play without limit, and -1 to use the mapinfo's limit)"
set g_race_teams 0 "when 2, 3, or 4, the race is played as a team game (the team members can add up their laps)"
+set g_race_cptimes_onlyself 0 "only show player's own checkpoint times"
// ==========
// invasion
return;
int cp = e.race_checkpoint;
- float recordtime = race_checkpoint_records[cp];
+ float recordtime;
float myrecordtime = e.race_checkpoint_record[cp];
- string recordholder = race_checkpoint_recordholders[cp];
- if(recordholder == e.netname)
+ string recordholder;
+ if (autocvar_g_race_cptimes_onlyself) {
+ recordtime = myrecordtime;
recordholder = "";
+ } else {
+ recordtime = race_checkpoint_records[cp];
+ recordholder = race_checkpoint_recordholders[cp];
+
+ if(recordholder == e.netname)
+ recordholder = "";
+ }
if(!IS_REAL_CLIENT(e))
return;
if(tvalid)
{
- recordtime = race_checkpoint_records[cp];
- recordholder = strcat(race_checkpoint_recordholders[cp]); // make a tempstring copy, as we'll possibly strunzone it!
- if(recordholder == e.netname)
+ if (autocvar_g_race_cptimes_onlyself)
+ {
+ // return their own checkpoint time
+ recordtime = e.race_checkpoint_record[cp];
recordholder = "";
+ }
+ else
+ {
+ recordtime = race_checkpoint_records[cp];
+ // make a tempstring copy, as we'll possibly strunzone it
+ recordholder = strcat(race_checkpoint_recordholders[cp]);
+
+ if(recordholder == e.netname)
+ recordholder = "";
+ }
if(t != 0)
{
seta cl_jetpack_jump 1 "Activate jetpack by pressing jump in the air. 0 = Disable, 1 = Stop when touching ground, 2 = Enable"
seta cl_race_cptimes_showself 1 "Always show your own times as well as the current best on checkpoints in Race/CTS"
-seta cl_race_cptimes_onlyself 0 "Only show your own times on checkpoints in Race/CTS"
+seta cl_race_cptimes_onlyself 0 "Only show your own times on checkpoints in Race/CTS. Can be forced on by the server via g_race_cptimes_onlyself"
seta cl_cts_noautoswitch 0 "Prevent forced switching to new weapons in CTS"