-
Notifications
You must be signed in to change notification settings - Fork 9
Ammo Trimming Sections
BDCarrillo edited this page Jul 14, 2023
·
12 revisions
You can delete sections that will not be needed/used. The only special consideration is DamageScales. If you don't need it, set NoGridOrArmorScaling = true and then delete away.
private AmmoDef Example_Ammo => new AmmoDef
{
AmmoMagazine = "Energy",
AmmoRound = "YourAmmoName",
BaseDamage = 100,
NoGridOrArmorScaling = true,
Trajectory = new TrajectoryDef
{
MaxLifeTime = 3600,
MaxTrajectory = 300,
DesiredSpeed = 300,
},
};
private AmmoDef Example_Ammo => new AmmoDef
{
AmmoMagazine = "Energy",
AmmoRound = "YourAmmoName",
BaseDamage = 100,
Trajectory = new TrajectoryDef
{
MaxLifeTime = 3600,
MaxTrajectory = 300,
DesiredSpeed = 300,
},
DamageScales = new DamageScaleDef
{
Grids = new GridSizeDef
{
Large = 0.5f,
Small = 1.5f,
},
Armor = new ArmorDef
{
Armor = -1f,
Light = -1f,
Heavy = -1f,
NonArmor = -1f,
},
},
};
private AmmoDef Example_Ammo => new AmmoDef
{
AmmoMagazine = "Energy",
AmmoRound = "YourAmmoName",
BaseDamage = 100,
HardPointUsable = true,
NoGridOrArmorScaling = true,
Trajectory = new TrajectoryDef
{
MaxLifeTime = 3600,
MaxTrajectory = 300,
DesiredSpeed = 300,
},
AmmoGraphics = new GraphicDef
{
VisualProbability = 1f,
Lines = new LineDef
{
Tracer = new TracerBaseDef
{
Enable = true,
Length = 10f,
Width = 0.1f,
Color = Color(red: 5, green: 2, blue: 1f, alpha: 1),
Textures = new[] {"ProjectileTrailLine",},
},
},
},
};
If you have suggestions or implementations, please raise them in the Discord! Thank you!
Please donate to DarkStar's Patreon!
WeaponCore Quick Links
Weapon Properties (Page in Progress)
Multi-Turret Creation (Page in Progress)
Weapon - Targeting & Hardpoint
Weapon - Critical Reactions/Warheads
Weapon - Minimal Configurations
Ammo - Electronic Warfare System (EWAR)
Ammo - Guidance System (Homing, Mines, Self-Guided)
Armor System (Page in Progress)