mirror of
https://github.com/halpz/re3.git
synced 2025-07-03 19:50:45 +00:00
2 new opcodes
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user