diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-10-30 01:20:58 +0100 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-10-30 01:20:58 +0100 |
commit | 30c780c300e419b59bc7aad76cf6eda724676aa1 (patch) | |
tree | a729f1f20d75ef2ea765d33e7a1464a15ea24564 /src/core/PlayerInfo.cpp | |
parent | The Peds (diff) | |
parent | Merge pull request #255 from Nick007J/master (diff) | |
download | re3-30c780c300e419b59bc7aad76cf6eda724676aa1.tar re3-30c780c300e419b59bc7aad76cf6eda724676aa1.tar.gz re3-30c780c300e419b59bc7aad76cf6eda724676aa1.tar.bz2 re3-30c780c300e419b59bc7aad76cf6eda724676aa1.tar.lz re3-30c780c300e419b59bc7aad76cf6eda724676aa1.tar.xz re3-30c780c300e419b59bc7aad76cf6eda724676aa1.tar.zst re3-30c780c300e419b59bc7aad76cf6eda724676aa1.zip |
Diffstat (limited to 'src/core/PlayerInfo.cpp')
-rw-r--r-- | src/core/PlayerInfo.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp index be2c0687..f0b7d444 100644 --- a/src/core/PlayerInfo.cpp +++ b/src/core/PlayerInfo.cpp @@ -72,6 +72,22 @@ CPlayerInfo::ArrestPlayer() CStats::TimesArrested++;
} +bool +CPlayerInfo::IsPlayerInRemoteMode() +{ + return m_pRemoteVehicle || m_bInRemoteMode; +} + +void +CPlayerInfo::PlayerFailedCriticalMission() +{ + if (m_WBState != WBSTATE_PLAYING) + return; + m_WBState = WBSTATE_FAILED_CRITICAL_MISSION; + m_nWBTime = CTimer::GetTimeInMilliseconds(); + CDarkel::ResetOnPlayerDeath(); +} + STARTPATCHES InjectHook(0x4A1700, &CPlayerInfo::LoadPlayerSkin, PATCH_JUMP); InjectHook(0x4A1750, &CPlayerInfo::DeletePlayerSkin, PATCH_JUMP); |