Skip to content

Commit

Permalink
remove auto-find-offsets cvar for m_surfaceFriction since it has fals…
Browse files Browse the repository at this point in the history
…e positives
  • Loading branch information
rtldg committed Jan 18, 2022
1 parent c8c8734 commit bacc567
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions addons/sourcemod/scripting/shavit-tas.sp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ float g_fPower[MAXPLAYERS + 1] = {1.0, ...};

bool gB_ForceJump[MAXPLAYERS+1];

Convar gCV_AutoFindOffsets = null;
ConVar sv_airaccelerate = null;
ConVar sv_accelerate = null;
ConVar sv_friction = null;
Expand Down Expand Up @@ -156,8 +155,6 @@ public void OnPluginStart()
RegConsoleCmd("sm_tasmenu", Command_TasSettingsMenu, "Opens the TAS settings menu.");
RegAdminCmd("sm_xutax_scan", Command_ScanOffsets, ADMFLAG_CHEATS, "Scan for possible offset locations");

gCV_AutoFindOffsets = new Convar("xutax_find_offsets", "1", "Attempt to autofind offsets", _, true, 0.0, true, 1.0);

Convar.AutoExecConfig();

if (gB_Late)
Expand Down Expand Up @@ -477,11 +474,6 @@ public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3
if (g_iSurfaceFrictionOffset > 0)
{
flSurfaceFriction = GetEntDataFloat(client, g_iSurfaceFrictionOffset);

if (gCV_AutoFindOffsets.BoolValue && s_iOnGroundCount[client] == 0 && !(flSurfaceFriction == 0.25 || flSurfaceFriction == 1.0))
{
FindNewFrictionOffset(client);
}
}

int style = Shavit_GetBhopStyle(client);
Expand Down

0 comments on commit bacc567

Please sign in to comment.