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_ResupplyOtherSupportStationAction.c
Go to the documentation of this file.
1
class
SCR_ResupplyOtherSupportStationAction
:
SCR_BaseResupplySupportStationAction
2
{
3
[
Attribute
(
"0"
,
desc
:
"If false both player and AI have this action. If true then the resupply action is only availible for player or possessed characters"
)]
4
protected
bool
m_bPlayerOnly
;
5
6
//------------------------------------------------------------------------------------------------
7
override
bool
CanBeShownScript
(
IEntity
user)
8
{
9
//~ Hide if not player or not possessed
10
if
(
m_bPlayerOnly
&& SCR_PossessingManagerComponent.GetPlayerIdFromControlledEntity(
GetOwner
()) <= 0)
11
return
false
;
12
13
if
(!SCR_ArsenalManagerComponent.IsArsenalTypeEnabled_Static(SCR_EArsenalTypes.GADGETS))
14
return
false
;
15
16
if
(!super.CanBeShownScript(user))
17
return
false
;
18
19
bool
canPerform = super.CanBePerformedScript(user);
20
if
(!canPerform &&
GetShowButDisabled
())
21
return
true
;
22
23
return
canPerform;
24
}
25
26
//------------------------------------------------------------------------------------------------
27
override
bool
CanBePerformedScript
(
IEntity
user)
28
{
29
return
!
GetShowButDisabled
();
30
}
31
32
//------------------------------------------------------------------------------------------------
33
protected
override
bool
RequiresGadget
()
34
{
35
return
true
;
36
}
37
38
//------------------------------------------------------------------------------------------------
39
protected
override
bool
PrioritizeHeldGadget
()
40
{
41
return
true
;
42
}
43
44
//------------------------------------------------------------------------------------------------
45
protected
override
void
DelayedInit
(
IEntity
owner)
46
{
47
if
(!owner)
48
return
;
49
50
super.DelayedInit(owner);
51
52
//~ Set target as owner inventory no need to ever change it
53
m_InventoryManagerTarget
= SCR_InventoryStorageManagerComponent.Cast(owner.
FindComponent
(SCR_InventoryStorageManagerComponent));
54
}
55
}
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_BaseResupplySupportStationAction
Definition
SCR_ResupplySupportStationAction.c:4
SCR_BaseResupplySupportStationAction::GetShowButDisabled
bool GetShowButDisabled()
Definition
SCR_ResupplySupportStationAction.c:60
SCR_BaseResupplySupportStationAction::m_InventoryManagerTarget
SCR_InventoryStorageManagerComponent m_InventoryManagerTarget
Definition
SCR_ResupplySupportStationAction.c:27
SCR_ResupplyOtherSupportStationAction
Definition
SCR_ResupplyOtherSupportStationAction.c:2
SCR_ResupplyOtherSupportStationAction::DelayedInit
override void DelayedInit(IEntity owner)
Definition
SCR_ResupplyOtherSupportStationAction.c:45
SCR_ResupplyOtherSupportStationAction::CanBePerformedScript
override bool CanBePerformedScript(IEntity user)
Definition
SCR_ResupplyOtherSupportStationAction.c:27
SCR_ResupplyOtherSupportStationAction::m_bPlayerOnly
bool m_bPlayerOnly
Definition
SCR_ResupplyOtherSupportStationAction.c:4
SCR_ResupplyOtherSupportStationAction::CanBeShownScript
override bool CanBeShownScript(IEntity user)
Definition
SCR_ResupplyOtherSupportStationAction.c:7
SCR_ResupplyOtherSupportStationAction::RequiresGadget
override bool RequiresGadget()
Definition
SCR_ResupplyOtherSupportStationAction.c:33
SCR_ResupplyOtherSupportStationAction::PrioritizeHeldGadget
override bool PrioritizeHeldGadget()
Definition
SCR_ResupplyOtherSupportStationAction.c:39
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition
SCR_FuelNode.c:128
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UserActions
SupportStations
SCR_ResupplyOtherSupportStationAction.c
Generated by
1.17.0