2019-06-13 02:35:26 +02:00
|
|
|
#include "common.h"
|
|
|
|
#include "Stats.h"
|
|
|
|
|
2019-06-17 00:16:38 +02:00
|
|
|
int32 &CStats::DaysPassed = *(int32*)0x8F2BB8;
|
2019-08-17 21:03:57 +02:00
|
|
|
int32 &CStats::HeadsPopped = *(int32*)0x8F647C;
|
2019-07-07 09:21:44 +02:00
|
|
|
bool& CStats::CommercialPassed = *(bool*)0x8F4334;
|
2019-07-10 11:36:47 +02:00
|
|
|
bool& CStats::IndustrialPassed = *(bool*)0x8E2A68;
|
2020-01-03 17:48:13 +01:00
|
|
|
bool& CStats::SuburbanPassed = *(bool*)0x8F2740;
|
2019-07-04 22:31:21 +02:00
|
|
|
int32 &CStats::NumberKillFrenziesPassed = *(int32*)0x8E287C;
|
|
|
|
int32 &CStats::PeopleKilledByOthers = *(int32*)0x8E2C50;
|
2019-08-04 00:31:00 +02:00
|
|
|
int32 &CStats::HelisDestroyed = *(int32*)0x8E2A64;
|
|
|
|
int32 *CStats::PedsKilledOfThisType = (int32*)0x880DBC;
|
2019-10-07 23:29:30 +02:00
|
|
|
int32 &CStats::TimesDied = *(int32*)0x8E2BDC;
|
|
|
|
int32 &CStats::TimesArrested = *(int32*)0x8E2BEC;
|
|
|
|
int32 &CStats::KillsSinceLastCheckpoint = *(int32*)0x8F2C8C;
|
2019-12-10 00:02:02 +01:00
|
|
|
int32& CStats::DistanceTravelledInVehicle = *(int32*)0x940574;
|
|
|
|
int32& CStats::DistanceTravelledOnFoot = *(int32*)0x941518;
|
2020-01-01 00:35:54 +01:00
|
|
|
int32 &CStats::ProgressMade = *(int32*)0x8F6224;
|
|
|
|
int32 &CStats::TotalProgressInGame = *(int32*)0x885B2C;
|
2020-01-07 15:37:20 +01:00
|
|
|
int32& CStats::CarsExploded = *(int32*)0x941288;
|
|
|
|
int32& CStats::PeopleKilledByPlayer = *(int32*)0x8F1B7C;
|
2020-01-01 00:35:54 +01:00
|
|
|
float &CStats::MaximumJumpDistance = *(float*)0x8F2BDC;
|
|
|
|
float &CStats::MaximumJumpHeight = *(float*)0x940564;
|
|
|
|
int32 &CStats::MaximumJumpFlips = *(int32*)0x8F2524;
|
|
|
|
int32 &CStats::MaximumJumpSpins = *(int32*)0x8F29B0;
|
|
|
|
int32 &CStats::BestStuntJump = *(int32*)0x885B50;
|
|
|
|
int32 &CStats::NumberOfUniqueJumpsFound = *(int32*)0x885B74;
|
|
|
|
int32 &CStats::TotalNumberOfUniqueJumps = *(int32*)0x8E2DC0;
|
|
|
|
int32 &CStats::PassengersDroppedOffWithTaxi = *(int32*)0x940724;
|
|
|
|
int32 &CStats::MoneyMadeWithTaxi = *(int32*)0x941544;
|
|
|
|
int32 &CStats::MissionsGiven = *(int32*)0x9430E8;
|
|
|
|
int32 &CStats::MissionsPassed = *(int32*)0x940768;
|
|
|
|
char(&CStats::LastMissionPassedName)[8] = *(char(*)[8])*(uintptr*)0x70D828;
|
|
|
|
int32 &CStats::TotalLegitimateKills = *(int32*)0x8F6004;
|
2020-02-15 12:53:42 +01:00
|
|
|
int32 &CStats::ElBurroTime = *(int32*)0x8E2A6C;
|
2019-07-04 22:31:21 +02:00
|
|
|
|
|
|
|
void CStats::AnotherKillFrenzyPassed()
|
|
|
|
{
|
|
|
|
++NumberKillFrenziesPassed;
|
2019-08-04 00:31:00 +02:00
|
|
|
}
|
2020-02-15 12:53:42 +01:00
|
|
|
|
|
|
|
void CStats::RegisterElBurroTime(int32 time)
|
|
|
|
{
|
|
|
|
ElBurroTime = (ElBurroTime && ElBurroTime < time) ? ElBurroTime : time;
|
|
|
|
}
|