tas credits & override fixes

This commit is contained in:
rtldg 2022-01-02 14:46:44 +00:00
parent 576c773134
commit da172f07aa
3 changed files with 35 additions and 8 deletions

View File

@ -1,3 +1,20 @@
/*
* tas-oblivious.inc file
* by: oblivious
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, version 3.0, as published by the
* Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#if defined _shavit_tas_oblivious_included
#endinput

View File

@ -1,6 +1,6 @@
/*
* tas-xutax.inc file
* by: xutaxkamay, shavit
* by: xutaxkamay
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, version 3.0, as published by the

View File

@ -60,8 +60,8 @@ ConVar sv_stopspeed = null;
public Plugin myinfo =
{
name = "[shavit] TAS (XutaxKamay)",
author = "xutaxkamay, KiD Fearless, rtldg",
description = "TAS module for shavit's bhop timer featuring xutaxkamay's autostrafer.",
author = "xutaxkamay, oblivious, KiD Fearless, rtldg",
description = "TAS module for shavit's bhop timer featuring xutaxkamay's autostrafer and oblivious's autogain.",
version = SHAVIT_VERSION,
url = "https://github.com/shavitush/bhoptimer"
};
@ -323,20 +323,30 @@ public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3
if (s_iOnGroundCount[client] <= 1)
{
if (!!(buttons & (IN_FORWARD | IN_BACK)))
if (IsSurfing(client))
{
return Plugin_Continue;
}
if (!!(buttons & (IN_MOVERIGHT | IN_MOVELEFT)))
if (tastype != TASType_Autogain && tastype != TASType_AutogainNoSpeedLoss)
{
if (gI_Override[client] == TASOverride_All)
if (!!(buttons & (IN_FORWARD | IN_BACK)))
{
return Plugin_Continue;
}
else if (gI_Override[client] == TASOverride_Surf && IsSurfing(client))
if (!!(buttons & (IN_MOVERIGHT | IN_MOVELEFT)))
{
return Plugin_Continue;
if (gI_Override[client] == TASOverride_All)
{
return Plugin_Continue;
}
/*
else if (gI_Override[client] == TASOverride_Surf && IsSurfing(client))
{
return Plugin_Continue;
}
*/
}
}