EvEmu
0.8.4
11 September 2021
|
#include "TurretFormulas.h"
Public Member Functions | |
TurretFormulas.cpp | |
formulas for turret tracking, to hit, and other specific things : Allan
| |
float | GetToHit (ShipItemRef shipRef, TurretModule *pMod, SystemEntity *pTarget) |
float | GetNPCToHit (NPC *pNPC, SystemEntity *pTarget) |
float | GetDroneToHit (DroneSE *pDrone, SystemEntity *pTarget) |
float | GetSentryToHit (Sentry *pSentry, SystemEntity *pTarget) |
Definition at line 17 of file TurretFormulas.h.
float TurretFormulas::GetDroneToHit | ( | DroneSE * | pDrone, |
SystemEntity * | pTarget | ||
) |
Definition at line 136 of file TurretFormulas.cpp.
References AttrEntityAttackRange, AttrFalloff, AttrOptimalSigRadius, AttrSignatureRadius, AttrTrackingSpeed, SystemEntity::DestinyMgr(), Ga::GaVec3::distance(), EvilNumber::get_float(), InventoryItem::GetAttribute(), DestinyManager::GetPosition(), SystemEntity::GetSelf(), SystemEntity::GetVelocity(), Ga::GaVec3::length(), MakeRandomFloat(), EvE::max(), and sConfig.
Referenced by DroneAIMgr::AttackTarget().
float TurretFormulas::GetNPCToHit | ( | NPC * | pNPC, |
SystemEntity * | pTarget | ||
) |
Definition at line 91 of file TurretFormulas.cpp.
References _log, AttrSignatureRadius, SystemEntity::DestinyMgr(), Ga::GaVec3::distance(), EvilNumber::get_float(), NPC::GetAIMgr(), InventoryItem::GetAttribute(), NPCAIMgr::GetFalloff(), NPCAIMgr::GetOptimalRange(), DestinyManager::GetPosition(), SystemEntity::GetSelf(), NPCAIMgr::GetSigRes(), NPCAIMgr::GetTrackingSpeed(), SystemEntity::GetVelocity(), Ga::GaVec3::length(), MakeRandomFloat(), EvE::max(), sConfig, and y().
Referenced by NPCAIMgr::AttackTarget(), and ConcordAI::AttackTarget().
float TurretFormulas::GetSentryToHit | ( | Sentry * | pSentry, |
SystemEntity * | pTarget | ||
) |
Definition at line 159 of file TurretFormulas.cpp.
References AttrEntityAttackRange, AttrFalloff, AttrOptimalSigRadius, AttrSignatureRadius, AttrTrackingSpeed, SystemEntity::DestinyMgr(), Ga::GaVec3::distance(), EvilNumber::get_float(), InventoryItem::GetAttribute(), DestinyManager::GetPosition(), SystemEntity::GetPosition(), SystemEntity::GetSelf(), SystemEntity::GetVelocity(), Ga::GaVec3::length(), MakeRandomFloat(), EvE::max(), and sConfig.
Referenced by SentryAI::AttackTarget().
float TurretFormulas::GetToHit | ( | ShipItemRef | shipRef, |
TurretModule * | pMod, | ||
SystemEntity * | pTarget | ||
) |
Definition at line 26 of file TurretFormulas.cpp.
References _log, AttrFalloff, AttrMaxRange, AttrOptimalSigRadius, AttrSignatureRadius, AttrTrackingSpeed, SystemEntity::DestinyMgr(), Ga::GaVec3::distance(), EvilNumber::get_float(), EvilNumber::get_uint32(), GenericModule::GetAttribute(), InventoryItem::GetAttribute(), ShipItem::GetPilot(), DestinyManager::GetPosition(), SystemEntity::GetSelf(), Client::GetShipSE(), SystemEntity::GetVelocity(), Ga::GaVec3::length(), MakeRandomFloat(), EvE::max(), InventoryItem::position(), sConfig, and y().
Referenced by TurretModule::ApplyDamage().