Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_BallisticData Interface Reference
Inheritance diagram for SCR_BallisticData:

Public Member Functions

int GetNumberOfEntries ()
 
int GetValues (int id, out array< float > values)
 
void SetValues (int id, notnull array< float > newValues)
 Method for changing the content of existing entry.
 
array< float > GetBallisticValuesForClosestRange (int range, out int id=-1)
 Finds values for first closest range.
 
array< float > GetBallisticValuesForClosestAngle (float angle, out int id=-1, float epsilon=0.1, float epsilonStep=2, float maxEpsilon=1000)
 
array< float > GetBallisticValuesForRange (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 Public Attributes

static ref array< ref SCR_BallisticDatas_aBallistics
 

Protected Attributes

ref array< ref array< float > > m_aBallisticValues
 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,
 
ResourceName m_sProjectilePrefabName
 
bool m_bDirectFireMode
 
int m_iRangeStep
 
float m_fProjectileInitSpeedCoef
 
ref map< int, int > m_mDistances
 

Constructor & Destructor Documentation

◆ SCR_BallisticData()

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

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 )
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

◆ GetBallisticValuesForClosestRange()

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

Finds values for first closest range.

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

◆ GetBallisticValuesForRange()

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

◆ GetNumberOfEntries()

int SCR_BallisticData.GetNumberOfEntries ( )

◆ GetProjectileInitSpeedCoef()

float SCR_BallisticData.GetProjectileInitSpeedCoef ( )

◆ GetProjectileName()

ResourceName SCR_BallisticData.GetProjectileName ( )

◆ GetRangeStep()

int SCR_BallisticData.GetRangeStep ( )

◆ GetValues()

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

◆ IsForDirectFireMode()

bool SCR_BallisticData.IsForDirectFireMode ( )

◆ SetValues()

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

Method for changing the content of existing entry.

Parameters
[in]id
[in]values

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,

◆ m_bDirectFireMode

bool SCR_BallisticData.m_bDirectFireMode
protected

◆ m_fProjectileInitSpeedCoef

float SCR_BallisticData.m_fProjectileInitSpeedCoef
protected

◆ m_iRangeStep

int SCR_BallisticData.m_iRangeStep
protected

◆ m_mDistances

ref map<int, int> SCR_BallisticData.m_mDistances
protected

◆ m_sProjectilePrefabName

ResourceName SCR_BallisticData.m_sProjectilePrefabName
protected

◆ s_aBallistics

ref array<ref SCR_BallisticData> SCR_BallisticData.s_aBallistics
static

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