mirror of https://github.com/Nofated095/re-GTA.git
Fix controls
This commit is contained in:
parent
a3f1601fd1
commit
82ebd8aae1
|
@ -333,7 +333,11 @@ CAutomobile::ProcessControl(void)
|
||||||
bool playerRemote = false;
|
bool playerRemote = false;
|
||||||
switch(GetStatus()){
|
switch(GetStatus()){
|
||||||
case STATUS_PLAYER_REMOTE:
|
case STATUS_PLAYER_REMOTE:
|
||||||
if(CPad::GetPad(0)->WeaponJustDown()){
|
#ifdef FIX_BUGS
|
||||||
|
if (CPad::GetPad(0)->CarGunJustDown()) {
|
||||||
|
#else
|
||||||
|
if (CPad::GetPad(0)->WeaponJustDown()) {
|
||||||
|
#endif
|
||||||
BlowUpCar(FindPlayerPed());
|
BlowUpCar(FindPlayerPed());
|
||||||
CRemote::TakeRemoteControlledCarFromPlayer();
|
CRemote::TakeRemoteControlledCarFromPlayer();
|
||||||
}
|
}
|
||||||
|
@ -2372,7 +2376,11 @@ void
|
||||||
CAutomobile::FireTruckControl(void)
|
CAutomobile::FireTruckControl(void)
|
||||||
{
|
{
|
||||||
if(this == FindPlayerVehicle()){
|
if(this == FindPlayerVehicle()){
|
||||||
if(!CPad::GetPad(0)->GetWeapon())
|
#ifdef FIX_BUGS
|
||||||
|
if (!CPad::GetPad(0)->GetCarGunFired())
|
||||||
|
#else
|
||||||
|
if (!CPad::GetPad(0)->GetWeapon())
|
||||||
|
#endif // FIX_BUGS
|
||||||
return;
|
return;
|
||||||
#ifdef FREE_CAM
|
#ifdef FREE_CAM
|
||||||
if (!CCamera::bFreeCam)
|
if (!CCamera::bFreeCam)
|
||||||
|
@ -3054,7 +3062,7 @@ CAutomobile::DoDriveByShootings(void)
|
||||||
lookingLeft = true;
|
lookingLeft = true;
|
||||||
if(TheCamera.Cams[TheCamera.ActiveCam].LookingRight)
|
if(TheCamera.Cams[TheCamera.ActiveCam].LookingRight)
|
||||||
lookingRight = true;
|
lookingRight = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(lookingLeft || lookingRight){
|
if(lookingLeft || lookingRight){
|
||||||
if(lookingLeft){
|
if(lookingLeft){
|
||||||
|
|
Loading…
Reference in New Issue