Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CollimatorControllerComponent.c
Go to the documentation of this file.
1[ComponentEditorProps(category: "Weapon/Sights", description: "")]
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 float m_fAlphaMul;
17
18
19 void UpdateUVCoordinates(float u, float v, float uScale, float vScale)
20 {
21 m_fUCoord = u;
22 m_fVCoord = v;
23 m_fUScale = uScale;
24 m_fVScale = vScale;
25 }
26
27 void SetReticleBrightness(float br)
28 {
29 m_fEmissiveLV = br;
30 }
31
32 void SetReticleColors(vector color, vector emissiveColor)
33 {
34 m_vColor = color;
35 m_vEmissive = emissiveColor;
36 }
37
38 void SetReticleIndex(int i)
39 {
40 m_ReticleMap = i;
41 }
42
43 void SetReticleBrightnessScale(float scale)
44 {
45 m_fAlphaMul = scale;
46 }
47
48 //------------------------------------------------------------------------------------------------
49 override void OnPostInit(IEntity owner)
50 {
51 UpdateUVCoordinates(0.0, 0.0, 1.0, 1.0);
52 SetReticleBrightness(9);
53 SetReticleColors("0.318 0.561 0.071 1", "0.013 1 0.04 0");
54 SetReticleIndex(0);
55 SetReticleBrightnessScale(1.0);
56 }
57};
vector scale
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")