diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-06-07 11:46:15 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-06-07 11:46:15 +0200 |
commit | de4323f949accd42264b49e5352ee3522fd575c7 (patch) | |
tree | a6fe982655205cb2f7c585a85ba8c6015beb78d5 /src/weapons/Weapon.cpp | |
parent | New ped objectives (diff) | |
parent | making it close to original (diff) | |
download | re3-de4323f949accd42264b49e5352ee3522fd575c7.tar re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.gz re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.bz2 re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.lz re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.xz re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.zst re3-de4323f949accd42264b49e5352ee3522fd575c7.zip |
Diffstat (limited to 'src/weapons/Weapon.cpp')
-rw-r--r-- | src/weapons/Weapon.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp index acce142a..8aa3db39 100644 --- a/src/weapons/Weapon.cpp +++ b/src/weapons/Weapon.cpp @@ -387,7 +387,7 @@ CWeapon::Fire(CEntity *shooter, CVector *fireSource) } bool -CWeapon::FireFromCar(CVehicle *shooter, bool left) +CWeapon::FireFromCar(CVehicle *shooter, bool left, bool right) { ASSERT(shooter!=nil); @@ -397,7 +397,7 @@ CWeapon::FireFromCar(CVehicle *shooter, bool left) if ( m_nAmmoInClip <= 0 ) return false; - if ( FireInstantHitFromCar(shooter, left) ) + if ( FireInstantHitFromCar(shooter, left, right) ) { DMAudio.PlayOneShot(shooter->m_audioEntityId, SOUND_WEAPON_SHOT_FIRED, 0.0f); @@ -2021,8 +2021,9 @@ CWeapon::FireM16_1stPerson(CEntity *shooter) } bool -CWeapon::FireInstantHitFromCar(CVehicle *shooter, bool left) +CWeapon::FireInstantHitFromCar(CVehicle *shooter, bool left, bool right) { +// TODO(MIAMI): bikes CWeaponInfo *info = GetInfo(); CVehicleModelInfo *modelInfo = shooter->GetModelInfo(); |