mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 20:20:02 +00:00
fix auto duck cancel bug
This commit is contained in:
parent
ca4602d788
commit
26aed6611e
|
@ -5899,17 +5899,21 @@ CPed::Duck(void)
|
||||||
ClearDuck();
|
ClearDuck();
|
||||||
else if (bIsDucking && bCrouchWhenShooting) {
|
else if (bIsDucking && bCrouchWhenShooting) {
|
||||||
CWeaponInfo *weapon = CWeaponInfo::GetWeaponInfo(GetWeapon()->m_eWeaponType);
|
CWeaponInfo *weapon = CWeaponInfo::GetWeaponInfo(GetWeapon()->m_eWeaponType);
|
||||||
CAnimBlendAssociation *attackAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_WEAPON_CROUCH);
|
CAnimBlendAssociation *crouchAnim = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_WEAPON_CROUCH);
|
||||||
if (!attackAssoc) {
|
if (!crouchAnim) {
|
||||||
if(GetCrouchFireAnim(weapon))
|
if(GetCrouchFireAnim(weapon))
|
||||||
attackAssoc = RpAnimBlendClumpGetAssociation(GetClump(), GetCrouchFireAnim(weapon));
|
crouchAnim = RpAnimBlendClumpGetAssociation(GetClump(), GetCrouchFireAnim(weapon));
|
||||||
}
|
}
|
||||||
if (!attackAssoc) {
|
if (!crouchAnim) {
|
||||||
if(GetCrouchReloadAnim(weapon))
|
if(GetCrouchReloadAnim(weapon))
|
||||||
attackAssoc = RpAnimBlendClumpGetAssociation(GetClump(), GetCrouchReloadAnim(weapon));
|
crouchAnim = RpAnimBlendClumpGetAssociation(GetClump(), GetCrouchReloadAnim(weapon));
|
||||||
}
|
}
|
||||||
if (!attackAssoc) {
|
if (!crouchAnim) {
|
||||||
bIsDucking = false;
|
bIsDucking = false;
|
||||||
|
#if defined FIX_BUGS || defined FREE_CAM
|
||||||
|
if (IsPlayer())
|
||||||
|
bCrouchWhenShooting = false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue