mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 14:39:03 +00:00
Fix Tommy looking at one spot due to crouching + shooting
This commit is contained in:
parent
ed9c911a0e
commit
1aac4d802f
1 changed files with 10 additions and 0 deletions
|
@ -1221,11 +1221,21 @@ CPlayerPed::ProcessPlayerWeapon(CPad *padUsed)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (padUsed->DuckJustDown() && !bIsDucking && m_nMoveState != PEDMOVE_SPRINT) {
|
if (padUsed->DuckJustDown() && !bIsDucking && m_nMoveState != PEDMOVE_SPRINT) {
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
// fix tommy being locked into looking at the same spot if you duck just after starting to shoot
|
||||||
|
if(!m_pPointGunAt)
|
||||||
|
ClearPointGunAt();
|
||||||
|
#endif
|
||||||
bCrouchWhenShooting = true;
|
bCrouchWhenShooting = true;
|
||||||
SetDuck(60000, true);
|
SetDuck(60000, true);
|
||||||
} else if (bIsDucking && (padUsed->DuckJustDown() || m_nMoveState == PEDMOVE_SPRINT ||
|
} else if (bIsDucking && (padUsed->DuckJustDown() || m_nMoveState == PEDMOVE_SPRINT ||
|
||||||
padUsed->GetSprint() || padUsed->JumpJustDown() || padUsed->ExitVehicleJustDown())) {
|
padUsed->GetSprint() || padUsed->JumpJustDown() || padUsed->ExitVehicleJustDown())) {
|
||||||
|
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
// same fix as above except for standing up
|
||||||
|
if(!m_pPointGunAt)
|
||||||
|
ClearPointGunAt();
|
||||||
|
#endif
|
||||||
ClearDuck(true);
|
ClearDuck(true);
|
||||||
bCrouchWhenShooting = false;
|
bCrouchWhenShooting = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue