From: Nick S Date: Fri, 1 Jul 2022 08:42:44 +0000 (+0300) Subject: Merge remote-tracking branch 'origin/master' into morosophos/server-current4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ca5acbdeceedb8023ccae7a301cddc62a3a3c504;p=xonotic%2Fxonotic-data.pk3dir.git Merge remote-tracking branch 'origin/master' into morosophos/server-current4 --- ca5acbdeceedb8023ccae7a301cddc62a3a3c504 diff --cc qcsrc/server/race.qc index d7c40e539,63e6efa8c..94b3c79b4 --- a/qcsrc/server/race.qc +++ b/qcsrc/server/race.qc @@@ -54,23 -54,15 +54,23 @@@ string uid2name(string myuid return s; } -void write_recordmarker(entity pl, float tstart, float dt) +void write_recordmarker(entity pl, float newpos, float tstart, float dt) { - GameLogEcho(strcat(":recordset:", ftos(pl.playerid), ":", ftos(dt))); + GameLogEcho(strcat(":recordset:", ftos(newpos), ":", ftos(pl.playerid), ":", ftos(etof(pl)), ":", ftos(dt))); // also write a marker into demo files for demotc-race-record-extractor to find - stuffcmd(pl, - strcat( - strcat("//", strconv(2, 0, 0, GetGametype()), " RECORD SET ", TIME_ENCODED_TOSTRING(TIME_ENCODE(dt), false)), - " ", ftos(tstart), " ", ftos(dt), "\n")); + if (pl.crypto_idfp != "") { + stuffcmd(pl, + strcat( - strcat("//", strconv(2, 0, 0, GetGametype()), " RECORD SET ", TIME_ENCODED_TOSTRING(TIME_ENCODE(dt))), ++ strcat("//", strconv(2, 0, 0, GetGametype()), " RECORD SET ", TIME_ENCODED_TOSTRING(TIME_ENCODE(dt), false)), + strcat(" ", ftos(tstart), " ", ftos(dt), " ", ftos(newpos), " "), + strcat(pl.crypto_idfp, "\n"))); + } else { + stuffcmd(pl, + strcat( - strcat("//", strconv(2, 0, 0, GetGametype()), " RECORD SET ", TIME_ENCODED_TOSTRING(TIME_ENCODE(dt))), - strcat(" ", ftos(tstart), " ", ftos(dt), " ", ftos(newpos), " ANONYMOUS"))); ++ strcat("//", strconv(2, 0, 0, GetGametype()), " RECORD SET ", TIME_ENCODED_TOSTRING(TIME_ENCODE(dt), false)), ++ strcat(" ", ftos(tstart), " ", ftos(dt), " ", ftos(newpos), " ANONYMOUS\n"))); + } } IntrusiveList g_race_targets; diff --cc qcsrc/server/race.qh index 537082da7,1e851ee30..6cb7c6ad1 --- a/qcsrc/server/race.qh +++ b/qcsrc/server/race.qh @@@ -8,9 -8,8 +8,9 @@@ 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 g_race_qualifying; + int g_race_qualifying; float speedaward_lastsent; float speedaward_lastupdate;