1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-11-13 06:39:16 +00:00
re3/src/peds/PlayerPed.cpp

28 lines
555 B
C++
Raw Normal View History

2019-06-29 11:38:37 +00:00
#include "common.h"
#include "patcher.h"
#include "PlayerPed.h"
2019-07-04 20:31:21 +00:00
#include "Camera.h"
#include "WeaponEffects.h"
2019-06-29 11:38:37 +00:00
CPlayerPed::~CPlayerPed()
{
delete m_pWanted;
}
2019-06-29 15:07:57 +00:00
WRAPPER void CPlayerPed::ReApplyMoveAnims(void) { EAXJMP(0x4F07C0); }
2019-07-04 20:31:21 +00:00
void CPlayerPed::ClearWeaponTarget()
{
if (!m_nPedType) {
m_pPointGunAt = 0;
TheCamera.ClearPlayerWeaponMode();
CWeaponEffects::ClearCrosshair();
}
ClearPointGunAt();
}
STARTPATCHES
2019-07-04 20:31:21 +00:00
InjectHook(0x4EFB30, &CPlayerPed::dtor, PATCH_JUMP);
InjectHook(0x4F28A0, &CPlayerPed::ClearWeaponTarget, PATCH_JUMP);
ENDPATCHES