Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SCR_FiringRangeController Interface Reference
Inheritance diagram for SCR_FiringRangeController:
[legend]

Public Member Functions

override void EOnInit (IEntity owner)
 
void AnimateTargets (IEntity pOwnerEntity, int playerID)
 Animation proces of the target.
 
void ErectRandomTarget (array< SCR_FiringRangeTarget > targetArray)
 Erect randomly selected target.
 
void FoldTarget (SCR_FiringRangeTarget selectedTarget)
 Fold erected target back to default.
 
void BackToDefaultTarget ()
 Reset targets back to default behaviour, stop targets pops up loop.
 
void SetIndicator (IEntity indicator)
 
void BackToDefaultTargetsFromLineArea ()
 Reset targets back to default behaviour, called from controller area trigger.
 
void CollectAllDistances (IEntity owner)
 Make an array of all possible distances of targets under assigned firing range controller.
 
array< int > GetAllDistances ()
 Getter of all possible distances.
 
int GetFiringLineOwnerId ()
 Rerurns ID of player who owns the firing line.
 
bool IsLowestDistanceSet ()
 
bool IsHighestDistanceSet ()
 
int CalculateTargetDistance (bool increase)
 Getter of next upper distance.
 
void UpdateNumberOfTargets (bool increase)
 
void SetControllerCounter (EControlerSection indicator, int value)
 Set the selected distance on controller display.
 
float GetSignalValue (int num)
 Returns signal value for a given number.
 
void CountPopUpTargets ()
 Count how many targets was shot.
 
void ResetCountPopUpTargets ()
 Reset the counter.
 
void AddIndicator (vector localCoordOfHit, vector localVectorOfHit)
 register indicator (decal) into the array and draw the hit
 
IEntity GetIndicator ()
 Return indicator entity.
 
void RemoveIndicators ()
 Remove all declas from indicator.
 
int GetTargetDistance ()
 
int GetTargetsInRound ()
 
float GetMaxScoreInRound ()
 Count and set the max score in the round on a specific line.
 
void SetControllerLight (ControllerLightType light, bool mode)
 
void SetEmissivity (ParametricMaterialInstanceComponent light, bool on)
 
override bool RplSave (ScriptBitWriter writer)
 
override bool RplLoad (ScriptBitReader reader)
 
void SCR_FiringRangeController (IEntitySource src, IEntity parent)
 
void ~SCR_FiringRangeController ()
 

Static Public Attributes

const static int NO_TARGET_OWNER = -1
 
const static int RESET_COUNTER_TIME = 1500
 
const static int POWER_LIGHT_DELAY = 1000
 
const static int INDICATOR_MAX_VALUE = 9999
 
const static int DIGIT_ZERO = 0
 
const static int DIGIT_ONE = 315
 
const static int DIGIT_TWO = 280
 
const static int DIGIT_THREE = 245
 
const static int DIGIT_FOUR = 210
 
const static int DIGIT_FIVE = 175
 
const static int DIGIT_SIX = 140
 
const static int DIGIT_SEVEN = 105
 
const static int DIGIT_EIGHT = 70
 
const static int DIGIT_NINE = 35
 
const static string LIGHT_POWER = "light_001_power"
 
const static string LIGHT_SEQUENCE = "light_002_sequence"
 
const static string LIGHT_MALFUNCTION = "light_003_malfunction"
 
const static int LIGHT_EMISSIVITY_ON = 1
 
const static int LIGHT_EMISSIVITY_OFF = 0
 
const static bool LIGHT_ON = true
 
const static bool LIGHT_OFF = false
 
const static int ERROR_LIGHT_DURATION = 1000
 

Protected Member Functions

bool CheckMasterOnlyMethod (string methodName)
 
bool IsProxy ()
 Return if is proxy or not.
 

Protected Attributes

int m_iErectTargetTime
 For how long target stays in erected position.
 

Constructor & Destructor Documentation

◆ SCR_FiringRangeController()

void SCR_FiringRangeController.SCR_FiringRangeController ( IEntitySource  src,
IEntity  parent 
)

◆ ~SCR_FiringRangeController()

void SCR_FiringRangeController.~SCR_FiringRangeController ( )

Member Function Documentation

◆ AddIndicator()

void SCR_FiringRangeController.AddIndicator ( vector  localCoordOfHit,
vector  localVectorOfHit 
)

register indicator (decal) into the array and draw the hit

◆ AnimateTargets()

void SCR_FiringRangeController.AnimateTargets ( IEntity  pOwnerEntity,
int  playerID 
)

Animation proces of the target.

◆ BackToDefaultTarget()

void SCR_FiringRangeController.BackToDefaultTarget ( )

Reset targets back to default behaviour, stop targets pops up loop.

◆ BackToDefaultTargetsFromLineArea()

void SCR_FiringRangeController.BackToDefaultTargetsFromLineArea ( )

Reset targets back to default behaviour, called from controller area trigger.

◆ CalculateTargetDistance()

int SCR_FiringRangeController.CalculateTargetDistance ( bool  increase)

Getter of next upper distance.

◆ CheckMasterOnlyMethod()

bool SCR_FiringRangeController.CheckMasterOnlyMethod ( string  methodName)
protected

◆ CollectAllDistances()

void SCR_FiringRangeController.CollectAllDistances ( IEntity  owner)

Make an array of all possible distances of targets under assigned firing range controller.

◆ CountPopUpTargets()

void SCR_FiringRangeController.CountPopUpTargets ( )

Count how many targets was shot.

◆ EOnInit()

override void SCR_FiringRangeController.EOnInit ( IEntity  owner)

