mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 02:18:26 +00:00
add key overrides to tas menu
This commit is contained in:
parent
42c4550df5
commit
b34a4e6677
@ -462,10 +462,15 @@ void OpenTasSettingsMenu(int client)
|
|||||||
bool tastype_editable = (tastype == TASType_Any);
|
bool tastype_editable = (tastype == TASType_Any);
|
||||||
tastype = (tastype == TASType_Any) ? gI_Type[client] : tastype;
|
tastype = (tastype == TASType_Any) ? gI_Type[client] : tastype;
|
||||||
|
|
||||||
FormatEx(display, sizeof(display), "%T: %T", "Autostrafer_type", client,
|
FormatEx(display, sizeof(display), "%T: %T\n ", "Autostrafer_type", client,
|
||||||
(tastype == TASType_1Tick ? "Autostrafer_1tick" : "Autostrafer_autogain"), client);
|
(tastype == TASType_1Tick ? "Autostrafer_1tick" : "Autostrafer_autogain"), client);
|
||||||
menu.AddItem("type", display, (tastype_editable ? ITEMDRAW_DEFAULT : ITEMDRAW_DISABLED));
|
menu.AddItem("type", display, (tastype_editable ? ITEMDRAW_DEFAULT : ITEMDRAW_DISABLED));
|
||||||
|
|
||||||
|
TASOverride ov = gI_Override[client];
|
||||||
|
FormatEx(display, sizeof(display), "%T: %T", "TASOverride", client,
|
||||||
|
(ov == TASOverride_Normal ? "TASOverride_Normal" : (ov == TASOverride_Surf ? "TASOverride_Surf" : "TASOverride_All")), client);
|
||||||
|
menu.AddItem("override", display);
|
||||||
|
|
||||||
if (Shavit_GetStyleSettingBool(Shavit_GetBhopStyle(client), "segments"))
|
if (Shavit_GetStyleSettingBool(Shavit_GetBhopStyle(client), "segments"))
|
||||||
{
|
{
|
||||||
menu.ExitBackButton = true;
|
menu.ExitBackButton = true;
|
||||||
@ -506,6 +511,21 @@ public int MenuHandler_TasSettings(Menu menu, MenuAction action, int param1, int
|
|||||||
gI_Type[param1] = (gI_Type[param1] == TASType_1Tick ? TASType_Autogain : TASType_1Tick);
|
gI_Type[param1] = (gI_Type[param1] == TASType_1Tick ? TASType_Autogain : TASType_1Tick);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (StrEqual(info, "override"))
|
||||||
|
{
|
||||||
|
if (gI_Override[param1] == TASOverride_Normal)
|
||||||
|
{
|
||||||
|
gI_Override[param1] = TASOverride_Surf;
|
||||||
|
}
|
||||||
|
else if (gI_Override[param1] == TASOverride_Surf)
|
||||||
|
{
|
||||||
|
gI_Override[param1] = TASOverride_All;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gI_Override[param1] = TASOverride_Normal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
OpenTasSettingsMenu(param1);
|
OpenTasSettingsMenu(param1);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -216,6 +216,22 @@
|
|||||||
{
|
{
|
||||||
"en" "Velocity (oblivious)"
|
"en" "Velocity (oblivious)"
|
||||||
}
|
}
|
||||||
|
"TASOverride"
|
||||||
|
{
|
||||||
|
"en" "Key Override"
|
||||||
|
}
|
||||||
|
"TASOverride_Normal"
|
||||||
|
{
|
||||||
|
"en" "W/S"
|
||||||
|
}
|
||||||
|
"TASOverride_Surf"
|
||||||
|
{
|
||||||
|
"en" "W/S (and A/D on surf ramps)"
|
||||||
|
}
|
||||||
|
"TASOverride_All"
|
||||||
|
{
|
||||||
|
"en" "W/S A/D"
|
||||||
|
}
|
||||||
// ---------- Misc ---------- //
|
// ---------- Misc ---------- //
|
||||||
"BHStartZoneDisallowed"
|
"BHStartZoneDisallowed"
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user