summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-11-25 03:25:10 +0100
committereray orçunus <erayorcunus@gmail.com>2019-11-26 00:35:05 +0100
commit680fe0f7e6d4a94d5ee7f95dd6a5926012196e19 (patch)
treeba9e97db70363916e72b630c6fd5b9c927336476 /src/core
parentMerge pull request #272 from erorcun/erorcun (diff)
downloadre3-680fe0f7e6d4a94d5ee7f95dd6a5926012196e19.tar
re3-680fe0f7e6d4a94d5ee7f95dd6a5926012196e19.tar.gz
re3-680fe0f7e6d4a94d5ee7f95dd6a5926012196e19.tar.bz2
re3-680fe0f7e6d4a94d5ee7f95dd6a5926012196e19.tar.lz
re3-680fe0f7e6d4a94d5ee7f95dd6a5926012196e19.tar.xz
re3-680fe0f7e6d4a94d5ee7f95dd6a5926012196e19.tar.zst
re3-680fe0f7e6d4a94d5ee7f95dd6a5926012196e19.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/PlayerInfo.h8
-rw-r--r--src/core/config.h2
-rw-r--r--src/core/re3.cpp3
3 files changed, 8 insertions, 5 deletions
diff --git a/src/core/PlayerInfo.h b/src/core/PlayerInfo.h
index ef21fb52..12c71766 100644
--- a/src/core/PlayerInfo.h
+++ b/src/core/PlayerInfo.h
@@ -27,13 +27,13 @@ public:
int32 m_nCollectedPackages;
int32 m_nTotalPackages;
uint32 m_nLastBumpPlayerCarTimer;
- int32 m_nSwitchTaxiTime;
+ uint32 m_nSwitchTaxiTime;
bool m_bSwitchTaxi;
int8 field_197;
int8 field_198;
int8 field_199;
- int32 m_nNextSexFrequencyUpdateTime;
- int32 m_nNextSexMoneyUpdateTime;
+ uint32 m_nNextSexFrequencyUpdateTime;
+ uint32 m_nNextSexMoneyUpdateTime;
int32 m_nSexFrequency;
CCivilianPed *m_pHooker;
int8 m_WBState; // eWastedBustedState
@@ -55,7 +55,7 @@ public:
int8 field_254;
int8 field_255;
float m_fRoadDensity;
- int32 m_nPreviousTimeRewardedForExplosion;
+ uint32 m_nPreviousTimeRewardedForExplosion;
int32 m_nExplosionsSinceLastReward;
int32 field_268;
int32 field_272;
diff --git a/src/core/config.h b/src/core/config.h
index 175a5f61..166c2a68 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -87,6 +87,7 @@ enum Config {
NUM_FIRES = 40,
NUMPEDROUTES = 200,
+ NUMPHONES = 50,
NUMVISIBLEENTITIES = 2000,
NUMINVISIBLEENTITIES = 150,
@@ -145,6 +146,7 @@ enum Config {
#endif
#define FIX_BUGS // fixes bugs that we've came across during reversing, TODO: use this more
+#define TOGGLEABLE_BETA_FEATURES // toggleable from debug menu. doesn't have too many things
// Pad
#define KANGAROO_CHEAT
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index ab099726..d3b8200d 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -349,10 +349,11 @@ DebugMenuPopulate(void)
DebugMenuAddVarBool8("Debug", "Don't render Objects", (int8*)&gbDontRenderObjects, nil);
DebugMenuAddCmd("Debug", "Make peds follow you in formation", LetThemFollowYou);
-#ifndef MASTER
+#ifdef TOGGLEABLE_BETA_FEATURES
DebugMenuAddVarBool8("Debug", "Toggle unused fight feature", (int8*)&CPed::bUnusedFightThingOnPlayer, nil);
DebugMenuAddVarBool8("Debug", "Toggle banned particles", (int8*)&CParticle::bEnableBannedParticles, nil);
DebugMenuAddVarBool8("Debug", "Toggle popping heads on headshot", (int8*)&CPed::bPopHeadsOnHeadshot, nil);
+ DebugMenuAddVarBool8("Debug", "Toggle peds running to phones to report crimes", (int8*)&CPed::bMakePedsRunToPhonesToReportCrimes, nil);
#endif
DebugMenuAddCmd("Debug", "Start Credits", CCredits::Start);