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_HideoutDeployableSpawnPointComponent.c
Go to the documentation of this file.
1
[
EntityEditorProps
(
category
:
"GameScripted/DeployableItems"
, description:
"Deployable spawn point that ignores gamemode budget type override, keeping the prefab-configured budget type (e.g. SUPPLIES)"
)]
2
class
SCR_HideoutDeployableSpawnPointComponentClass
: SCR_RestrictedDeployableSpawnPointComponentClass
3
{
4
}
5
6
//------------------------------------------------------------------------------------------------
10
class
SCR_HideoutDeployableSpawnPointComponent :
SCR_RestrictedDeployableSpawnPointComponent
11
{
12
//------------------------------------------------------------------------------------------------
13
override
void
EOnInit
(
IEntity
owner)
14
{
15
// Save the prefab-configured budget type before super overwrites it
16
SCR_ESpawnPointBudgetType
prefabBudgetType = m_eRespawnBudgetType;
17
int
prefabMaxRespawns = m_iMaxRespawns;
18
19
super.EOnInit(owner);
20
21
// Restore the prefab values that were overwritten by the gamemode
22
m_eRespawnBudgetType = prefabBudgetType;
23
m_iMaxRespawns = prefabMaxRespawns;
24
Replication
.BumpMe();
25
26
// Unsubscribe from gamemode budget/ticket changes so they don't override us later
27
BaseGameMode gameMode =
GetGame
().GetGameMode();
28
if
(!gameMode)
29
return
;
30
31
SCR_PlayerSpawnPointManagerComponent
playerSpawnPointManager =
SCR_PlayerSpawnPointManagerComponent
.Cast(gameMode.FindComponent(
SCR_PlayerSpawnPointManagerComponent
));
32
if
(playerSpawnPointManager)
33
{
34
playerSpawnPointManager.
GetOnSpawnPointBudgetTypeChanged
().Remove(OnSpawnPointBudgetTypeChanged);
35
playerSpawnPointManager.
GetOnSpawnPointTicketAmountChanged
().Remove(OnSpawnPointTicketAmountChanged);
36
}
37
}
38
39
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
SCR_ESpawnPointBudgetType
SCR_ESpawnPointBudgetType
Definition
SCR_RestrictedDeployableSpawnPointComponent.c:2
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
IEntity
Definition
IEntity.c:13
Replication
Main replication API.
Definition
Replication.c:14
SCR_HideoutDeployableSpawnPointComponentClass
Definition
SCR_HideoutDeployableSpawnPointComponent.c:3
SCR_PlayerSpawnPointManagerComponent
Definition
SCR_PlayerSpawnPointManagerComponent.c:11
SCR_PlayerSpawnPointManagerComponent::GetOnSpawnPointTicketAmountChanged
ScriptInvokerInt GetOnSpawnPointTicketAmountChanged()
Definition
SCR_PlayerSpawnPointManagerComponent.c:308
SCR_PlayerSpawnPointManagerComponent::GetOnSpawnPointBudgetTypeChanged
SCR_SpawnPointBudgetInvoker GetOnSpawnPointBudgetTypeChanged()
Definition
SCR_PlayerSpawnPointManagerComponent.c:265
SCR_RestrictedDeployableSpawnPointComponent
Deployable spawn point with configurable conditions.
Definition
SCR_RestrictedDeployableSpawnPointComponent.c:16
SCR_RestrictedDeployableSpawnPointComponent::EOnInit
override void EOnInit(IEntity owner)
Definition
SCR_RestrictedDeployableSpawnPointComponent.c:941
scripts
Game
DeployableInventoryItems
Components
SCR_HideoutDeployableSpawnPointComponent.c
Generated by
1.17.0