Similar to `cl_autodemo_delete_keeprecords`, doesn't delete any demos where the player joined the match. Useful for non-race non-cts gamemodes.
// local spawn actions
if(is_new && (!entnum || (entnum == player_localentnum)))
{
+ if(!spectatee_status)
+ if(autocvar_cl_autodemo_delete_keepmatches >= 2 || (!warmup_stage && autocvar_cl_autodemo_delete_keepmatches == 1))
+ {
+ float del = autocvar_cl_autodemo_delete;
+ del &= ~1;
+ cvar_set("cl_autodemo_delete", ftos(del)); // don't delete demo where the player joined the match
+ }
+
if(autocvar_cl_spawnzoom && !autocvar_cl_lockview)
{
zoomin_effect = 1;
bool autocvar_cl_race_cptimes_onlyself; // TODO: move to race gamemode
bool autocvar_cl_race_cptimes_showself = false;
bool autocvar_cl_welcome = true;
+bool autocvar_cl_autodemo_delete;
+bool autocvar_cl_autodemo_delete_keepmatches;
bool autocvar_menu_gamemenu = true;
// Map coordinate base calculations need these
#pragma once
-bool autocvar_cl_autodemo_delete;
bool autocvar_cl_autodemo_delete_keeprecords;
void HUD_Mod_Race(vector pos, vector mySize);
set cl_lerpanim_maxdelta_server 0.1 // must be slower than slowest server controlled anim (e.g. animinfo stuff)
// autodemo deleting
-seta cl_autodemo_delete_keeprecords 0 "when 1, records with a newly made race/cts demo are kept even if cl_autodemo_delete is used to delete demos"
+seta cl_autodemo_delete_keeprecords 0 "keep demos with a newly made Race/CTS record even if cl_autodemo_delete is used to delete demos"
+seta cl_autodemo_delete_keepmatches 0 "keep demos of matches you join even if cl_autodemo_delete is used to delete demos, 2 = even if you only joined during warmup"
// freeze camera
set cl_lockview 0 "when 1, the camera does not move any more; when 2, you can only control camera angles"