mirror of
https://github.com/halpz/re3.git
synced 2025-07-03 04:20:46 +00:00
more script commands
This commit is contained in:
@ -3770,7 +3770,8 @@ CPed::ClearAll(void)
|
||||
bIsPointingGunAt = false;
|
||||
bRenderPedInCar = true;
|
||||
bKnockedUpIntoAir = false;
|
||||
b158_4 = false;
|
||||
bCrouchWhenScared = false;
|
||||
bKnockedOffBike = false;
|
||||
m_pCollidingEntity = nil;
|
||||
}
|
||||
|
||||
@ -7054,7 +7055,7 @@ CPed::Fall(void)
|
||||
CAnimBlendAssociation *firstPartialAssoc;
|
||||
CAnimBlendAssociation *fallAssoc;
|
||||
|
||||
if (IsPlayer() && (bKnockedUpIntoAir || b158_4) && !bIsStanding) {
|
||||
if (IsPlayer() && (bKnockedUpIntoAir || bKnockedOffBike) && !bIsStanding) {
|
||||
firstPartialAssoc = RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_PARTIAL);
|
||||
|
||||
// What???
|
||||
@ -7082,7 +7083,7 @@ CPed::Fall(void)
|
||||
} else {
|
||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_FALL_BACK, 8.0f);
|
||||
}
|
||||
} else if ((bKnockedUpIntoAir || b158_4) && bIsStanding && !bWasStanding) {
|
||||
} else if ((bKnockedUpIntoAir || bKnockedOffBike) && bIsStanding && !bWasStanding) {
|
||||
fallAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_FALL_BACK);
|
||||
|
||||
if (!fallAssoc)
|
||||
@ -7090,7 +7091,7 @@ CPed::Fall(void)
|
||||
|
||||
if (fallAssoc) {
|
||||
bKnockedUpIntoAir = false;
|
||||
b158_4 = false;
|
||||
bKnockedOffBike = false;
|
||||
fallAssoc->speed = 3.0f;
|
||||
if (IsPlayer())
|
||||
Say(SOUND_PED_LAND);
|
||||
@ -7099,7 +7100,7 @@ CPed::Fall(void)
|
||||
firstPartialAssoc = RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_PARTIAL);
|
||||
if (firstPartialAssoc && !firstPartialAssoc->IsRunning()) {
|
||||
bKnockedUpIntoAir = false;
|
||||
b158_4 = false;
|
||||
bKnockedOffBike = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -473,8 +473,8 @@ public:
|
||||
uint32 bIgnoreThreatsBehindObjects : 1;
|
||||
|
||||
uint32 bNeverEverTargetThisPed : 1;
|
||||
//uint32 b158_2
|
||||
uint32 b158_4 : 1;
|
||||
uint32 bCrouchWhenScared : 1;
|
||||
uint32 bKnockedOffBike : 1;
|
||||
//uint32 b158_8
|
||||
//uint32 b158_10
|
||||
uint32 bBoughtIceCream : 1;
|
||||
|
Reference in New Issue
Block a user