From c3b1d11c40e0bdeeca00855bb18ae561d10b5b67 Mon Sep 17 00:00:00 2001 From: AdamTadeusz Date: Fri, 26 Jun 2026 11:34:14 +0100 Subject: [PATCH] init --- src/game/shared/neo/neo_gamerules.cpp | 2 +- src/game/shared/neo/neo_player_shared.cpp | 2 ++ src/game/shared/neo/neo_player_shared.h | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/shared/neo/neo_gamerules.cpp b/src/game/shared/neo/neo_gamerules.cpp index f3ccf56543..23264af8a6 100644 --- a/src/game/shared/neo/neo_gamerules.cpp +++ b/src/game/shared/neo/neo_gamerules.cpp @@ -138,6 +138,7 @@ ConVar sv_neo_cap_reward("sv_neo_cap_reward", "0", FCVAR_REPLICATED, "How much X ConVar sv_neo_cap_reward_dead("sv_neo_cap_reward_dead", "0", FCVAR_REPLICATED, "Whether dead players should receive the ghost capture or escape reward.", true, 0.0f, true, 1.0f); ConVar sv_neo_survivor_bonus("sv_neo_survivor_bonus", "1", FCVAR_REPLICATED, "Whether surviving players on the winning team in CTG and VIP should receive extra XP.", true, 0.0f, true, 1.0f); ConVar sv_neo_ghost_carrier_bonus("sv_neo_ghost_carrier_bonus", "1", FCVAR_REPLICATED, "Whether the ghost carrier on the winning team should receive extra XP.", true, 0.0f, true, 1.0f); +ConVar sv_neo_server_autorecord("sv_neo_server_autorecord", "0", FCVAR_NONE, "Automatically record demos serverside", true, 0, true, 1); #endif // GAME_DLL // Both CLIENT_DLL + GAME_DLL, but server-side setting so it's replicated onto client to read the values @@ -148,7 +149,6 @@ ConVar sv_neo_readyup_countdown("sv_neo_readyup_countdown", "5", FCVAR_REPLICATE ConVar sv_neo_ghost_spawn_bias("sv_neo_ghost_spawn_bias", "0", FCVAR_REPLICATED, "Spawn ghost in the same location as the previous round on odd-indexed rounds (Round 1 = index 0)", true, 0, true, 1); ConVar sv_neo_teamdamage_assists("sv_neo_teamdamage_assists", "0", FCVAR_REPLICATED, "Whether to drain XP when assisting the death of a teammate.", true, 0.0f, true, 1.0f); ConVar sv_neo_client_autorecord("sv_neo_client_autorecord", "0", FCVAR_REPLICATED | FCVAR_DONTRECORD, "Record demos clientside", true, 0, true, 1); -ConVar sv_neo_server_autorecord("sv_neo_server_autorecord", "0", FCVAR_NONE, "Automatically record demos serverside", true, 0, true, 1); #ifdef CLIENT_DLL ConVar cl_neo_client_autorecord_allow("cl_neo_client_autorecord_allow", "1", FCVAR_ARCHIVE, "Allow servers to automatically record demos on the client", true, 0, true, 1); #endif diff --git a/src/game/shared/neo/neo_player_shared.cpp b/src/game/shared/neo/neo_player_shared.cpp index de7b404d34..397ca5a08b 100644 --- a/src/game/shared/neo/neo_player_shared.cpp +++ b/src/game/shared/neo/neo_player_shared.cpp @@ -70,10 +70,12 @@ ConVar sv_neo_spec_replace_player_min_exp("sv_neo_spec_replace_player_min_exp", "0", FCVAR_REPLICATED, "Minimum experience allowed to takeover players ", true, -999, true, 999); +#ifdef GAME_DLL ConVar sv_neo_spec_replace_player_afk_time_sec( "sv_neo_spec_replace_player_afk_time_sec", "180", FCVAR_NONE, "Seconds of inactivity before a player is considered AFK for spectator takeover.", true, -1, true, 999); +#endif // GAME_DLL bool IsAllowedToZoom(CNEOBaseCombatWeapon *pWep) { diff --git a/src/game/shared/neo/neo_player_shared.h b/src/game/shared/neo/neo_player_shared.h index b450ccad02..9db68de1a4 100644 --- a/src/game/shared/neo/neo_player_shared.h +++ b/src/game/shared/neo/neo_player_shared.h @@ -23,7 +23,6 @@ extern ConVar sv_neo_serverside_beacons; extern ConVar sv_neo_spec_replace_player_bot_enable; extern ConVar sv_neo_spec_replace_player_afk_enable; extern ConVar sv_neo_spec_replace_player_min_exp; -extern ConVar sv_neo_spec_replace_player_afk_time_sec; ////////////////////////////////////////////////////// // NEO MOVEMENT DEFINITIONS