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_CampaignSourceBaseComponent.c
Go to the documentation of this file.
1
class
SCR_CampaignSourceBaseComponentClass
:
SCR_CampaignMilitaryBaseComponentClass
2
{
3
}
4
5
class
SCR_CampaignSourceBaseComponent :
SCR_CampaignMilitaryBaseComponent
6
{
7
//------------------------------------------------------------------------------------------------
8
override
protected
void
HandleSpawnPointFaction
()
9
{
10
if
(!
m_SpawnPoint
)
11
return
;
12
13
SCR_GameModeCampaign
campaign =
SCR_GameModeCampaign
.GetInstance();
14
if
(!campaign)
15
return
;
16
17
super.HandleSpawnPointFaction();
18
SCR_CampaignFaction
spawnFaction =
SCR_CampaignFaction
.Cast(
m_FactionComponent
.GetAffiliatedFaction());
19
if
(spawnFaction && spawnFaction.
CanSpawnOnSourceBases
() && spawnFaction.IsPlayable())
20
{
21
m_SpawnPoint
.SetSpawnPointEnabled_S(
true
);
22
}
23
else
24
{
25
m_SpawnPoint
.
SetSpawnPointEnabled_S
(
false
);
26
m_SpawnPoint
.
SetFactionKey
(
FactionKey
.Empty);
27
}
28
}
29
30
//------------------------------------------------------------------------------------------------
31
override
protected
int
GetSuppliesIncomeAmount
()
32
{
33
SCR_GameModeCampaign
campaign =
SCR_GameModeCampaign
.GetInstance();
34
if
(!campaign)
35
return
0;
36
37
if
(
m_iRegularSuppliesIncomeBase
> -1)
38
return
m_iRegularSuppliesIncomeBase
;
39
40
return
campaign.GetRegularSuppliesIncomeSource();
41
}
42
43
//------------------------------------------------------------------------------------------------
44
override
protected
int
GetSuppliesArrivalTimer
()
45
{
46
SCR_GameModeCampaign
campaign =
SCR_GameModeCampaign
.GetInstance();
47
if
(!campaign)
48
return
int
.MAX;
49
50
if
(m_iSuppliesArrivalInterval > -1)
51
return
m_iSuppliesArrivalInterval;
52
53
return
campaign.GetSuppliesArrivalIntervalSource();
54
}
55
}
FactionKey
string FactionKey
Faction unique identifier type.
Definition
FactionKey.c:2
m_FactionComponent
FactionAffiliationComponent m_FactionComponent
Definition
SCR_AIUtilityComponent.c:10
m_iRegularSuppliesIncomeBase
int m_iRegularSuppliesIncomeBase
Definition
SCR_CampaignMilitaryBaseComponent.c:31
m_SpawnPoint
SCR_SpawnPoint m_SpawnPoint
Definition
SCR_CampaignMobileAssemblyComponent.c:23
SCR_GameModeCampaign
void SCR_GameModeCampaign(IEntitySource src, IEntity parent)
Definition
SCR_GameModeCampaign.c:1812
SCR_CampaignFaction
Definition
SCR_CampaignFaction.c:2
SCR_CampaignFaction::CanSpawnOnSourceBases
bool CanSpawnOnSourceBases()
Definition
SCR_CampaignFaction.c:251
SCR_CampaignMilitaryBaseComponentClass
Definition
SCR_CampaignMilitaryBaseComponent.c:2
SCR_CampaignMilitaryBaseComponent
Definition
SCR_CampaignMilitaryBaseComponent.c:38
SCR_CampaignMilitaryBaseComponent::HandleSpawnPointFaction
void HandleSpawnPointFaction()
Changes the faction which can spawn on spawn point groups owned by this base.
Definition
SCR_CampaignMilitaryBaseComponent.c:1378
SCR_CampaignMilitaryBaseComponent::GetSuppliesIncomeAmount
int GetSuppliesIncomeAmount()
Definition
SCR_CampaignMilitaryBaseComponent.c:795
SCR_CampaignMilitaryBaseComponent::GetSuppliesArrivalTimer
int GetSuppliesArrivalTimer()
Definition
SCR_CampaignMilitaryBaseComponent.c:820
SCR_CampaignSourceBaseComponentClass
Definition
SCR_CampaignSourceBaseComponent.c:2
SCR_SpawnPoint::SetFactionKey
void SetFactionKey(string factionKey)
Definition
SCR_SpawnPoint.c:469
SCR_SpawnPoint::SetSpawnPointEnabled_S
void SetSpawnPointEnabled_S(bool enabled)
Definition
SCR_SpawnPoint.c:117
scripts
Game
Components
Locations
SCR_CampaignSourceBaseComponent.c
Generated by
1.17.0