Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CollimatorControllerComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "Weapon/Sights", description: "")]
2 class SCR_CollimatorControllerComponentClass : ScriptComponentClass
3 {
4 };
5 
7 {
8  float m_fUCoord;
9  float m_fVCoord;
10  float m_fUScale;
11  float m_fVScale;
12  float m_fEmissiveLV;
13  vector m_vEmissive;
14  vector m_vColor;
15  int m_ReticleMap;
16 
17 
18  void UpdateUVCoordinates(float u, float v, float uScale, float vScale)
19  {
20  m_fUCoord = u;
21  m_fVCoord = v;
22  m_fUScale = uScale;
23  m_fVScale = vScale;
24  }
25 
26  void SetReticleBrightness(float br)
27  {
28  m_fEmissiveLV = br;
29  }
30 
31  void SetReticleColors(vector color, vector emissiveColor)
32  {
33  m_vColor = color;
34  m_vEmissive = emissiveColor;
35  }
36 
37  void SetReticleIndex(int i)
38  {
39  m_ReticleMap = i;
40  }
41 
42  //------------------------------------------------------------------------------------------------
43  override void OnPostInit(IEntity owner)
44  {
45  UpdateUVCoordinates(0.0, 0.0, 1.0, 1.0);
46  SetReticleBrightness(9);
47  SetReticleColors("0.318 0.561 0.071 1", "0.013 1 0.04 0");
48  SetReticleIndex(0);
49  }
50 };
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
ScriptComponent
SCR_SiteSlotEntityClass ScriptComponent
SCR_CollimatorControllerComponent
Definition: SCR_CollimatorControllerComponent.c:6
SCR_CollimatorControllerComponentClass
Definition: SCR_CollimatorControllerComponent.c:2
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180