IWeaponFiringLocator

C++
struct IWeaponFiringLocator {
};
File

IWeapon.h

IWeaponFiringLocator::~IWeaponFiringLocator Destructor
C++
IWeaponFiringLocator::GetActualWeaponDir Method
C++
virtual bool GetActualWeaponDir(EntityId weaponId, const IFireMode* pFireMode, Vec3& dir, const Vec3& probableHit, const Vec3& firingPos) = 0;
Description

this is acutal weapon direction

IWeaponFiringLocator::GetFiringDir Method
C++
virtual bool GetFiringDir(EntityId weaponId, const IFireMode* pFireMode, Vec3& dir, const Vec3& probableHit, const Vec3& firingPos) = 0;
Description

this is target pos - firing pos

IWeaponFiringLocator::GetFiringPos Method
C++
virtual bool GetFiringPos(EntityId weaponId, const IFireMode* pFireMode, Vec3& pos) = 0;
Description

position of the projectile

IWeaponFiringLocator::GetFiringVelocity Method
C++
virtual bool GetFiringVelocity(EntityId weaponId, const IFireMode* pFireMode, Vec3& vel, const Vec3& firingDir) = 0;
Description

velocity to add up to the projectile (usually host velocity)

IWeaponFiringLocator::GetProbableHit Method
C++
virtual bool GetProbableHit(EntityId weaponId, const IFireMode* pFireMode, Vec3& hit) = 0;
Description

probable hit position

IWeaponFiringLocator::WeaponReleased Method
C++
virtual void WeaponReleased() = 0;
Description

called when weapon is deleted