Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIStaticArtilleryVehicleUsageComponent.c
Go to the documentation of this file.
8
9class 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")]
16
17 [Attribute("", UIWidgets.ResourceNamePicker, params: "et", category: "Ammo Prefabs")]
19
20 [Attribute("", UIWidgets.ResourceNamePicker, params: "et", category: "Ammo Prefabs")]
22
23 //----------------------------------------------------------------------------------------
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
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}
ResourceName GetAmmoResourceName(SCR_EAIArtilleryAmmoType ammoType)
SCR_CharacterSoundComponentClass GetComponentData()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto external GenericEntity GetOwner()
Get owner entity.
SCR_FieldOfViewSettings Attribute