From 0c94eb4684a43f6abe2288565626faaad7ecb5e7 Mon Sep 17 00:00:00 2001 From: drjaska Date: Mon, 27 May 2024 12:08:11 +0300 Subject: [PATCH] rename g_cts_cptimes_onlyself -> g_race_cptimes_onlyself --- gamemodes-server.cfg | 2 +- qcsrc/server/race.qc | 4 ++-- qcsrc/server/race.qh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gamemodes-server.cfg b/gamemodes-server.cfg index 1a8c632098..f2cfe1524f 100644 --- a/gamemodes-server.cfg +++ b/gamemodes-server.cfg @@ -361,7 +361,6 @@ set g_cts 0 "CTS: complete the stage" set g_cts_selfdamage 1 "0 = disable all selfdamage and falldamage in cts" set g_cts_finish_kill_delay 2 "kill player this many seconds after stage completion to prevent cheating by starting out with more speed than otherwise possible; set it to 0 to not kill or to -1 to kill instantly" set g_cts_send_rankings_cnt 15 "send this number of map records to clients" -set g_cts_cptimes_onlyself 0 "tournament mode: only show player's own checkpoint times" set g_cts_removeprojectiles 0 "remove projectiles when the player dies, to prevent using weapons earlier in the stage than intended" set g_cts_drop_monster_items 0 "allow killed monsters to drop their items" @@ -593,6 +592,7 @@ set g_race 0 "Race: be faster than your opponents" 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 diff --git a/qcsrc/server/race.qc b/qcsrc/server/race.qc index e8202296d1..90b28190b1 100644 --- a/qcsrc/server/race.qc +++ b/qcsrc/server/race.qc @@ -222,7 +222,7 @@ void race_SendNextCheckpoint(entity e, float spec) // qualifying only float recordtime; float myrecordtime = e.race_checkpoint_record[cp]; string recordholder; - if (g_cts && autocvar_g_cts_cptimes_onlyself) { + if (autocvar_g_race_cptimes_onlyself) { recordtime = myrecordtime; recordholder = ""; } else { @@ -527,7 +527,7 @@ void race_SendTime(entity e, float cp, float t, float tvalid) if(tvalid) { float myrecordtime = e.race_checkpoint_record[cp]; - if (g_cts && autocvar_g_cts_cptimes_onlyself) { + if (autocvar_g_race_cptimes_onlyself) { recordtime = myrecordtime; recordholder = ""; } else { diff --git a/qcsrc/server/race.qh b/qcsrc/server/race.qh index 6eb6f9e51d..e563832422 100644 --- a/qcsrc/server/race.qh +++ b/qcsrc/server/race.qh @@ -8,7 +8,7 @@ float race_teams; const float ST_RACE_LAPS = 1; int autocvar_g_cts_send_rankings_cnt = 15; -bool autocvar_g_cts_cptimes_onlyself = false; +bool autocvar_g_race_cptimes_onlyself = false; int g_race_qualifying; -- 2.39.2