mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-29 12:34:14 +01:00
Fix throwable weapons
Signed-off-by: eray orçunus <erayorcunus@gmail.com>
This commit is contained in:
parent
4a3138f384
commit
817f8b0e3f
@ -678,13 +678,14 @@ CPed::Attack(void)
|
|||||||
|
|
||||||
if (!weaponAnimAssoc) {
|
if (!weaponAnimAssoc) {
|
||||||
if (ourWeapon->m_bThrow) {
|
if (ourWeapon->m_bThrow) {
|
||||||
weaponAnimAssoc = RpAnimBlendClumpGetAssociation((RpClump*)m_rwObject, ANIM_WEAPON_THROWU);
|
weaponAnimAssoc = RpAnimBlendClumpGetAssociation((RpClump*) m_rwObject, ANIM_WEAPON_THROWU);
|
||||||
delayBetweenAnimAndFire = 0.2f;
|
delayBetweenAnimAndFire = 0.2f;
|
||||||
} else {
|
} else {
|
||||||
weaponAnimAssoc = RpAnimBlendClumpGetAssociation((RpClump*) m_rwObject, ourWeapon->m_Anim2ToPlay);
|
weaponAnimAssoc = RpAnimBlendClumpGetAssociation((RpClump*) m_rwObject, ourWeapon->m_Anim2ToPlay);
|
||||||
delayBetweenAnimAndFire = ourWeapon->m_fAnim2FrameFire;
|
delayBetweenAnimAndFire = ourWeapon->m_fAnim2FrameFire;
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
if (weaponAnimAssoc) {
|
||||||
animStart = ourWeapon->m_fAnimLoopStart;
|
animStart = ourWeapon->m_fAnimLoopStart;
|
||||||
weaponAnimTime = weaponAnimAssoc->currentTime;
|
weaponAnimTime = weaponAnimAssoc->currentTime;
|
||||||
if (weaponAnimTime > animStart && weaponAnimTime - weaponAnimAssoc->timeStep <= animStart) {
|
if (weaponAnimTime > animStart && weaponAnimTime - weaponAnimAssoc->timeStep <= animStart) {
|
||||||
|
Loading…
Reference in New Issue
Block a user