Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Main Page
Modules
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Typedefs
c
f
l
m
o
p
r
s
t
Enumerations
a
b
c
d
e
f
g
i
k
l
m
p
r
s
u
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
SCR_MapWatchUIDeploy.c
Go to the documentation of this file.
1
// hack incoming! just for prototype to see what gadgets in deploy map will look like
2
class
SCR_MapWatchUIDeploy
:
SCR_MapWatchUI
3
{
4
//------------------------------------------------------------------------------------------------
5
protected
ResourceName GetGadgetForFaction()
6
{
7
SCR_PlayerFactionAffiliationComponent
factionAffil =
SCR_PlayerFactionAffiliationComponent
.Cast(
8
GetGame
().
GetPlayerController
().FindComponent(
SCR_PlayerFactionAffiliationComponent
));
9
10
ResourceName gadgetRes =
"{78ED4FEF62BBA728}Prefabs/Items/Equipment/Watches/Watch_SandY184A.et"
;
11
12
if
(!factionAffil || !factionAffil.GetAffiliatedFaction())
13
return
gadgetRes;
14
15
if
(factionAffil.GetAffiliatedFaction().GetFactionKey() ==
"USSR"
)
16
gadgetRes =
"{6FD6C96121905202}Prefabs/Items/Equipment/Watches/Watch_Vostok.et"
;
17
18
return
gadgetRes;
19
}
20
21
//------------------------------------------------------------------------------------------------
22
protected
override
string
GetPrefabResource()
23
{
24
return
GetGadgetForFaction();
25
}
26
27
//------------------------------------------------------------------------------------------------
28
override
IEntity FindRelatedGadget()
29
{
30
return
m_MapEntity
;
31
}
32
}
m_MapEntity
protected SCR_MapEntity m_MapEntity
Definition:
SCR_MapGadgetComponent.c:14
GetGame
ArmaReforgerScripted GetGame()
Definition:
game.c:1424
GetPlayerController
proto external PlayerController GetPlayerController()
Definition:
SCR_PlayerDeployMenuHandlerComponent.c:307
SCR_MapWatchUI
Definition:
SCR_MapWatchUI.c:1
SCR_PlayerFactionAffiliationComponent
Definition:
SCR_PlayerFactionAffiliationComponent.c:16
SCR_MapWatchUIDeploy
Definition:
SCR_MapWatchUIDeploy.c:2
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Map
ComponentsUI
SCR_MapWatchUIDeploy.c
Generated by
1.8.17