From 6ca8e3730533e1be5f5833efe9006aac69050677 Mon Sep 17 00:00:00 2001 From: UncraftedName Date: Tue, 21 Jul 2026 18:30:23 -0700 Subject: [PATCH] Remove all occurances of FCVAR_CHEAT --- spt/features/autojump.cpp | 6 ++--- spt/features/camera.cpp | 6 ++--- spt/features/collision_group.cpp | 2 +- spt/features/ent_props.cpp | 4 ++-- spt/features/game_fixes/rng.cpp | 6 ++--- spt/features/game_fixes/snapshot_overflow.cpp | 2 +- spt/features/game_fixes/vag_crash.cpp | 2 +- spt/features/hops_hud.cpp | 12 +++++----- spt/features/hud.cpp | 2 +- spt/features/isg.cpp | 4 ++-- spt/features/leafvis.cpp | 2 +- spt/features/movement_vars.cpp | 2 +- spt/features/overlay.cpp | 20 ++++++++--------- spt/features/playerio.cpp | 22 +++++++++---------- spt/features/qccmd.cpp | 8 +++---- spt/features/strafehud.cpp | 12 +++++----- spt/features/tas.cpp | 2 +- spt/features/tracing.cpp | 2 +- spt/features/updater.cpp | 8 +++---- .../visualizations/draw_ent_collides.cpp | 2 +- spt/features/visualizations/draw_seams.cpp | 2 +- .../visualizations/draw_world_collides.cpp | 4 ++-- spt/features/visualizations/mesh_test.cpp | 2 +- spt/features/visualizations/oob_ents.cpp | 6 ++--- .../visualizations/portal_placement.cpp | 14 ++++++------ .../renderer/internal/mesh_renderer.cpp | 2 +- .../visualizations/sg-collide-vis.cpp | 8 +++---- spt/features/visualizations/vag_trace.cpp | 8 +++---- 28 files changed, 86 insertions(+), 86 deletions(-) diff --git a/spt/features/autojump.cpp b/spt/features/autojump.cpp index 3326704d9..9e026f69b 100644 --- a/spt/features/autojump.cpp +++ b/spt/features/autojump.cpp @@ -16,16 +16,16 @@ AutojumpFeature spt_autojump; ConVar y_spt_autojump("y_spt_autojump", "0", FCVAR_ARCHIVE | FCVAR_DEMO); -ConVar _y_spt_autojump_ensure_legit("_y_spt_autojump_ensure_legit", "1", FCVAR_CHEAT); +ConVar _y_spt_autojump_ensure_legit("_y_spt_autojump_ensure_legit", "1"); ConVar y_spt_jumpboost("y_spt_jumpboost", "0", - FCVAR_CHEAT, + FCVAR_NONE, "Enables special game movement mechanic.\n" "0 = Default.\n" "1 = ABH movement mechanic.\n" "2 = OE movement mechanic.\n" "3 = No jumpboost. (multiplayer mode movement)"); -ConVar y_spt_aircontrol("y_spt_aircontrol", "0", FCVAR_CHEAT, "Enables HL2 air control."); +ConVar y_spt_aircontrol("y_spt_aircontrol", "0", FCVAR_NONE, "Enables HL2 air control."); namespace patterns { diff --git a/spt/features/camera.cpp b/spt/features/camera.cpp index 6cc5cc480..9dfa52557 100644 --- a/spt/features/camera.cpp +++ b/spt/features/camera.cpp @@ -144,7 +144,7 @@ Camera spt_camera; ConVar y_spt_cam_control( "y_spt_cam_control", "0", - FCVAR_CHEAT, + FCVAR_NONE, "Changes the camera control type.\n" "0 = Default\n" "1 = Drive mode\n" @@ -159,7 +159,7 @@ ConVar y_spt_cam_control( " Sets the camera position to an entity. Use spt_cam_drive_ent to set the entity.\n" "4 = Trace drive mode\n" " Sets the camera position to the currently active trace"); -ConVar y_spt_cam_drive("y_spt_cam_drive", "1", FCVAR_CHEAT, "Enables or disables camera drive mode in-game."); +ConVar y_spt_cam_drive("y_spt_cam_drive", "1", FCVAR_NONE, "Enables or disables camera drive mode in-game."); ConVar y_spt_cam_drive_speed("y_spt_cam_drive_speed", "200", 0, "Speed for moving in camera drive mode."); ConVar y_spt_cam_path_interp("y_spt_cam_path_interp", "1", @@ -168,7 +168,7 @@ ConVar y_spt_cam_path_interp("y_spt_cam_path_interp", "0 = Linear interpolation\n" "1 = Cubic spline\n" "2 = Piecewise Cubic Hermite Interpolating Polynomial (PCHIP)"); -ConVar y_spt_cam_path_draw("y_spt_cam_path_draw", "0", FCVAR_CHEAT, "Draws the current camera path."); +ConVar y_spt_cam_path_draw("y_spt_cam_path_draw", "0", FCVAR_NONE, "Draws the current camera path."); ConVar _y_spt_force_fov("_y_spt_force_fov", "0", 0, "Force FOV to some value."); diff --git a/spt/features/collision_group.cpp b/spt/features/collision_group.cpp index 51f86bc69..b4f699b4f 100644 --- a/spt/features/collision_group.cpp +++ b/spt/features/collision_group.cpp @@ -43,7 +43,7 @@ CollisionGroup spt_collisiongroup; CON_COMMAND_F(y_spt_set_collision_group, "Set player's collision group\nUsually:\n- 5 is normal collisions\n- 10 is quickclip\n", - FCVAR_CHEAT) + FCVAR_NONE) { if (!spt_collisiongroup.ORIG_SetCollisionGroup) return; diff --git a/spt/features/ent_props.cpp b/spt/features/ent_props.cpp index 04c4ff304..aba3c71d0 100644 --- a/spt/features/ent_props.cpp +++ b/spt/features/ent_props.cpp @@ -20,11 +20,11 @@ #include #ifdef SPT_HUD_ENABLED -ConVar y_spt_hud_portal_bubble("y_spt_hud_portal_bubble", "0", FCVAR_CHEAT, "Turns on portal bubble index hud.\n"); +ConVar y_spt_hud_portal_bubble("y_spt_hud_portal_bubble", "0", FCVAR_NONE, "Turns on portal bubble index hud.\n"); ConVar y_spt_hud_ent_info( "y_spt_hud_ent_info", "", - FCVAR_CHEAT, + FCVAR_NONE, "Display entity info on HUD. Format is \"[ent index],[prop regex],[prop regex],...,[prop regex];[ent index],...,[prop regex]\".\n"); #endif diff --git a/spt/features/game_fixes/rng.cpp b/spt/features/game_fixes/rng.cpp index 06bbb1b47..e430b8d51 100644 --- a/spt/features/game_fixes/rng.cpp +++ b/spt/features/game_fixes/rng.cpp @@ -14,20 +14,20 @@ ConVar y_spt_set_ivp_seed_on_load( "y_spt_set_ivp_seed_on_load", "", - FCVAR_CHEAT, + FCVAR_NONE, "Sets the ivp seed once during the next load, can prevent some physics rng when running a tas."); ConVar spt_set_physics_hook_offset_on_load( "spt_set_physics_hook_offset_on_load", "", - FCVAR_CHEAT, + FCVAR_NONE, "Sets the offset of the physics hook timer once during the next load; this may contribute to the uniform random stream.\n" "Valid values are integer multiples of the tickrate in [0,0.05f]."); ConVar spt_set_all_sounds_available_after_load( "spt_set_all_sounds_available_after_load", "0", - FCVAR_CHEAT | FCVAR_TAS_RESET, + FCVAR_TAS_RESET, "Set to 1 for consistent sound rng, which may contribute to the uniform random stream. Useful for new TAS scripts, but may break old scripts."); RNGStuff spt_rng; diff --git a/spt/features/game_fixes/snapshot_overflow.cpp b/spt/features/game_fixes/snapshot_overflow.cpp index 842e1268a..e6658c1de 100644 --- a/spt/features/game_fixes/snapshot_overflow.cpp +++ b/spt/features/game_fixes/snapshot_overflow.cpp @@ -4,7 +4,7 @@ ConVar spt_prevent_snapshot_overflow("spt_prevent_snapshot_overflow", "0", - FCVAR_CHEAT | FCVAR_DONTRECORD, + FCVAR_DONTRECORD, "If enabled, tries to prevent the reliable snapshot overflow error."); namespace patterns diff --git a/spt/features/game_fixes/vag_crash.cpp b/spt/features/game_fixes/vag_crash.cpp index b3676caa0..8c4c2e5a5 100644 --- a/spt/features/game_fixes/vag_crash.cpp +++ b/spt/features/game_fixes/vag_crash.cpp @@ -11,7 +11,7 @@ ConVar y_spt_prevent_vag_crash( "y_spt_prevent_vag_crash", "0", - FCVAR_CHEAT | FCVAR_DONTRECORD, + FCVAR_DONTRECORD, "Prevents the game from crashing from too many recursive teleports (useful when searching for vertical angle glitches).\n"); // spt_prevent_vag_crash diff --git a/spt/features/hops_hud.cpp b/spt/features/hops_hud.cpp index 8ad990a09..28e488f7e 100644 --- a/spt/features/hops_hud.cpp +++ b/spt/features/hops_hud.cpp @@ -25,12 +25,12 @@ #undef max #undef clamp -ConVar y_spt_jhud_hops("y_spt_jhud_hops", "0", FCVAR_CHEAT, "Turns on the hop practice Jump HUD."); -ConVar y_spt_jhud_ljstats("y_spt_jhud_ljstats", "0", FCVAR_CHEAT, "Turns on the LJ stats Jump HUD."); -ConVar y_spt_jhud_velocity("y_spt_jhud_velocity", "0", FCVAR_CHEAT, "Turns on the velocity Jump HUD."); -ConVar spt_jhud_strafe("spt_jhud_strafe", "0", FCVAR_CHEAT, "Turns on the strafe percentage Jump HUD."); -ConVar y_spt_jhud_x("y_spt_jhud_x", "0", FCVAR_CHEAT, "Jump HUD x offset."); -ConVar y_spt_jhud_y("y_spt_jhud_y", "100", FCVAR_CHEAT, "Jump HUD y offset."); +ConVar y_spt_jhud_hops("y_spt_jhud_hops", "0", FCVAR_NONE, "Turns on the hop practice Jump HUD."); +ConVar y_spt_jhud_ljstats("y_spt_jhud_ljstats", "0", FCVAR_NONE, "Turns on the LJ stats Jump HUD."); +ConVar y_spt_jhud_velocity("y_spt_jhud_velocity", "0", FCVAR_NONE, "Turns on the velocity Jump HUD."); +ConVar spt_jhud_strafe("spt_jhud_strafe", "0", FCVAR_NONE, "Turns on the strafe percentage Jump HUD."); +ConVar y_spt_jhud_x("y_spt_jhud_x", "0", FCVAR_NONE, "Jump HUD x offset."); +ConVar y_spt_jhud_y("y_spt_jhud_y", "100", FCVAR_NONE, "Jump HUD y offset."); namespace ljstats { diff --git a/spt/features/hud.cpp b/spt/features/hud.cpp index 7721398fe..190ebaf84 100644 --- a/spt/features/hud.cpp +++ b/spt/features/hud.cpp @@ -18,7 +18,7 @@ extern ConVar _y_spt_overlay; HUDFeature spt_hud_feat; ConVar y_spt_hud("y_spt_hud", "1", 0, "When set to 1, displays SPT HUD."); -ConVar y_spt_hud_left("y_spt_hud_left", "0", FCVAR_CHEAT, "When set to 1, displays SPT HUD on the left."); +ConVar y_spt_hud_left("y_spt_hud_left", "0", FCVAR_NONE, "When set to 1, displays SPT HUD on the left."); const std::string FONT_DefaultFixedOutline = "DefaultFixedOutline"; const std::string FONT_Trebuchet20 = "Trebuchet20"; diff --git a/spt/features/isg.cpp b/spt/features/isg.cpp index 9be0ac627..506794aa9 100644 --- a/spt/features/isg.cpp +++ b/spt/features/isg.cpp @@ -9,7 +9,7 @@ #include "convar.hpp" -ConVar y_spt_hud_isg("y_spt_hud_isg", "0", FCVAR_CHEAT, "Is the ISG flag set?\n"); +ConVar y_spt_hud_isg("y_spt_hud_isg", "0", FCVAR_NONE, "Is the ISG flag set?\n"); namespace patterns { @@ -56,7 +56,7 @@ class ISGFeature : public FeatureWrapper static ISGFeature spt_isg; -CON_COMMAND_F(y_spt_set_isg, "Sets the state of ISG in the game (1 or 0)", FCVAR_DONTRECORD | FCVAR_CHEAT) +CON_COMMAND_F(y_spt_set_isg, "Sets the state of ISG in the game (1 or 0)", FCVAR_DONTRECORD) { if (args.ArgC() < 2) { diff --git a/spt/features/leafvis.cpp b/spt/features/leafvis.cpp index a57703519..e719f9444 100644 --- a/spt/features/leafvis.cpp +++ b/spt/features/leafvis.cpp @@ -11,7 +11,7 @@ namespace patterns ConVar y_spt_leafvis_index("y_spt_leafvis_index", "0", - FCVAR_CHEAT, + FCVAR_NONE, "Choose which BSP leaf mat_leafvis will use. Requires mat_leafvis to be set\n"); // Enhance mat_leafvis by allowing you to choose the BSP leaf by index diff --git a/spt/features/movement_vars.cpp b/spt/features/movement_vars.cpp index a14c95b29..9a41c62a0 100644 --- a/spt/features/movement_vars.cpp +++ b/spt/features/movement_vars.cpp @@ -17,7 +17,7 @@ static ConVar* _sv_maxspeed_cvar = nullptr; ConVar spt_player_maxspeed( "spt_player_maxspeed", "0", - FCVAR_DEMO | FCVAR_CHEAT, + FCVAR_DEMO, "If nonzero, set player maxspeed to this value. When changed also changes cl_forwardspeed/cl_sidespeed/cl_backspeed/sv_maxspeed to match this value.", Change_Maxspeed); diff --git a/spt/features/overlay.cpp b/spt/features/overlay.cpp index 7fbf204ef..a4ef1f1e8 100644 --- a/spt/features/overlay.cpp +++ b/spt/features/overlay.cpp @@ -24,11 +24,11 @@ ConVar _y_spt_overlay("_y_spt_overlay", "0", - FCVAR_CHEAT, + FCVAR_NONE, "Enables the overlay camera in the top left of the screen.\n"); ConVar _y_spt_overlay_type("_y_spt_overlay_type", "0", - FCVAR_CHEAT, + FCVAR_NONE, "Overlay type:\n" " 0 = save glitch body\n" " 1 = angle glitch simulation\n" @@ -47,7 +47,7 @@ constexpr int SPT_PORTAL_SELECT_FLAGS = GPF_ALLOW_AUTO | GPF_ALLOW_PLAYER_ENV; ConVar _y_spt_overlay_portal( "_y_spt_overlay_portal", "env", - FCVAR_CHEAT, + FCVAR_NONE, "Chooses the portal for the overlay camera. For the SG camera this is the portal you save glitch on, for angle glitch simulation this is the portal you enter. Valid values are:\n" "" SPT_PORTAL_SELECT_DESCRIPTION_ENV_PREFIX "" SPT_PORTAL_SELECT_DESCRIPTION_AUTO_PREFIX "" SPT_PORTAL_SELECT_DESCRIPTION); @@ -55,7 +55,7 @@ ConVar _y_spt_overlay_portal( ConVar _y_spt_overlay_width("_y_spt_overlay_width", "480", - FCVAR_CHEAT, + FCVAR_NONE, "Determines the width of the overlay. Height is determined automatically from width.\n", true, 20.0f, @@ -63,18 +63,18 @@ ConVar _y_spt_overlay_width("_y_spt_overlay_width", 3840.0f); ConVar _y_spt_overlay_fov("_y_spt_overlay_fov", "90", - FCVAR_CHEAT, + FCVAR_NONE, "Determines the FOV of the overlay.\n", true, 1.f, true, 175.f); -ConVar _y_spt_overlay_swap("_y_spt_overlay_swap", "0", FCVAR_CHEAT, "Swap alternate view and main screen?\n"); +ConVar _y_spt_overlay_swap("_y_spt_overlay_swap", "0", FCVAR_NONE, "Swap alternate view and main screen?\n"); #if defined(SPT_HUD_ENABLED) && !defined(SPT_HUD_TEXTONLY) ConVar _y_spt_overlay_crosshair_size("_y_spt_overlay_crosshair_size", "10", - FCVAR_CHEAT, + FCVAR_NONE, "Overlay crosshair size.", true, 1, @@ -82,7 +82,7 @@ ConVar _y_spt_overlay_crosshair_size("_y_spt_overlay_crosshair_size", 200); ConVar _y_spt_overlay_crosshair_thickness("_y_spt_overlay_crosshair_thickness", "1", - FCVAR_CHEAT, + FCVAR_NONE, "Overlay crosshair thickness.", true, 1, @@ -90,11 +90,11 @@ ConVar _y_spt_overlay_crosshair_thickness("_y_spt_overlay_crosshair_thickness", 15); ConVar _y_spt_overlay_crosshair_color("_y_spt_overlay_crosshair_color", "0 255 0 255", - FCVAR_CHEAT, + FCVAR_NONE, "Overlay crosshair RGBA color."); #endif -ConVar _y_spt_overlay_no_roll("_y_spt_overlay_no_roll", "1", FCVAR_CHEAT, "Set the roll of overlay camera roll to 0."); +ConVar _y_spt_overlay_no_roll("_y_spt_overlay_no_roll", "1", FCVAR_NONE, "Set the roll of overlay camera roll to 0."); Overlay spt_overlay; diff --git a/spt/features/playerio.cpp b/spt/features/playerio.cpp index 6daff7abd..c6a57436c 100644 --- a/spt/features/playerio.cpp +++ b/spt/features/playerio.cpp @@ -30,23 +30,23 @@ static void* cinput_thisptr = nullptr; ConVar spt_hud_position("spt_hud_position", "0", - FCVAR_CHEAT, + FCVAR_NONE, "Turns on the position hud.\n" "=1: eye position\n" ">1: player position with more precision."); -ConVar spt_hud_angles("spt_hud_angles", "0", FCVAR_CHEAT, "Turns on the angles hud with more precision."); -ConVar y_spt_hud_accel("y_spt_hud_accel", "0", FCVAR_CHEAT, "Turns on the acceleration hud."); +ConVar spt_hud_angles("spt_hud_angles", "0", FCVAR_NONE, "Turns on the angles hud with more precision."); +ConVar y_spt_hud_accel("y_spt_hud_accel", "0", FCVAR_NONE, "Turns on the acceleration hud."); ConVar y_spt_hud_ag_sg_tester("y_spt_hud_ag_sg_tester", "0", - FCVAR_CHEAT, + FCVAR_NONE, "Tests if angle glitch will save glitch you."); -ConVar y_spt_hud_flags("y_spt_hud_flags", "0", FCVAR_CHEAT, "Turns on the flags hud."); -ConVar y_spt_hud_moveflags("y_spt_hud_moveflags", "0", FCVAR_CHEAT, "Turns on the move type hud."); -ConVar y_spt_hud_movecollideflags("y_spt_hud_movecollideflags", "0", FCVAR_CHEAT, "Turns on the move collide hud."); -ConVar y_spt_hud_collisionflags("y_spt_hud_collisionflags", "0", FCVAR_CHEAT, "Turns on the collision group hud."); -ConVar y_spt_hud_vars("y_spt_hud_vars", "0", FCVAR_CHEAT, "Turns on the movement vars HUD."); -ConVar y_spt_hud_velocity("y_spt_hud_velocity", "0", FCVAR_CHEAT, "Turns on the velocity hud."); -ConVar y_spt_hud_velocity_angles("y_spt_hud_velocity_angles", "0", FCVAR_CHEAT, "Display velocity Euler angles."); +ConVar y_spt_hud_flags("y_spt_hud_flags", "0", FCVAR_NONE, "Turns on the flags hud."); +ConVar y_spt_hud_moveflags("y_spt_hud_moveflags", "0", FCVAR_NONE, "Turns on the move type hud."); +ConVar y_spt_hud_movecollideflags("y_spt_hud_movecollideflags", "0", FCVAR_NONE, "Turns on the move collide hud."); +ConVar y_spt_hud_collisionflags("y_spt_hud_collisionflags", "0", FCVAR_NONE, "Turns on the collision group hud."); +ConVar y_spt_hud_vars("y_spt_hud_vars", "0", FCVAR_NONE, "Turns on the movement vars HUD."); +ConVar y_spt_hud_velocity("y_spt_hud_velocity", "0", FCVAR_NONE, "Turns on the velocity hud."); +ConVar y_spt_hud_velocity_angles("y_spt_hud_velocity_angles", "0", FCVAR_NONE, "Display velocity Euler angles."); namespace patterns { diff --git a/spt/features/qccmd.cpp b/spt/features/qccmd.cpp index f56bba935..b5ada33aa 100644 --- a/spt/features/qccmd.cpp +++ b/spt/features/qccmd.cpp @@ -12,7 +12,7 @@ ConVar spt_qc_cmd("spt_qc_cmd", "", - FCVAR_CHEAT, + FCVAR_NONE, "Execute command when quickclip occurs. " "This is detected by the difference between " "the quake position and the shadow position " @@ -22,18 +22,18 @@ ConVar spt_qc_cmd("spt_qc_cmd", ConVar spt_qc_threshold( "spt_qc_threshold", "32", - FCVAR_CHEAT, + FCVAR_NONE, "Threshold for quickclip detection, the distance between the quake hitbox and havok hitbox must exceed this before the teleport.\n"); ConVar spt_qc_maxdist_to_prev( "spt_qc_maxdist_to_prev", "200", - FCVAR_CHEAT | FCVAR_HIDDEN, + FCVAR_HIDDEN, "Max distance to previous shadow position. This is to prevent loading a save with a havok hitbox differential causing the qc command to trigger.\n"); ConVar spt_qc_teleport_eps("spt_qc_teleport_eps", "1", - FCVAR_CHEAT | FCVAR_HIDDEN, + FCVAR_HIDDEN, "Quake hitbox needs to be within this many units to be considered teleported.\n"); // Execute command on quickclip diff --git a/spt/features/strafehud.cpp b/spt/features/strafehud.cpp index 93b88a90d..ae85d59e9 100644 --- a/spt/features/strafehud.cpp +++ b/spt/features/strafehud.cpp @@ -62,12 +62,12 @@ class StrafeHUD : public FeatureWrapper static StrafeHUD feat_strafehud; -ConVar spt_strafehud("spt_strafehud", "0", FCVAR_CHEAT, "Draws the strafe HUD."); -ConVar spt_strafehud_x("spt_strafehud_x", "-10", FCVAR_CHEAT, "The X position for the strafe HUD."); -ConVar spt_strafehud_y("spt_strafehud_y", "-10", FCVAR_CHEAT, "The Y position for the strafe HUD."); +ConVar spt_strafehud("spt_strafehud", "0", FCVAR_NONE, "Draws the strafe HUD."); +ConVar spt_strafehud_x("spt_strafehud_x", "-10", FCVAR_NONE, "The X position for the strafe HUD."); +ConVar spt_strafehud_y("spt_strafehud_y", "-10", FCVAR_NONE, "The Y position for the strafe HUD."); ConVar spt_strafehud_size("spt_strafehud_size", "256", - FCVAR_CHEAT, + FCVAR_NONE, "The width and height of the strafe HUD.", true, 1, @@ -75,7 +75,7 @@ ConVar spt_strafehud_size("spt_strafehud_size", 0); ConVar spt_strafehud_detail_scale("spt_strafehud_detail_scale", "4", - FCVAR_CHEAT, + FCVAR_NONE, "The detail scale for the lines of the strafe HUD.", true, 1, @@ -83,7 +83,7 @@ ConVar spt_strafehud_detail_scale("spt_strafehud_detail_scale", 15); ConVar spt_strafehud_lock_mode("spt_strafehud_lock_mode", "1", - FCVAR_CHEAT, + FCVAR_NONE, "Lock mode used by the strafe HUD:\n" "0 - view direction\n" "1 - velocity direction\n" diff --git a/spt/features/tas.cpp b/spt/features/tas.cpp index 971f52fb8..c2ffe5a17 100644 --- a/spt/features/tas.cpp +++ b/spt/features/tas.cpp @@ -146,7 +146,7 @@ ConVar tas_script_printvars("tas_script_printvars", "Prints variable information when running .srctas scripts.\n"); ConVar tas_script_savestates("tas_script_savestates", "1", 0, "Enables/disables savestates in .srctas scripts.\n"); ConVar tas_script_onsuccess("tas_script_onsuccess", "", 0, "Commands to be executed when a search concludes.\n"); -ConVar y_spt_hud_script_progress("y_spt_hud_script_progress", "0", FCVAR_CHEAT, "Turns on the script progress hud.\n"); +ConVar y_spt_hud_script_progress("y_spt_hud_script_progress", "0", FCVAR_NONE, "Turns on the script progress hud.\n"); TASFeature spt_tas; diff --git a/spt/features/tracing.cpp b/spt/features/tracing.cpp index ba0a06f8c..7c9eaa00a 100644 --- a/spt/features/tracing.cpp +++ b/spt/features/tracing.cpp @@ -20,7 +20,7 @@ #undef min #undef max -ConVar y_spt_hud_oob("y_spt_hud_oob", "0", FCVAR_CHEAT, "Is the player OoB?"); +ConVar y_spt_hud_oob("y_spt_hud_oob", "0", FCVAR_NONE, "Is the player OoB?"); Tracing spt_tracing; diff --git a/spt/features/updater.cpp b/spt/features/updater.cpp index 64e0f8170..7c6367a6c 100644 --- a/spt/features/updater.cpp +++ b/spt/features/updater.cpp @@ -71,7 +71,7 @@ class Updater : public FeatureWrapper static Updater spt_updater; -CON_COMMAND_F(y_spt_check_update, "Check the release information of spt.", FCVAR_CHEAT | FCVAR_DONTRECORD) +CON_COMMAND_F(y_spt_check_update, "Check the release information of spt.", FCVAR_DONTRECORD) { int res = spt_updater.CheckUpdate(); switch (res) @@ -89,7 +89,7 @@ CON_COMMAND_F(y_spt_check_update, "Check the release information of spt.", FCVAR } } -CON_COMMAND_F(y_spt_update, "Check and install available update for spt", FCVAR_CHEAT | FCVAR_DONTRECORD) +CON_COMMAND_F(y_spt_update, "Check and install available update for spt", FCVAR_DONTRECORD) { if (args.ArgC() > 2) { @@ -121,7 +121,7 @@ CON_COMMAND_F(y_spt_update, "Check and install available update for spt", FCVAR_ CON_COMMAND_F( y_spt_reload, "spt_reload [path]. Reloads the plugin. If a path is given, will try to replace the current loaded plugin with the one from the path.", - FCVAR_CHEAT | FCVAR_DONTRECORD) + FCVAR_DONTRECORD) { if (args.ArgC() == 1) spt_updater.ReloadPlugin(); @@ -129,7 +129,7 @@ CON_COMMAND_F( spt_updater.ReloadFromPath(args.Arg(1)); } -CON_COMMAND_F(spt_unload, "Unload the plugin.", FCVAR_CHEAT | FCVAR_DONTRECORD) +CON_COMMAND_F(spt_unload, "Unload the plugin.", FCVAR_DONTRECORD) { int index = spt_updater.GetPluginIndex(); if (index == -1) diff --git a/spt/features/visualizations/draw_ent_collides.cpp b/spt/features/visualizations/draw_ent_collides.cpp index 08d5cf54a..cfdaa4b7c 100644 --- a/spt/features/visualizations/draw_ent_collides.cpp +++ b/spt/features/visualizations/draw_ent_collides.cpp @@ -20,7 +20,7 @@ ConVar spt_draw_ent_collides( "spt_draw_ent_collides", "0", - FCVAR_CHEAT | FCVAR_DONTRECORD, + FCVAR_DONTRECORD, "Draws the physics objects of all entities (except for the world and player), use 2 to ignore z testing.\n" " - a shaded color means that the player likely collides with the entity\n" " - a green mesh means that the server/vphysics agree on where the entity is\n" diff --git a/spt/features/visualizations/draw_seams.cpp b/spt/features/visualizations/draw_seams.cpp index b4d477861..b5124b08f 100644 --- a/spt/features/visualizations/draw_seams.cpp +++ b/spt/features/visualizations/draw_seams.cpp @@ -17,7 +17,7 @@ #include "spt\utils\interfaces.hpp" #include "imgui\imgui_interface.hpp" -ConVar y_spt_draw_seams("y_spt_draw_seams", "0", FCVAR_CHEAT, "Draws seamshot stuff"); +ConVar y_spt_draw_seams("y_spt_draw_seams", "0", FCVAR_NONE, "Draws seamshot stuff"); class DrawSeamsFeature : public FeatureWrapper { diff --git a/spt/features/visualizations/draw_world_collides.cpp b/spt/features/visualizations/draw_world_collides.cpp index 61a2a09a3..ff8d56781 100644 --- a/spt/features/visualizations/draw_world_collides.cpp +++ b/spt/features/visualizations/draw_world_collides.cpp @@ -18,7 +18,7 @@ ConVar spt_draw_world_collides( "spt_draw_world_collides", "0", - FCVAR_CHEAT | FCVAR_DONTRECORD, + FCVAR_DONTRECORD, "Draws the collision of whatever part of the world the player is looking at. Use 2 to ignore z testing. Uses the following colors:\n" " - turquoise: box brush\n" " - purple: complex (i.e. non-box) brush\n" @@ -29,7 +29,7 @@ ConVar spt_draw_world_collides( const std::string _g_default_mask_str = std::to_string(MASK_PLAYERSOLID | MASK_VISIBLE); ConVar spt_draw_world_collides_mask("spt_draw_world_collides_mask", _g_default_mask_str.c_str(), - FCVAR_CHEAT | FCVAR_DONTRECORD | FCVAR_HIDDEN, + FCVAR_DONTRECORD | FCVAR_HIDDEN, "The tracing mask used by spt_draw_world_collides."); #define _ZTEST (spt_draw_world_collides.GetInt() < 2) diff --git a/spt/features/visualizations/mesh_test.cpp b/spt/features/visualizations/mesh_test.cpp index 7ec99088b..e93a40c4c 100644 --- a/spt/features/visualizations/mesh_test.cpp +++ b/spt/features/visualizations/mesh_test.cpp @@ -19,7 +19,7 @@ ConVar y_spt_draw_mesh_examples("y_spt_draw_mesh_examples", "0", - FCVAR_CHEAT | FCVAR_DONTRECORD, + FCVAR_DONTRECORD, "Draw a bunch of example meshes near the origin."); static std::vector tests; diff --git a/spt/features/visualizations/oob_ents.cpp b/spt/features/visualizations/oob_ents.cpp index d02157f55..76d955185 100644 --- a/spt/features/visualizations/oob_ents.cpp +++ b/spt/features/visualizations/oob_ents.cpp @@ -55,20 +55,20 @@ class HudOobEntsFeature : public FeatureWrapper static HudOobEntsFeature spt_hud_oob_ents_feat; #ifdef SPT_HUD_ENABLED -ConVar spt_hud_oob_ents("spt_hud_oob_ents", "0", FCVAR_CHEAT, "Shows entities that are oob."); +ConVar spt_hud_oob_ents("spt_hud_oob_ents", "0", FCVAR_NONE, "Shows entities that are oob."); #endif #ifdef SPT_MESH_RENDERING_ENABLED ConVar spt_draw_oob_ents("spt_draw_oob_ents", "0", - FCVAR_CHEAT, + FCVAR_NONE, "Draws a position indicator for entities.\n" " 1 - draw for oob ents only\n" " 2 - no z-test\n" " 3 - draw for all ents & no-ztest\n"); #endif -CON_COMMAND_F(spt_print_oob_ents, "Prints entities that are oob", FCVAR_DONTRECORD | FCVAR_CHEAT) +CON_COMMAND_F(spt_print_oob_ents, "Prints entities that are oob", FCVAR_DONTRECORD) { spt_hud_oob_ents_feat.PrintEntsCon(); } diff --git a/spt/features/visualizations/portal_placement.cpp b/spt/features/visualizations/portal_placement.cpp index 840d544ab..1ce930acc 100644 --- a/spt/features/visualizations/portal_placement.cpp +++ b/spt/features/visualizations/portal_placement.cpp @@ -43,16 +43,16 @@ ConVar y_spt_hud_portal_placement("y_spt_hud_portal_placement", "0", - FCVAR_CHEAT, + FCVAR_NONE, "Show portal placement info\n" " 1 = Boolean result\n" " 2 = String result\n" " 3 = Float result"); -ConVar y_spt_draw_pp("y_spt_draw_pp", "0", FCVAR_CHEAT, "Draw portal placement."); -ConVar y_spt_draw_pp_blue("y_spt_draw_pp_blue", "1", FCVAR_CHEAT, "Draw blue portal placement."); -ConVar y_spt_draw_pp_orange("y_spt_draw_pp_orange", "1", FCVAR_CHEAT, "Draw orange portal placement."); -ConVar y_spt_draw_pp_failed("y_spt_draw_pp_failed", "0", FCVAR_CHEAT, "Draw failed portal placement."); -ConVar y_spt_draw_pp_bbox("y_spt_draw_pp_bbox", "0", FCVAR_CHEAT, "Draw the bounding box of the portal placement."); +ConVar y_spt_draw_pp("y_spt_draw_pp", "0", FCVAR_NONE, "Draw portal placement."); +ConVar y_spt_draw_pp_blue("y_spt_draw_pp_blue", "1", FCVAR_NONE, "Draw blue portal placement."); +ConVar y_spt_draw_pp_orange("y_spt_draw_pp_orange", "1", FCVAR_NONE, "Draw orange portal placement."); +ConVar y_spt_draw_pp_failed("y_spt_draw_pp_failed", "0", FCVAR_NONE, "Draw failed portal placement."); +ConVar y_spt_draw_pp_bbox("y_spt_draw_pp_bbox", "0", FCVAR_NONE, "Draw the bounding box of the portal placement."); enum PlacementGridFlags { @@ -184,7 +184,7 @@ CON_COMMAND_F( " green - portal placement success, with darker shades meaning a further portal bump\n" " red - portal placement failure\n" " blue - portal placement success but the portal will fizzle 0.1s after landing", - FCVAR_CHEAT) + FCVAR_NONE) { auto& grid = spt_pp.ppGrid; int newFlags = PLACEMENT_GRID_ENABLED; diff --git a/spt/features/visualizations/renderer/internal/mesh_renderer.cpp b/spt/features/visualizations/renderer/internal/mesh_renderer.cpp index 05bf6cfce..111e867be 100644 --- a/spt/features/visualizations/renderer/internal/mesh_renderer.cpp +++ b/spt/features/visualizations/renderer/internal/mesh_renderer.cpp @@ -41,7 +41,7 @@ ConVar y_spt_draw_mesh_debug( "y_spt_draw_mesh_debug", "0", - FCVAR_CHEAT | FCVAR_DONTRECORD, + FCVAR_DONTRECORD, "Draws the AABB and position metric of all meshes, uses the following colors:\n" " - red: static mesh\n" " - blue: dynamic mesh\n" diff --git a/spt/features/visualizations/sg-collide-vis.cpp b/spt/features/visualizations/sg-collide-vis.cpp index a17536a03..a42cb059b 100644 --- a/spt/features/visualizations/sg-collide-vis.cpp +++ b/spt/features/visualizations/sg-collide-vis.cpp @@ -21,7 +21,7 @@ using interfaces::engine_server; ConVar y_spt_draw_portal_env("y_spt_draw_portal_env", "0", - FCVAR_CHEAT | FCVAR_DONTRECORD, + FCVAR_DONTRECORD, "Draw the geometry in a portal's physics environment; draws the following colors:\n" " - white: the portal hole\n" " - red: world geometry in front of the portal\n" @@ -33,7 +33,7 @@ constexpr int SPT_PORTAL_SELECT_FLAGS = GPF_ALLOW_AUTO | GPF_ALLOW_PLAYER_ENV; ConVar y_spt_draw_portal_env_type( "y_spt_draw_portal_env_type", "auto", - FCVAR_CHEAT | FCVAR_DONTRECORD, + FCVAR_DONTRECORD, "This determines what portal to use for all spt_draw_portal_* cvars. Valid values are:\n" "" SPT_PORTAL_SELECT_DESCRIPTION_AUTO_PREFIX "" SPT_PORTAL_SELECT_DESCRIPTION_ENV_PREFIX "" SPT_PORTAL_SELECT_DESCRIPTION); @@ -41,7 +41,7 @@ ConVar y_spt_draw_portal_env_type( ConVar y_spt_draw_portal_env_ents( "y_spt_draw_portal_env_ents", "0", - FCVAR_CHEAT | FCVAR_DONTRECORD, + FCVAR_DONTRECORD, "Draw entities owned by portal and shadow clones from remote portal; draws the following colors:\n" " - white: the portal hole\n" " - solid green: this entity collides with UTIL_Portal_TraceRay (and therefore so does the player)\n" @@ -51,7 +51,7 @@ ConVar y_spt_draw_portal_env_ents( ConVar y_spt_draw_portal_env_remote("y_spt_draw_portal_env_remote", "0", - FCVAR_CHEAT | FCVAR_DONTRECORD, + FCVAR_DONTRECORD, "Draw geometry from remote portal; draws the following colors:\n" " - white: the portal hole\n" " - light red: world geometry cloned from the linked portal\n" diff --git a/spt/features/visualizations/vag_trace.cpp b/spt/features/visualizations/vag_trace.cpp index bd42dcea6..52c98f183 100644 --- a/spt/features/visualizations/vag_trace.cpp +++ b/spt/features/visualizations/vag_trace.cpp @@ -14,11 +14,11 @@ #include "spt\features\playerio.hpp" #include "imgui\imgui_interface.hpp" -ConVar y_spt_draw_vag_trace("y_spt_draw_vag_trace", "0", FCVAR_CHEAT, "Draw VAG teleport destination(s)"); +ConVar y_spt_draw_vag_trace("y_spt_draw_vag_trace", "0", FCVAR_NONE, "Draw VAG teleport destination(s)"); ConVar y_spt_draw_vag_target_trace("y_spt_draw_vag_target_trace", "0", - FCVAR_CHEAT, + FCVAR_NONE, "Draw where to place wall/floor/ceiling portal to get to VAG target"); constexpr int SPT_PORTAL_SELECT_FLAGS = GPF_ALLOW_AUTO | GPF_ALLOW_OVERLAY | GPF_ONLY_OPEN_PORTALS; @@ -26,14 +26,14 @@ constexpr int SPT_PORTAL_SELECT_FLAGS = GPF_ALLOW_AUTO | GPF_ALLOW_OVERLAY | GPF ConVar y_spt_draw_vag_entry_portal( "y_spt_draw_vag_entry_portal", "overlay", - FCVAR_CHEAT, + FCVAR_NONE, "Chooses the portal for the VAG trace, this is the portal you enter. Valid options are:\n" "" SPT_PORTAL_SELECT_DESCRIPTION_OVERLAY_PREFIX "" SPT_PORTAL_SELECT_DESCRIPTION_AUTO_PREFIX "" SPT_PORTAL_SELECT_DESCRIPTION); ConVar y_spt_draw_vag_lock_entry("y_spt_draw_vag_lock_entry", "1", - FCVAR_CHEAT, + FCVAR_NONE, "VAG trace type:\n" " 0 - Lock the exit portal in place\n" " 1 - Lock the entry portal in place\n"