From 4767247fd2fa9d041ef744835cdfb1642346426c Mon Sep 17 00:00:00 2001 From: Mikusch Date: Fri, 2 Jul 2021 17:50:02 +0200 Subject: [PATCH] Fix retracting the grappling hook not working --- README.md | 2 +- addons/sourcemod/scripting/tf-bhop.sp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ac4b8db..b72f03a 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ preserving 100% of your speed and making each jump feel buttery smooth. * Allows jumping while ducked * Unlimited speed while bunnyhopping * Prevents `CTFGameMovement::PreventBunnyJumping` from clamping your speed -* Support for TF2-specific actions in mid-air (e.g. Scout's air dash, B.A.S.E. Jumper parachute, etc.) +* Support for TF2-specific actions in mid-air (e.g. Scout's air dash, B.A.S.E. Jumper parachute, grappling hooks, etc.) * Fully compatible with my [all-class air dash](https://github.com/Mikusch/air-dash) plugin ## Dependencies diff --git a/addons/sourcemod/scripting/tf-bhop.sp b/addons/sourcemod/scripting/tf-bhop.sp index 1008057..f6fc329 100644 --- a/addons/sourcemod/scripting/tf-bhop.sp +++ b/addons/sourcemod/scripting/tf-bhop.sp @@ -51,7 +51,7 @@ public Plugin myinfo = name = "Team Fortress 2 Bunnyhop", author = "Mikusch", description = "Simple TF2 bunnyhopping plugin", - version = "1.4.6", + version = "1.4.7", url = "https://github.com/Mikusch/tf-bhop" } @@ -145,7 +145,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3 { g_InJumpRelease[client] = false; } - else if (!g_InJumpRelease[client] && !IsInAVehicle(client) && GetWaterLevel(client) < WL_Waist && !TF2_IsPlayerInCondition(client, TFCond_HalloweenGhostMode)) + else if (!g_InJumpRelease[client] && !IsInAVehicle(client) && GetWaterLevel(client) < WL_Waist && !TF2_IsPlayerInCondition(client, TFCond_HalloweenGhostMode) && !TF2_IsPlayerInCondition(client, TFCond_GrapplingHookLatched)) { g_InTriggerPush = false;