From 9b5392d3a13e00d880e895522c19ef1e453804b0 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 29 Jun 2019 14:38:37 +0300 Subject: ProcessPedUpdate --- src/entities/PlayerPed.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/entities/PlayerPed.cpp (limited to 'src/entities/PlayerPed.cpp') diff --git a/src/entities/PlayerPed.cpp b/src/entities/PlayerPed.cpp new file mode 100644 index 00000000..2136d3ad --- /dev/null +++ b/src/entities/PlayerPed.cpp @@ -0,0 +1,5 @@ +#include "common.h" +#include "patcher.h" +#include "PlayerPed.h" + +WRAPPER void CPlayerPed::ReApplyMoveAnims(void) { EAXJMP(0x4F07C0); } \ No newline at end of file -- cgit v1.2.3 From 14e0aae1bd3d4d4d2aa1f37d87a472e746e32557 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 29 Jun 2019 18:07:57 +0300 Subject: fix --- src/entities/PlayerPed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/entities/PlayerPed.cpp') diff --git a/src/entities/PlayerPed.cpp b/src/entities/PlayerPed.cpp index 2136d3ad..86312996 100644 --- a/src/entities/PlayerPed.cpp +++ b/src/entities/PlayerPed.cpp @@ -2,4 +2,4 @@ #include "patcher.h" #include "PlayerPed.h" -WRAPPER void CPlayerPed::ReApplyMoveAnims(void) { EAXJMP(0x4F07C0); } \ No newline at end of file +WRAPPER void CPlayerPed::ReApplyMoveAnims(void) { EAXJMP(0x4F07C0); } -- cgit v1.2.3 From e2bd3573b4d44b8f80197d8de98fcfc91e2229b8 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 30 Jun 2019 13:59:55 +0300 Subject: PlayBackThisFrameInterpolation and all it required... --- src/entities/PlayerPed.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/entities/PlayerPed.cpp') diff --git a/src/entities/PlayerPed.cpp b/src/entities/PlayerPed.cpp index 86312996..2d67d5b2 100644 --- a/src/entities/PlayerPed.cpp +++ b/src/entities/PlayerPed.cpp @@ -2,4 +2,13 @@ #include "patcher.h" #include "PlayerPed.h" +CPlayerPed::~CPlayerPed() +{ + delete m_pWanted; +} + WRAPPER void CPlayerPed::ReApplyMoveAnims(void) { EAXJMP(0x4F07C0); } + +STARTPATCHES + InjectHook(0x4EFB30, &CPlayerPed::dtor, PATCH_JUMP); +ENDPATCHES \ No newline at end of file -- cgit v1.2.3