summaryrefslogtreecommitdiffstats
path: root/src/entities
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2019-06-13 02:35:26 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2019-06-13 02:35:26 +0200
commit75bca8e31eef877cc6df83146c665f86ad6f8583 (patch)
treeeed79ac6f6bdee9d914e283266bf4b7aee56c6a6 /src/entities
parentCameraCreate cosmetic fix (diff)
downloadre3-75bca8e31eef877cc6df83146c665f86ad6f8583.tar
re3-75bca8e31eef877cc6df83146c665f86ad6f8583.tar.gz
re3-75bca8e31eef877cc6df83146c665f86ad6f8583.tar.bz2
re3-75bca8e31eef877cc6df83146c665f86ad6f8583.tar.lz
re3-75bca8e31eef877cc6df83146c665f86ad6f8583.tar.xz
re3-75bca8e31eef877cc6df83146c665f86ad6f8583.tar.zst
re3-75bca8e31eef877cc6df83146c665f86ad6f8583.zip
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/Ped.cpp4
-rw-r--r--src/entities/Ped.h4
-rw-r--r--src/entities/Vehicle.cpp6
-rw-r--r--src/entities/Vehicle.h6
4 files changed, 20 insertions, 0 deletions
diff --git a/src/entities/Ped.cpp b/src/entities/Ped.cpp
index 018979eb..55e33a2d 100644
--- a/src/entities/Ped.cpp
+++ b/src/entities/Ped.cpp
@@ -3,6 +3,10 @@
#include "Ped.h"
#include "Pools.h"
+Bool &CPed::bNastyLimbsCheat = *(Bool*)0x95CD44;
+Bool &CPed::bPedCheat2 = *(Bool*)0x95CD5A;
+Bool &CPed::bPedCheat3 = *(Bool*)0x95CD59;
+
void *CPed::operator new(size_t sz) { return CPools::GetPedPool()->New(); }
void CPed::operator delete(void *p, size_t sz) { CPools::GetPedPool()->Delete((CPed*)p); }
diff --git a/src/entities/Ped.h b/src/entities/Ped.h
index 366674d4..adf24c88 100644
--- a/src/entities/Ped.h
+++ b/src/entities/Ped.h
@@ -188,6 +188,10 @@ public:
bool UseGroundColModel(void);
void KillPedWithCar(CVehicle *veh, float impulse);
CWeapon *GetWeapon(void) { return &m_weapons[m_currentWeapon]; }
+
+ static Bool &bNastyLimbsCheat;
+ static Bool &bPedCheat2;
+ static Bool &bPedCheat3;
};
static_assert(offsetof(CPed, m_nPedState) == 0x224, "CPed: error");
static_assert(offsetof(CPed, m_pCurSurface) == 0x2FC, "CPed: error");
diff --git a/src/entities/Vehicle.cpp b/src/entities/Vehicle.cpp
index f18cb5a7..ebd7ae68 100644
--- a/src/entities/Vehicle.cpp
+++ b/src/entities/Vehicle.cpp
@@ -3,5 +3,11 @@
#include "Vehicle.h"
#include "Pools.h"
+Bool &CVehicle::bWheelsOnlyCheat = *(Bool *)0x95CD78;
+Bool &CVehicle::bAllDodosCheat = *(Bool *)0x95CD75;
+Bool &CVehicle::bCheat3 = *(Bool *)0x95CD66;
+Bool &CVehicle::bCheat4 = *(Bool *)0x95CD65;
+Bool &CVehicle::bCheat5 = *(Bool *)0x95CD64;
+
void *CVehicle::operator new(size_t sz) { return CPools::GetVehiclePool()->New(); }
void CVehicle::operator delete(void *p, size_t sz) { CPools::GetVehiclePool()->Delete((CVehicle*)p); }
diff --git a/src/entities/Vehicle.h b/src/entities/Vehicle.h
index 46e1c57c..00126c31 100644
--- a/src/entities/Vehicle.h
+++ b/src/entities/Vehicle.h
@@ -62,6 +62,12 @@ uint8 m_extra2;
bool IsTrain(void) { return m_vehType == VEHICLE_TYPE_TRAIN; }
bool IsHeli(void) { return m_vehType == VEHICLE_TYPE_HELI; }
bool IsPlane(void) { return m_vehType == VEHICLE_TYPE_PLANE; }
+
+ static Bool &bWheelsOnlyCheat;
+ static Bool &bAllDodosCheat;
+ static Bool &bCheat3;
+ static Bool &bCheat4;
+ static Bool &bCheat5;
};
static_assert(sizeof(CVehicle) == 0x288, "CVehicle: error");
static_assert(offsetof(CVehicle, m_pCurSurface) == 0x1E0, "CVehicle: error");