◆ ErectRandomTarget()

void SCR_FiringRangeController.ErectRandomTarget ( array< SCR_FiringRangeTarget targetArray)

Erect randomly selected target.

◆ FoldTarget()

void SCR_FiringRangeController.FoldTarget ( SCR_FiringRangeTarget  selectedTarget)

Fold erected target back to default.

◆ GetAllDistances()

array< int > SCR_FiringRangeController.GetAllDistances ( )

Getter of all possible distances.

◆ GetFiringLineOwnerId()

int SCR_FiringRangeController.GetFiringLineOwnerId ( )

Rerurns ID of player who owns the firing line.

◆ GetIndicator()

IEntity SCR_FiringRangeController.GetIndicator ( )

Return indicator entity.

◆ GetMaxScoreInRound()

float SCR_FiringRangeController.GetMaxScoreInRound ( )

Count and set the max score in the round on a specific line.

◆ GetSignalValue()

float SCR_FiringRangeController.GetSignalValue ( int  num)

Returns signal value for a given number.

◆ GetTargetDistance()

int SCR_FiringRangeController.GetTargetDistance ( )

◆ GetTargetsInRound()

int SCR_FiringRangeController.GetTargetsInRound ( )

◆ IsHighestDistanceSet()

bool SCR_FiringRangeController.IsHighestDistanceSet ( )

◆ IsLowestDistanceSet()

bool SCR_FiringRangeController.IsLowestDistanceSet ( )

◆ IsProxy()

bool SCR_FiringRangeController.IsProxy ( )
protected

Return if is proxy or not.

◆ RemoveIndicators()

void SCR_FiringRangeController.RemoveIndicators ( )

Remove all declas from indicator.

◆ ResetCountPopUpTargets()

void SCR_FiringRangeController.ResetCountPopUpTargets ( )

Reset the counter.

◆ RplLoad()

override bool SCR_FiringRangeController.RplLoad ( ScriptBitReader  reader)

◆ RplSave()

override bool SCR_FiringRangeController.RplSave ( ScriptBitWriter  writer)

◆ SetControllerCounter()

void SCR_FiringRangeController.SetControllerCounter ( EControlerSection  indicator,
int  value 
)

Set the selected distance on controller display.

◆ SetControllerLight()

void SCR_FiringRangeController.SetControllerLight ( ControllerLightType  light,
bool  mode 
)

◆ SetEmissivity()

void SCR_FiringRangeController.SetEmissivity ( ParametricMaterialInstanceComponent  light,
bool  on 
)

◆ SetIndicator()

void SCR_FiringRangeController.SetIndicator ( IEntity  indicator)

◆ UpdateNumberOfTargets()

void SCR_FiringRangeController.UpdateNumberOfTargets ( bool  increase)

Member Data Documentation

◆ DIGIT_EIGHT

const static int SCR_FiringRangeController.DIGIT_EIGHT = 70
static

◆ DIGIT_FIVE

const static int SCR_FiringRangeController.DIGIT_FIVE = 175
static

◆ DIGIT_FOUR

const static int SCR_FiringRangeController.DIGIT_FOUR = 210
static

◆ DIGIT_NINE

const static int SCR_FiringRangeController.DIGIT_NINE = 35
static

◆ DIGIT_ONE

const static int SCR_FiringRangeController.DIGIT_ONE = 315
static

◆ DIGIT_SEVEN

const static int SCR_FiringRangeController.DIGIT_SEVEN = 105
static

◆ DIGIT_SIX

const static int SCR_FiringRangeController.DIGIT_SIX = 140
static

◆ DIGIT_THREE

const static int SCR_FiringRangeController.DIGIT_THREE = 245
static

◆ DIGIT_TWO

const static int SCR_FiringRangeController.DIGIT_TWO = 280
static

◆ DIGIT_ZERO

const static int SCR_FiringRangeController.DIGIT_ZERO = 0
static

◆ ERROR_LIGHT_DURATION

const static int SCR_FiringRangeController.ERROR_LIGHT_DURATION = 1000
static

◆ INDICATOR_MAX_VALUE

const static int SCR_FiringRangeController.INDICATOR_MAX_VALUE = 9999
static

◆ LIGHT_EMISSIVITY_OFF

const static int SCR_FiringRangeController.LIGHT_EMISSIVITY_OFF = 0
static

◆ LIGHT_EMISSIVITY_ON

const static int SCR_FiringRangeController.LIGHT_EMISSIVITY_ON = 1
static

◆ LIGHT_MALFUNCTION

const static string SCR_FiringRangeController.LIGHT_MALFUNCTION = "light_003_malfunction"
static

◆ LIGHT_OFF

const static bool SCR_FiringRangeController.LIGHT_OFF = false
static

◆ LIGHT_ON

const static bool SCR_FiringRangeController.LIGHT_ON = true
static

◆ LIGHT_POWER

const static string SCR_FiringRangeController.LIGHT_POWER = "light_001_power"
static

◆ LIGHT_SEQUENCE

const static string SCR_FiringRangeController.LIGHT_SEQUENCE = "light_002_sequence"
static

◆ m_iErectTargetTime

int SCR_FiringRangeController.m_iErectTargetTime
protected

For how long target stays in erected position.

◆ NO_TARGET_OWNER

const static int SCR_FiringRangeController.NO_TARGET_OWNER = -1
static

◆ POWER_LIGHT_DELAY

const static int SCR_FiringRangeController.POWER_LIGHT_DELAY = 1000
static

◆ RESET_COUNTER_TIME

const static int SCR_FiringRangeController.RESET_COUNTER_TIME = 1500
static

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