summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-24 21:26:56 +0200
committerRoman Masanin <36927roma@gmail.com>2020-10-24 21:26:56 +0200
commita12789c632897c2f1339f806158e84c565bd8580 (patch)
treef7eb31c812c3c194eeee0c8defe440e675eae567 /src/weapons
parentmark reflections done (diff)
parentModel indices edits (diff)
downloadre3-a12789c632897c2f1339f806158e84c565bd8580.tar
re3-a12789c632897c2f1339f806158e84c565bd8580.tar.gz
re3-a12789c632897c2f1339f806158e84c565bd8580.tar.bz2
re3-a12789c632897c2f1339f806158e84c565bd8580.tar.lz
re3-a12789c632897c2f1339f806158e84c565bd8580.tar.xz
re3-a12789c632897c2f1339f806158e84c565bd8580.tar.zst
re3-a12789c632897c2f1339f806158e84c565bd8580.zip
Diffstat (limited to 'src/weapons')
-rw-r--r--src/weapons/Weapon.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index 5d9686b5..1d32487b 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -933,26 +933,25 @@ CWeapon::FireInstantHit(CEntity *shooter, CVector *fireSource)
}
else if ( shooter == FindPlayerPed() && TheCamera.Cams[0].Using3rdPersonMouseCam() )
{
- CVector src, trgt;
- TheCamera.Find3rdPersonCamTargetVector(info->m_fRange, *fireSource, src, trgt);
+ TheCamera.Find3rdPersonCamTargetVector(info->m_fRange, *fireSource, source, target);
CWorld::bIncludeBikers = true;
CWorld::bIncludeDeadPeds = true;
CWorld::bIncludeCarTyres = true;
- CWorld::ProcessLineOfSight(src, trgt, point, victim, true, true, true, true, true, false, false, true);
+ CWorld::ProcessLineOfSight(source, target, point, victim, true, true, true, true, true, false, false, true);
CWorld::bIncludeBikers = false;
CWorld::bIncludeDeadPeds = false;
CWorld::bIncludeCarTyres = false;
if (victim)
- CheckForShootingVehicleOccupant(&victim, &point, m_eWeaponType, src, trgt);
+ CheckForShootingVehicleOccupant(&victim, &point, m_eWeaponType, source, target);
int32 rotSpeed = 1;
if ( m_eWeaponType == WEAPONTYPE_M4 )
rotSpeed = 4;
CVector bulletPos;
- if ( CHeli::TestBulletCollision(&src, &trgt, &bulletPos, 4) )
+ if ( CHeli::TestBulletCollision(&source, &target, &bulletPos, 4) )
{
for ( int32 i = 0; i < 16; i++ )
CParticle::AddParticle(PARTICLE_SPARK, bulletPos, CVector(0.0f, 0.0f, 0.0f), nil, 0.0f, rotSpeed);