Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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.")]
5
6class 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 //------------------------------------------------------------------------------------------------
40 {
41 return SCR_EGameModeState.GAME;
42 }
43}
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
SCR_BaseGameModeComponentClass m_pGameMode
The game mode entity this component is attached to.
bool CanAdvanceState(SCR_EGameModeState nextState)
SCR_EGameModeState GetAffiliatedState()
Called on the authority when created to assign state this component belongs to.
SCR_BaseGameModeStateComponentClass SCR_BaseGameModeComponentClass GetAllowControls()
Base component for handling game mode states.
SCR_EGameModeState
SCR_FieldOfViewSettings Attribute