66 lines
1.4 KiB
Plaintext
66 lines
1.4 KiB
Plaintext
Subsystem: RailgunBattery
|
|
Name: #RAILBATTERY_NAME
|
|
Description: #RAILBATTERY_DESC
|
|
BaseColor: #c5f946
|
|
TypeColor: #c5f946
|
|
Picture: SubsystemButtonArt::2
|
|
Elevation: 2
|
|
|
|
Tags: BaseCost, Category:Weapons
|
|
Tags: WeaponBase, Rotatable, HexLimitArc
|
|
Tags: ExteriorCore, Weapon, DefaultUnlock, IsProjWeapon, IsRailgun, HasInternals, MainDPS
|
|
Hull: Flagship, Station
|
|
|
|
Size := HexSize * Hexes
|
|
Range := Size + 500
|
|
Damage := Size * 1.0
|
|
Reload := 0.32 * min(1.0 + Size/512, 2.0)
|
|
Speed := max(110, Range / 15)
|
|
Spread := 0.035 / max(Range / 600, 1)
|
|
Tracking := 0.4
|
|
FireArc := 1.5
|
|
Pierce := 0.6
|
|
SupplyCost := Size * 1.5
|
|
PowerUse := 2.5 * Size
|
|
Impulse := 0
|
|
|
|
Hex.HP := 18 * HexSize
|
|
Hex.Resistance := 0.2
|
|
Hex.Mass := HexSize
|
|
|
|
Modifier: AddRailgunKnockback(Amount)
|
|
Impulse := Impulse + Amount * Size
|
|
|
|
Requires:
|
|
Command = 1
|
|
Power = PowerUse
|
|
|
|
Module: Default
|
|
|
|
Module: Core
|
|
Hex.HP := Hex.HP * 3
|
|
Hex.BuildCost := 5.0 * Hex.BuildCost
|
|
Hex.Mass := 5.0 * Hex.Mass
|
|
|
|
Sprite: Railgun::0
|
|
DrawMode: 1
|
|
|
|
Hex.DamageResist := ShipSize / 64.0
|
|
Effect: DamageResist
|
|
Resist = Hex.DamageResist
|
|
|
|
Effector: RailgunBattery
|
|
Range = Range
|
|
Damage = Damage
|
|
Reload = Reload
|
|
Speed = Speed
|
|
Tracking = Tracking
|
|
Spread = Spread
|
|
FireArc = FireArc
|
|
TargetTolerance = max(pi,FireArc + pi/4)
|
|
FireTolerance = Spread * 3
|
|
Pierce = Pierce
|
|
SupplyCost = SupplyCost * Reload
|
|
CapOnTarget = 24
|
|
Impulse = Impulse
|