From dd4fdcd4276e6f08f568620bdb4dd3871e508b7f Mon Sep 17 00:00:00 2001 From: Yimura Date: Fri, 1 Jan 2021 15:23:47 +0100 Subject: [PATCH] fix(SuperSprint): Only sprint while ped is sprinting --- BigBaseV2/src/features/looped/super_sprint.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BigBaseV2/src/features/looped/super_sprint.cpp b/BigBaseV2/src/features/looped/super_sprint.cpp index 3fb892cc..42cd91a6 100644 --- a/BigBaseV2/src/features/looped/super_sprint.cpp +++ b/BigBaseV2/src/features/looped/super_sprint.cpp @@ -12,7 +12,7 @@ namespace big { QUEUE_JOB_BEGIN_CLAUSE(= ) { - if (PAD::IS_CONTROL_PRESSED(0, 32)) + if (TASK::IS_PED_SPRINTING(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId))) { Ped player = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId); @@ -22,6 +22,10 @@ namespace big PLAYER::SET_PLAYER_SPRINT(g_playerId, 1); PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(g_playerId, 1.49); } + else + { + PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(g_playerId, 1.0); + } }QUEUE_JOB_END_CLAUSE } else if (!bSuperSprint && bSuperSprint != bLastSuperSprint)