mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-25 02:26:52 +01:00
28 lines
555 B
C++
28 lines
555 B
C++
#include "common.h"
|
|
#include "patcher.h"
|
|
#include "PlayerPed.h"
|
|
#include "Camera.h"
|
|
#include "WeaponEffects.h"
|
|
|
|
CPlayerPed::~CPlayerPed()
|
|
{
|
|
delete m_pWanted;
|
|
}
|
|
|
|
WRAPPER void CPlayerPed::ReApplyMoveAnims(void) { EAXJMP(0x4F07C0); }
|
|
|
|
void CPlayerPed::ClearWeaponTarget()
|
|
{
|
|
if (!m_nPedType) {
|
|
m_pPointGunAt = 0;
|
|
TheCamera.ClearPlayerWeaponMode();
|
|
CWeaponEffects::ClearCrosshair();
|
|
}
|
|
ClearPointGunAt();
|
|
}
|
|
|
|
STARTPATCHES
|
|
InjectHook(0x4EFB30, &CPlayerPed::dtor, PATCH_JUMP);
|
|
InjectHook(0x4F28A0, &CPlayerPed::ClearWeaponTarget, PATCH_JUMP);
|
|
|
|
ENDPATCHES |