2 new opcodes

This commit is contained in:
eray orçunus
2020-08-16 17:10:59 +03:00
parent 9956b27767
commit 980dd1b5a1
7 changed files with 41 additions and 17 deletions

View File

@ -439,7 +439,7 @@ CPed::CPed(uint32 pedType) : m_pedIK(this)
bCrouchWhenScared = false;
bKnockedOffBike = false;
b158_8 = false;
b158_10 = false;
bCollectBusFare = false;
bBoughtIceCream = false;
b158_40 = false;
@ -12986,10 +12986,10 @@ CPed::PedSetInCarCB(CAnimBlendAssociation *animAssoc, void *arg)
ped->b157_40 = false;
ped->bRemoveFromWorld = true;
}
if (ped->b158_10) {
ped->b158_10 = false;
if (ped->bCollectBusFare) {
ped->bCollectBusFare = false;
if (FindPlayerPed())
FindPlayerPed()->m_nPadUpPressedInMilliseconds += 5;
FindPlayerPed()->m_nLastBusFareCollected += 5;
}
if (!ped->IsNotInWreckedVehicle() || ped->DyingOrDead())
@ -15176,7 +15176,7 @@ CPed::ProcessObjective(void)
b157_40 = true;
CPlayerPed *player = FindPlayerPed();
if (pBus->IsPassenger(player) || pBus->IsDriver(player)) {
b158_10 = true;
bCollectBusFare = true;
}
}
}

View File

@ -485,7 +485,7 @@ public:
uint32 bCrouchWhenScared : 1;
uint32 bKnockedOffBike : 1;
uint32 b158_8 : 1;
uint32 b158_10 : 1;
uint32 bCollectBusFare : 1;
uint32 bBoughtIceCream : 1;
uint32 b158_40 : 1;
//uint32 b158_80

View File

@ -83,7 +83,7 @@ CPlayerPed::CPlayerPed(void) : CPed(PEDTYPE_PLAYER1)
m_pMeleeList[i] = nil;
}
m_nCheckPlayersIndex = 0;
m_nPadUpPressedInMilliseconds = 0;
m_nLastBusFareCollected = 0;
idleAnimBlockIndex = CAnimManager::GetAnimationBlockIndex("playidles");
}

View File

@ -43,7 +43,7 @@ public:
float m_fGunSpinSpeed; // for minigun
float m_fGunSpinAngle;
unsigned int m_nPadDownPressedInMilliseconds;
unsigned int m_nPadUpPressedInMilliseconds;
unsigned int m_nLastBusFareCollected;
CPlayerPed();
~CPlayerPed();