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_MapCompassUIDeploy.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_MapCompassUIDeploy
:
SCR_MapCompassUI
3
{
4
//------------------------------------------------------------------------------------------------
5
protected
ResourceName
GetGadgetForFaction
()
6
{
7
SCR_PlayerFactionAffiliationComponent
factionAffil =
SCR_PlayerFactionAffiliationComponent
.Cast(
8
GetGame
().
GetPlayerController
().FindComponent(
SCR_PlayerFactionAffiliationComponent
));
9
10
ResourceName
gadgetRes =
"{61D4F80E49BF9B12}Prefabs/Items/Equipment/Compass/Compass_SY183.et"
;
11
12
if
(!factionAffil || !factionAffil.GetAffiliatedFaction())
13
return
gadgetRes;
14
15
if
(factionAffil.GetAffiliatedFaction().GetFactionKey() ==
"USSR"
)
16
gadgetRes =
"{7CEF68E2BC68CE71}Prefabs/Items/Equipment/Compass/Compass_Adrianov.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
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
m_MapEntity
SCR_MapEntity m_MapEntity
Definition
SCR_MapGadgetComponent.c:38
IEntity
Definition
IEntity.c:13
ResourceName
Definition
ResourceName.c:13
SCR_MapCompassUIDeploy
Definition
SCR_MapCompassUIDeploy.c:3
SCR_MapCompassUIDeploy::GetPrefabResource
override string GetPrefabResource()
Definition
SCR_MapCompassUIDeploy.c:22
SCR_MapCompassUIDeploy::GetGadgetForFaction
ResourceName GetGadgetForFaction()
Definition
SCR_MapCompassUIDeploy.c:5
SCR_MapCompassUIDeploy::FindRelatedGadget
override IEntity FindRelatedGadget()
Definition
SCR_MapCompassUIDeploy.c:28
SCR_MapCompassUI::SCR_MapCompassUI
void SCR_MapCompassUI()
Definition
SCR_MapCompassUI.c:150
SCR_PlayerFactionAffiliationComponent
Definition
SCR_PlayerFactionAffiliationComponent.c:21
GetPlayerController
proto external PlayerController GetPlayerController()
Definition
SCR_PlayerDeployMenuHandlerComponent.c:307
scripts
Game
Map
ComponentsUI
SCR_MapCompassUIDeploy.c
Generated by
1.17.0