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_GameGameModeStateComponent.c
Go to the documentation of this file.
1
[
ComponentEditorProps
(
category
:
"GameScripted/GameMode/Components"
, description:
"Game Mode component responsible for controlling the main game state."
)]
2
class
SCR_GameGameModeStateComponentClass
:
SCR_BaseGameModeStateComponentClass
3
{
4
}
5
6
class
SCR_GameGameModeStateComponent : SCR_BaseGameModeStateComponent
7
{
8
[
Attribute
(
"0"
, uiwidget:
UIWidgets
.Slider,
"Time limit of game mode in seconds."
,
params
:
"0 864000 1"
,
category
:
"Game Mode"
)]
9
protected
float
m_fDuration;
10
11
//------------------------------------------------------------------------------------------------
13
override
float
GetDuration
()
14
{
15
return
m_fDuration;
16
}
17
18
//------------------------------------------------------------------------------------------------
21
override
bool
CanAdvanceState
(
SCR_EGameModeState
nextState)
22
{
23
if
(m_fDuration > 0.0 &&
m_pGameMode
.GetElapsedTime() >= m_fDuration)
24
return
true
;
25
26
return
false
;
27
}
28
29
//------------------------------------------------------------------------------------------------
32
override
bool
GetAllowControls
()
33
{
34
return
true
;
35
}
36
37
//------------------------------------------------------------------------------------------------
39
sealed
override
SCR_EGameModeState
GetAffiliatedState
()
40
{
41
return
SCR_EGameModeState
.GAME;
42
}
43
}
ComponentEditorProps
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
Definition
SCR_AIGroupUtilityComponent.c:12
m_pGameMode
SCR_BaseGameModeComponentClass m_pGameMode
The game mode entity this component is attached to.
CanAdvanceState
bool CanAdvanceState(SCR_EGameModeState nextState)
Definition
SCR_BaseGameModeStateComponent.c:26
GetAffiliatedState
SCR_EGameModeState GetAffiliatedState()
Called on the authority when created to assign state this component belongs to.
Definition
SCR_BaseGameModeStateComponent.c:48
GetDuration
float GetDuration()
Definition
SCR_BaseGameModeStateComponent.c:18
GetAllowControls
SCR_BaseGameModeStateComponentClass SCR_BaseGameModeComponentClass GetAllowControls()
Base component for handling game mode states.
Definition
SCR_BaseGameModeStateComponent.c:11
SCR_EGameModeState
SCR_EGameModeState
Definition
SCR_EGameModeState.c:5
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
SCR_BaseGameModeStateComponentClass
Definition
SCR_BaseGameModeStateComponent.c:3
SCR_GameGameModeStateComponentClass
Definition
SCR_GameGameModeStateComponent.c:3
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
GameMode
SCR_GameGameModeStateComponent.c
Generated by
1.17.0