mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-17 12:54:08 +00:00
Running script part 3
This commit is contained in:
parent
60364f11da
commit
5acce16261
19 changed files with 758 additions and 21 deletions
|
@ -1,7 +1,9 @@
|
|||
#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); }
|
||||
|
@ -12,3 +14,10 @@ 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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue