summaryrefslogtreecommitdiffstats
path: root/src/weapons/Weapon.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-19 20:12:20 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-19 20:12:20 +0100
commit9e45feb4fa0a841b1d059bcab8507fd80708d6e7 (patch)
tree4a26483c7755ef8dd41b4215efb62a27384fd5fd /src/weapons/Weapon.cpp
parentMerge pull request #822 from aap/master (diff)
downloadre3-9e45feb4fa0a841b1d059bcab8507fd80708d6e7.tar
re3-9e45feb4fa0a841b1d059bcab8507fd80708d6e7.tar.gz
re3-9e45feb4fa0a841b1d059bcab8507fd80708d6e7.tar.bz2
re3-9e45feb4fa0a841b1d059bcab8507fd80708d6e7.tar.lz
re3-9e45feb4fa0a841b1d059bcab8507fd80708d6e7.tar.xz
re3-9e45feb4fa0a841b1d059bcab8507fd80708d6e7.tar.zst
re3-9e45feb4fa0a841b1d059bcab8507fd80708d6e7.zip
Diffstat (limited to '')
-rw-r--r--src/weapons/Weapon.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index 9494c745..dc15485e 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -2288,6 +2288,16 @@ CWeapon::HasWeaponAmmoToBeUsed(void)
}
bool
+CPed::IsPedDoingDriveByShooting(void)
+{
+ if (FindPlayerPed() == this && GetWeapon()->m_eWeaponType == WEAPONTYPE_UZI) {
+ if (TheCamera.Cams[TheCamera.ActiveCam].LookingLeft || TheCamera.Cams[TheCamera.ActiveCam].LookingRight)
+ return true;
+ }
+ return false;
+}
+
+bool
CWeapon::ProcessLineOfSight(CVector const &point1, CVector const &point2, CColPoint &point, CEntity *&entity, eWeaponType type, CEntity *shooter, bool checkBuildings, bool checkVehicles, bool checkPeds, bool checkObjects, bool checkDummies, bool ignoreSeeThrough, bool ignoreSomeObjects)
{
return CWorld::ProcessLineOfSight(point1, point2, point, entity, checkBuildings, checkVehicles, checkPeds, checkObjects, checkDummies, ignoreSeeThrough, ignoreSomeObjects);