Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_BallisticData Class Reference
Inheritance diagram for SCR_BallisticData:
ScriptAndConfig

Protected Member Functions

int GetNumberOfEntries ()
int GetValues (int id, out array< float > values)
void SetValues (int id, notnull array< float > newValues)
array< floatGetBallisticValuesForClosestRange (int range, out int id=-1)
array< floatGetBallisticValuesForClosestAngle (float angle, out int id=-1, float epsilon=0.1, float epsilonStep=2, float maxEpsilon=1000)
array< floatGetBallisticValuesForRange (int range, out int id=-1)
ResourceName GetProjectileName ()
int GetRangeStep ()
float GetProjectileInitSpeedCoef ()
bool IsForDirectFireMode ()
void SCR_BallisticData (notnull array< ref array< float > > ballisticValues, string projectilePrefab, bool directFireMode, int rangeStep, float speedCoef)

Static Protected Member Functions

static void SubscribeToGameEndEvent ()
static void ReleaseData ()
 Clears static data to ensure that it doesnt persist over multiple sessions, and thus doesnt grow unexpectedly.

Protected Attributes

ref array< ref array< float > > m_aBallisticValues
ResourceName m_sProjectilePrefabName
bool m_bDirectFireMode
int m_iRangeStep
float m_fProjectileInitSpeedCoef
ref map< int, intm_mDistances

Detailed Description

Definition at line 1 of file SCR_BallisticData.c.

Constructor & Destructor Documentation

◆ SCR_BallisticData()

void SCR_BallisticData::SCR_BallisticData ( notnull array< ref array< float > > ballisticValues,
string projectilePrefab,
bool directFireMode,
int rangeStep,
float speedCoef )
inlineprotected
Parameters
[in]ballisticValues
[in]projectilePrefab
[in]directFireMode
[in]rangeStep

Definition at line 154 of file SCR_BallisticData.c.

Member Function Documentation

◆ GetBallisticValuesForClosestAngle()

array< float > SCR_BallisticData::GetBallisticValuesForClosestAngle ( float angle,
out int id = -1,
float epsilon = 0.1,
float epsilonStep = 2,
float maxEpsilon = 1000 )
inlineprotected
Parameters
[in]anglesearched angle
[out]idposition in m_aBallisticValues which contains returned value (-1 no value found)
[in]epsilonthis value will be increased by epsilonStep with each recursive exectution to widen the range
[in]epsilonStep
[in]maxEpsilonif epsilon reaches this value then search will be stop and null will be returned
Returns

Definition at line 89 of file SCR_BallisticData.c.

◆ GetBallisticValuesForClosestRange()

array< float > SCR_BallisticData::GetBallisticValuesForClosestRange ( int range,
out int id = -1 )
inlineprotected

Finds values for first closest range

Parameters
[in]rangesearched range
[out]idposition in m_aBallisticValues which contains returned value (-1 no value found)
Returns

Definition at line 63 of file SCR_BallisticData.c.

◆ GetBallisticValuesForRange()

array< float > SCR_BallisticData::GetBallisticValuesForRange ( int range,
out int id = -1 )
inlineprotected
Parameters
[in]range
[out]id
Returns

Definition at line 115 of file SCR_BallisticData.c.

◆ GetNumberOfEntries()

int SCR_BallisticData::GetNumberOfEntries ( )
inlineprotected

Definition at line 24 of file SCR_BallisticData.c.

◆ GetProjectileInitSpeedCoef()

float SCR_BallisticData::GetProjectileInitSpeedCoef ( )
inlineprotected

Definition at line 137 of file SCR_BallisticData.c.

◆ GetProjectileName()

ResourceName SCR_BallisticData::GetProjectileName ( )
inlineprotected

Definition at line 125 of file SCR_BallisticData.c.

◆ GetRangeStep()

int SCR_BallisticData::GetRangeStep ( )
inlineprotected

Definition at line 131 of file SCR_BallisticData.c.

◆ GetValues()

int SCR_BallisticData::GetValues ( int id,
out array< float > values )
inlineprotected
Parameters
[in]id
[out]values
Returns
number of values in returned array

Definition at line 36 of file SCR_BallisticData.c.

◆ IsForDirectFireMode()

bool SCR_BallisticData::IsForDirectFireMode ( )
inlineprotected

Definition at line 143 of file SCR_BallisticData.c.

◆ ReleaseData()

void SCR_BallisticData::ReleaseData ( )
inlinestaticprotected

Clears static data to ensure that it doesnt persist over multiple sessions, and thus doesnt grow unexpectedly.

Definition at line 189 of file SCR_BallisticData.c.

◆ SetValues()

void SCR_BallisticData::SetValues ( int id,
notnull array< float > newValues )
inlineprotected

Method for changing the content of existing entry

Parameters
[in]id
[in]values

Definition at line 50 of file SCR_BallisticData.c.

◆ SubscribeToGameEndEvent()

void SCR_BallisticData::SubscribeToGameEndEvent ( )
inlinestaticprotected

Definition at line 174 of file SCR_BallisticData.c.

Member Data Documentation

◆ m_aBallisticValues

ref array<ref array<float> > SCR_BallisticData::m_aBallisticValues
protected

expected structure [0] range, [1] angle, [2] time of flight [3] drop per 100m of elevation change, [4] time of flight change per 100m of elevation change, [5] peak altitude [6] angle of impact [7] crosswind correction in mils [8] longitudinal wind correction in meters

Definition at line 16 of file SCR_BallisticData.c.

◆ m_bDirectFireMode

bool SCR_BallisticData::m_bDirectFireMode
protected

Definition at line 18 of file SCR_BallisticData.c.

◆ m_fProjectileInitSpeedCoef

float SCR_BallisticData::m_fProjectileInitSpeedCoef
protected

Definition at line 20 of file SCR_BallisticData.c.

◆ m_iRangeStep

int SCR_BallisticData::m_iRangeStep
protected

Definition at line 19 of file SCR_BallisticData.c.

◆ m_mDistances

ref map<int, int> SCR_BallisticData::m_mDistances
protected

Definition at line 21 of file SCR_BallisticData.c.

◆ m_sProjectilePrefabName

ResourceName SCR_BallisticData::m_sProjectilePrefabName
protected

Definition at line 17 of file SCR_BallisticData.c.


The documentation for this class was generated from the following file: