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_AIStaticArtilleryVehicleUsageComponent.c
Go to the documentation of this file.
1
enum
SCR_EAIArtilleryAmmoType
2
{
3
HIGH_EXPLOSIVE
,
4
SMOKE
,
5
ILLUMINATION
,
6
PRACTICE
7
}
8
9
class
SCR_AIStaticArtilleryVehicleUsageComponentClass : SCR_AIVehicleUsageComponentClass
10
{
11
[
Attribute
(
""
, UIWidgets.ResourceNamePicker,
desc
:
"These prefabs are used by AI to find ammo of specific type."
,
params
:
"et"
,
category
:
"Ammo Prefabs"
)]
12
protected
ResourceName m_sAmmoHighExplosive;
13
14
[
Attribute
(
""
, UIWidgets.ResourceNamePicker,
params
:
"et"
,
category
:
"Ammo Prefabs"
)]
15
protected
ResourceName
m_sAmmoSmoke
;
16
17
[
Attribute
(
""
,
UIWidgets
.ResourceNamePicker,
params
:
"et"
,
category
:
"Ammo Prefabs"
)]
18
protected
ResourceName
m_sAmmoIllumination
;
19
20
[
Attribute
(
""
,
UIWidgets
.ResourceNamePicker,
params
:
"et"
,
category
:
"Ammo Prefabs"
)]
21
protected
ResourceName
m_sAmmoPractice
;
22
23
//----------------------------------------------------------------------------------------
24
ResourceName
GetAmmoResourceName
(
SCR_EAIArtilleryAmmoType
ammoType)
25
{
26
switch
(ammoType)
27
{
28
case
SCR_EAIArtilleryAmmoType
.HIGH_EXPLOSIVE:
return
m_sAmmoHighExplosive;
29
case
SCR_EAIArtilleryAmmoType
.SMOKE:
return
m_sAmmoSmoke
;
30
case
SCR_EAIArtilleryAmmoType
.ILLUMINATION:
return
m_sAmmoIllumination
;
31
case
SCR_EAIArtilleryAmmoType
.PRACTICE:
return
m_sAmmoPractice
;
32
}
33
return
string
.Empty;
34
}
35
}
36
37
class
SCR_AIStaticArtilleryVehicleUsageComponent
:
SCR_AIVehicleUsageComponent
38
{
39
//----------------------------------------------------------------------------------------
40
ResourceName
GetAmmoResourceName(
SCR_EAIArtilleryAmmoType
ammoType)
41
{
42
SCR_AIStaticArtilleryVehicleUsageComponentClass componentData = SCR_AIStaticArtilleryVehicleUsageComponentClass.Cast(
GetComponentData
(
GetOwner
()));
43
if
(!componentData)
44
return
string
.Empty;
45
return
componentData.GetAmmoResourceName(ammoType);
46
}
47
}
GetAmmoResourceName
ResourceName GetAmmoResourceName(SCR_EAIArtilleryAmmoType ammoType)
Definition
SCR_AIStaticArtilleryVehicleUsageComponent.c:24
PRACTICE
PRACTICE
Definition
SCR_AIStaticArtilleryVehicleUsageComponent.c:4
m_sAmmoIllumination
ResourceName m_sAmmoIllumination
Definition
SCR_AIStaticArtilleryVehicleUsageComponent.c:18
HIGH_EXPLOSIVE
HIGH_EXPLOSIVE
Definition
SCR_AIStaticArtilleryVehicleUsageComponent.c:0
SMOKE
SMOKE
Definition
SCR_AIStaticArtilleryVehicleUsageComponent.c:1
m_sAmmoPractice
ResourceName m_sAmmoPractice
Definition
SCR_AIStaticArtilleryVehicleUsageComponent.c:21
m_sAmmoSmoke
ResourceName m_sAmmoSmoke
Definition
SCR_AIStaticArtilleryVehicleUsageComponent.c:15
ILLUMINATION
ILLUMINATION
Definition
SCR_AIStaticArtilleryVehicleUsageComponent.c:2
SCR_EAIArtilleryAmmoType
SCR_EAIArtilleryAmmoType
Definition
SCR_AIStaticArtilleryVehicleUsageComponent.c:2
GetComponentData
SCR_CharacterSoundComponentClass GetComponentData()
Definition
SCR_CharacterSoundComponent.c:132
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
ResourceName
Definition
ResourceName.c:13
SCR_AIStaticArtilleryVehicleUsageComponent
Definition
SCR_AIStaticArtilleryVehicleUsageComponent.c:38
SCR_AIVehicleUsageComponent
Definition
SCR_AIVehicleUsageComponent.c:30
ScriptComponent::GetOwner
proto external GenericEntity GetOwner()
Get owner entity.
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
AI
Components
SCR_AIStaticArtilleryVehicleUsageComponent.c
Generated by
1.17.0