Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_CollimatorControllerComponent.c
Go to the documentation of this file.
1
[
ComponentEditorProps
(
category
:
"Weapon/Sights"
, description:
""
)]
2
class
SCR_CollimatorControllerComponentClass
:
ScriptComponentClass
3
{
4
};
5
6
class
SCR_CollimatorControllerComponent
:
ScriptComponent
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
};
scale
vector scale
Definition
BlenderEndpoints.c:50
ComponentEditorProps
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
Definition
SCR_AIGroupUtilityComponent.c:12
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
IEntity
Definition
IEntity.c:13
SCR_CollimatorControllerComponentClass
Definition
SCR_CollimatorControllerComponent.c:3
SCR_CollimatorControllerComponent
Definition
SCR_CollimatorControllerComponent.c:7
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
vector
Definition
vector.c:13
OnPostInit
@ OnPostInit
Definition
SndComponentCallbacks.c:15
scripts
Game
Weapon
Sights
SCR_CollimatorControllerComponent.c
Generated by
1.17.0