mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-17 02:38:58 +00:00
23 lines
619 B
C++
23 lines
619 B
C++
#include "common.h"
|
|
#include "patcher.h"
|
|
#include "PlayerPed.h"
|
|
#include "PlayerInfo.h"
|
|
#include "Frontend.h"
|
|
#include "Vehicle.h"
|
|
|
|
WRAPPER void CPlayerInfo::MakePlayerSafe(bool) { EAXJMP(0x4A1400); }
|
|
WRAPPER void CPlayerInfo::LoadPlayerSkin() { EAXJMP(0x4A1700); }
|
|
WRAPPER void CPlayerInfo::AwardMoneyForExplosion(CVehicle *vehicle) { EAXJMP(0x4A15F0); }
|
|
|
|
void CPlayerInfo::SetPlayerSkin(char *skin)
|
|
{
|
|
strncpy(m_aSkinName, skin, 32);
|
|
LoadPlayerSkin();
|
|
}
|
|
|
|
CVector& CPlayerInfo::GetPos()
|
|
{
|
|
if (m_pPed->bInVehicle && m_pPed->m_pMyVehicle)
|
|
return m_pPed->m_pMyVehicle->GetPosition();
|
|
return m_pPed->GetPosition();
|
|
}
|