-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFireSupport.cs
More file actions
78 lines (68 loc) · 2.94 KB
/
FireSupport.cs
File metadata and controls
78 lines (68 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GHPC.Effects;
using GHPC.Weaponry.Artillery;
using GHPC.Weapons.Artillery;
namespace CustomMissionUtility
{
public class FireSupport
{
public static AmmoCodexScriptable HE_152mm;
public static AmmoCodexScriptable HE_155mm;
public static BatteryMunitionsChoice HE_152mm_battery_munition;
public static BatteryMunitionsChoice HE_155mm_battery_munition;
public static ArtilleryBattery HE_152mm_battery;
public static ArtilleryBattery HE_155mm_battery;
internal static void Init() {
if (HE_152mm != null) return;
AmmoType _152mm_he = new AmmoType();
_152mm_he.RhaPenetration = 40f;
_152mm_he.Caliber = 152f;
_152mm_he.Category = AmmoType.AmmoCategory.Explosive;
_152mm_he.CertainRicochetAngle = 15f;
_152mm_he._radius = 0.076f;
_152mm_he.Coeff = 0.152f;
_152mm_he.DetonateSpallCount = 200;
_152mm_he.ImpactAudio = GHPC.Audio.ImpactAudioType.ArtilleryGun;
_152mm_he.ImpactEffectDescriptor = new ParticleEffectsManager.ImpactEffectDescriptor() {
HasImpactEffect = true,
ImpactCategory = ParticleEffectsManager.Category.HighExplosive,
EffectSize = ParticleEffectsManager.EffectSize.Artillery,
RicochetType = ParticleEffectsManager.RicochetType.LargeTracer,
Flags = ParticleEffectsManager.ImpactModifierFlags.Large,
MinFilterStrictness = ParticleEffectsManager.FilterStrictness.Low,
};
_152mm_he.Mass = 20f;
_152mm_he.MaximumRange = 6000f;
_152mm_he.MaxSpallRha = 35f;
_152mm_he.MinSpallRha = 15f;
_152mm_he.MuzzleVelocity = 1000f;
_152mm_he.Name = "152mm HE shell";
_152mm_he.SectionalArea = 0.0014f;
_152mm_he.TntEquivalentKg = 20f;
_152mm_he.UseTracer = true;
_152mm_he.VisualType = GHPC.Weapons.LiveRoundMarshaller.LiveRoundVisualType.Shell;
AmmoType _155mm_he = new AmmoType();
Util.ShallowCopy(_155mm_he, _152mm_he);
_155mm_he.Name = "155mm HE shell";
HE_152mm = new AmmoCodexScriptable();
HE_152mm.AmmoType = _152mm_he;
HE_152mm.name = "CMU 152mm he";
HE_155mm = new AmmoCodexScriptable();
HE_155mm.AmmoType = _155mm_he;
HE_155mm.name = "CMU 155mm he";
HE_152mm_battery_munition = new BatteryMunitionsChoice() {
Ammo = HE_152mm,
Type = IndirectFireMunitionType.AntiPersonnel,
};
HE_155mm_battery_munition = new BatteryMunitionsChoice()
{
Ammo = HE_155mm,
Type = IndirectFireMunitionType.AntiPersonnel,
};
}
}
}