mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-15 18:18:44 +00:00
tas credits & override fixes
This commit is contained in:
parent
576c773134
commit
da172f07aa
@ -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
|
#if defined _shavit_tas_oblivious_included
|
||||||
#endinput
|
#endinput
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* tas-xutax.inc file
|
* tas-xutax.inc file
|
||||||
* by: xutaxkamay, shavit
|
* by: xutaxkamay
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
* 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
|
* the terms of the GNU General Public License, version 3.0, as published by the
|
||||||
|
|||||||
@ -60,8 +60,8 @@ ConVar sv_stopspeed = null;
|
|||||||
public Plugin myinfo =
|
public Plugin myinfo =
|
||||||
{
|
{
|
||||||
name = "[shavit] TAS (XutaxKamay)",
|
name = "[shavit] TAS (XutaxKamay)",
|
||||||
author = "xutaxkamay, KiD Fearless, rtldg",
|
author = "xutaxkamay, oblivious, KiD Fearless, rtldg",
|
||||||
description = "TAS module for shavit's bhop timer featuring xutaxkamay's autostrafer.",
|
description = "TAS module for shavit's bhop timer featuring xutaxkamay's autostrafer and oblivious's autogain.",
|
||||||
version = SHAVIT_VERSION,
|
version = SHAVIT_VERSION,
|
||||||
url = "https://github.com/shavitush/bhoptimer"
|
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 (s_iOnGroundCount[client] <= 1)
|
||||||
{
|
{
|
||||||
if (!!(buttons & (IN_FORWARD | IN_BACK)))
|
if (IsSurfing(client))
|
||||||
{
|
{
|
||||||
return Plugin_Continue;
|
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;
|
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;
|
||||||
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user