Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PostGameGameModeStateComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/GameMode/Components", description: "Game Mode component responsible for adding a 'post-game' period to the game mode.")]
3 {
4 }
5 
7 class SCR_PostGameGameModeStateComponent : SCR_BaseGameModeStateComponent
8 {
9  [Attribute("1", uiwidget: UIWidgets.CheckBox, "Disables player controls in this state if checked.", category: "Game Mode")]
10  protected bool m_bDisableControls;
11 
12  //------------------------------------------------------------------------------------------------
14  override bool GetAllowControls()
15  {
17  return false;
18 
19  return true;
20  }
21 
22  //------------------------------------------------------------------------------------------------
25  {
26  return SCR_EGameModeState.POSTGAME;
27  }
28 }
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
m_bDisableControls
protected bool m_bDisableControls
Definition: SCR_PreGameGameModeStateComponent.c:13
SCR_BaseGameModeStateComponentClass
Definition: SCR_BaseGameModeStateComponent.c:2
GetAllowControls
override bool GetAllowControls()
Definition: SCR_PostGameGameModeStateComponent.c:14
SCR_EGameModeState
SCR_EGameModeState
Definition: SCR_EGameModeState.c:4
Attribute
SCR_PostGameGameModeStateComponentClass SCR_BaseGameModeStateComponentClass Attribute("1", uiwidget:UIWidgets.CheckBox, "Disables player controls in this state if checked.", category:"Game Mode")] protected bool m_bDisableControls
Game mode component that handles the post-game period.
SCR_PostGameGameModeStateComponentClass
Definition: SCR_PostGameGameModeStateComponent.c:2
GetAffiliatedState
sealed override SCR_EGameModeState GetAffiliatedState()
Called on the authority when created to assign state this component belongs to.
Definition: SCR_PostGameGameModeStateComponent.c:24
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180