diff options
Diffstat (limited to '')
-rw-r--r-- | src/peds/PlayerPed.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp index 3bab2d31..d2bc494f 100644 --- a/src/peds/PlayerPed.cpp +++ b/src/peds/PlayerPed.cpp @@ -38,6 +38,24 @@ CPlayerPed::SetWantedLevelNoDrop(int32 level) m_pWanted->SetWantedLevelNoDrop(level); } +// I don't know actual purpose of parameter +void +CPlayerPed::AnnoyPlayerPed(bool itsPolice) +{ + int8 *temper = &m_pedStats->m_temper; + if (*temper >= 52) { + if (itsPolice) { + if (*temper < 55) { + (*temper)++; + } else { + (*temper) = 46; + } + } + } else { + (*temper)++; + } +} + class CPlayerPed_ : public CPlayerPed { @@ -48,4 +66,5 @@ public: STARTPATCHES InjectHook(0x4EFB30, &CPlayerPed_::dtor, PATCH_JUMP); InjectHook(0x4F28A0, &CPlayerPed::ClearWeaponTarget, PATCH_JUMP); + InjectHook(0x4F3700, &CPlayerPed::AnnoyPlayerPed, PATCH_JUMP); ENDPATCHES |