summaryrefslogtreecommitdiffstats
path: root/src/peds/PlayerPed.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-09-13 21:04:55 +0200
committereray orçunus <erayorcunus@gmail.com>2019-09-14 01:24:53 +0200
commit88f0ef75e8596c752fe343c786294ffa6a8a7534 (patch)
treecacd806edb9ca44bda3a057a934b629cc7be1bc3 /src/peds/PlayerPed.cpp
parentfixed launch in space bug (diff)
downloadre3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar.gz
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar.bz2
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar.lz
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar.xz
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar.zst
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.zip
Diffstat (limited to '')
-rw-r--r--src/peds/PlayerPed.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index 5ae8c4be..ceee0bd2 100644
--- a/src/peds/PlayerPed.cpp
+++ b/src/peds/PlayerPed.cpp
@@ -94,6 +94,15 @@ CPlayerPed::AnnoyPlayerPed(bool annoyedByPassingEntity)
}
}
+void
+CPlayerPed::ClearAdrenaline(void)
+{
+ if (m_bAdrenalineActive && m_nAdrenalineTime != 0) {
+ m_nAdrenalineTime = 0;
+ CTimer::SetTimeStep(1.0f);
+ }
+}
+
class CPlayerPed_ : public CPlayerPed
{
public: