Skip to content

Commit a3864d8

Browse files
committed
Fix #366: Can only run forward bug
1 parent 42582eb commit a3864d8

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Client/game_sa/CPedSA.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ class CPedSA : public virtual CPed, public virtual CPhysicalSA
440440
void GetVoice(const char** pszVoiceType, const char** pszVoice);
441441
void SetVoice(short sVoiceType, short sVoiceID);
442442
void SetVoice(const char* szVoiceType, const char* szVoice);
443+
void SetLanding(bool bIsLanding) { GetPedInterface()->pedFlags.bIsLanding = bIsLanding; }
443444

444445
CWeaponStat* GetCurrentWeaponStat();
445446
float GetCurrentWeaponRange();

Client/mods/deathmatch/logic/CClientPed.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,6 +1930,9 @@ void CClientPed::SetFrozen(bool bFrozen)
19301930
{
19311931
if (m_pTaskManager)
19321932
{
1933+
// Fix #366: Can only run forward bug
1934+
m_pPlayerPed->SetLanding(false);
1935+
19331936
// Let them have a jetpack (#9522)
19341937
if (!HasJetPack())
19351938
m_pTaskManager->RemoveTask(TASK_PRIORITY_PRIMARY);

Client/sdk/game/CPed.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ class CPed : public virtual CPhysical
262262
virtual void GetVoice(const char** pszVoiceType, const char** pszVoice) = 0;
263263
virtual void SetVoice(short sVoiceType, short sVoiceID) = 0;
264264
virtual void SetVoice(const char* szVoiceType, const char* szVoice) = 0;
265+
virtual void SetLanding(bool bIsLanding) = 0;
265266

266267
virtual CWeaponStat* GetCurrentWeaponStat() = 0;
267268
virtual float GetCurrentWeaponRange() = 0;

0 commit comments

Comments
 (0)