summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authormajestic <majesticcoding@gmail.com>2020-10-21 01:04:51 +0200
committermajestic <majesticcoding@gmail.com>2020-10-23 16:51:24 +0200
commit6a89fe401aa43c03fc27fc53e1c5bb720acd574f (patch)
tree99e102c36f816605e123bfcec024fd12c98e3c93 /src/weapons
parentFluff done (diff)
parent/c/Users/misha/Documents/GitHub/re3/src/render/Fluff.cpp /c/Users/misha/Documents/GitHub/re3/src/render/Fluff.h (diff)
downloadre3-6a89fe401aa43c03fc27fc53e1c5bb720acd574f.tar
re3-6a89fe401aa43c03fc27fc53e1c5bb720acd574f.tar.gz
re3-6a89fe401aa43c03fc27fc53e1c5bb720acd574f.tar.bz2
re3-6a89fe401aa43c03fc27fc53e1c5bb720acd574f.tar.lz
re3-6a89fe401aa43c03fc27fc53e1c5bb720acd574f.tar.xz
re3-6a89fe401aa43c03fc27fc53e1c5bb720acd574f.tar.zst
re3-6a89fe401aa43c03fc27fc53e1c5bb720acd574f.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);