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_DeathGameOverManagerComponent.c
Go to the documentation of this file.
1
2
[
ComponentEditorProps
(
category
:
"GameScripted/GameMode"
, description:
""
)]
3
class
SCR_DeathGameOverManagerComponentClass
:
SCR_BaseGameModeComponentClass
4
{
5
}
6
7
class
SCR_DeathGameOverManagerComponent
:
SCR_BaseGameModeComponent
8
{
9
[
Attribute
(
"{F94857313E410E60}UI/layouts/HUD/GameOver/EndScreen/EndScreen_Death.layout"
,
params
:
"layout"
)]
10
protected
ResourceName
m_sDeathScreenGameOverOverwrite;
11
12
[
Attribute
(
"1"
,
desc
:
"If true will pause the game when the player dies and game over is called"
)]
13
protected
bool
m_bPauseGameOnDeath;
14
15
//------------------------------------------------------------------------------------------------
16
override
void
OnPlayerKilled
(notnull
SCR_InstigatorContextData
instigatorContextData)
17
{
18
if
(
DiagMenu
.GetBool(
SCR_DebugMenuID
.DEBUGUI_SINGLEPLAYER_DISABLE_GAMEOVER))
19
return
;
20
21
if
(!
GetGameMode
().
IsMaster
())
22
return
;
23
24
if
(
SCR_PlayerController
.
GetLocalPlayerId
() != instigatorContextData.GetVictimPlayerID())
25
return
;
26
27
if
(m_bPauseGameOnDeath)
28
{
29
ChimeraWorld
world =
GetGame
().GetWorld();
30
if
(world)
31
world.PauseGameTime(
true
);
32
}
33
34
SCR_GameOverScreenManagerComponent gameOverManager = SCR_GameOverScreenManagerComponent.Cast(
GetGameMode
().FindComponent(SCR_GameOverScreenManagerComponent));
35
if
(gameOverManager)
36
gameOverManager.SetGameOverScreenOverWrite(m_sDeathScreenGameOverOverwrite);
37
38
GetGameMode
().
EndGameMode
(SCR_GameModeEndData.CreateSimple(
EGameOverTypes
.DEATH_SCREEN_DEFAULT));
39
}
40
41
//------------------------------------------------------------------------------------------------
42
void
SCR_DeathGameOverManagerComponent
(
IEntityComponentSource
src,
IEntity
ent,
IEntity
parent)
43
{
44
DiagMenu
.RegisterMenu(
SCR_DebugMenuID
.DEBUGUI_SINGLEPLAYER,
"Singleplayer"
,
""
);
45
DiagMenu
.RegisterBool(
SCR_DebugMenuID
.DEBUGUI_SINGLEPLAYER_DISABLE_GAMEOVER,
""
,
"Disable Game Over"
,
"Singleplayer"
);
46
}
47
}
SCR_DebugMenuID
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition
DebugMenuID.c:4
EGameOverTypes
EGameOverTypes
Definition
EGameOverTypes.c:2
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
ComponentEditorProps
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
Definition
SCR_AIGroupUtilityComponent.c:12
GetGameMode
SCR_BaseGameMode GetGameMode()
Definition
SCR_BaseGameModeComponent.c:15
SCR_BaseGameModeComponent
void SCR_BaseGameModeComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_BaseGameModeComponent.c:171
OnPlayerKilled
void OnPlayerKilled(notnull SCR_InstigatorContextData instigatorContextData)
Definition
SCR_CampaignFeedbackComponent.c:1014
SCR_DeathGameOverManagerComponent
void SCR_DeathGameOverManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_DeathGameOverManagerComponent.c:42
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
ChimeraWorld
Definition
ChimeraWorld.c:13
DiagMenu
Diagnostic and developer menu system.
Definition
DiagMenu.c:18
IEntityComponentSource
Definition
IEntityComponentSource.c:13
IEntity
Definition
IEntity.c:13
ResourceName
Definition
ResourceName.c:13
SCR_BaseGameModeComponentClass
Definition
SCR_BaseGameModeComponent.c:3
SCR_BaseGameMode::EndGameMode
void EndGameMode(SCR_GameModeEndData endData)
Definition
SCR_BaseGameMode.c:550
SCR_DeathGameOverManagerComponentClass
Death gameover logic created for single player missions.
Definition
SCR_DeathGameOverManagerComponent.c:4
SCR_InstigatorContextData
Definition
SCR_InstigatorContextData.c:2
SCR_PlayerController
Definition
SCR_PlayerController.c:31
SCR_PlayerController::GetLocalPlayerId
static int GetLocalPlayerId()
Returns either a valid ID of local player or 0.
Definition
SCR_PlayerController.c:481
IsMaster
bool IsMaster()
Definition
SCR_DataCollectorComponent.c:205
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
GameMode
Components
SCR_DeathGameOverManagerComponent.c
Generated by
1.17.0