diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-10-21 23:39:59 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-10-21 23:39:59 +0200 |
commit | d579ee1b64677a425f64a06629bb1a4dcee382ff (patch) | |
tree | 501b60f177b68fda115f568a1e8ee0c367cba484 /src/core/PlayerInfo.cpp | |
parent | Moved CCutsceneMgr::ms_cutsceneProcessing to private (diff) | |
download | re3-d579ee1b64677a425f64a06629bb1a4dcee382ff.tar re3-d579ee1b64677a425f64a06629bb1a4dcee382ff.tar.gz re3-d579ee1b64677a425f64a06629bb1a4dcee382ff.tar.bz2 re3-d579ee1b64677a425f64a06629bb1a4dcee382ff.tar.lz re3-d579ee1b64677a425f64a06629bb1a4dcee382ff.tar.xz re3-d579ee1b64677a425f64a06629bb1a4dcee382ff.tar.zst re3-d579ee1b64677a425f64a06629bb1a4dcee382ff.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); |