Reorganize CPed functions into their original cpp files

This commit is contained in:
Sergeanur
2020-11-19 21:12:20 +02:00
parent a0a8bb8d92
commit 9e45feb4fa
15 changed files with 14349 additions and 14340 deletions

View File

@ -2287,6 +2287,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)
{