very happy noises
Still need to work out a way to display the shields health - if that’s even possible. To work out if the shield goes down I’m just checking if the HP starts dropping. I tried checking if the ship’s HP goes above 1 - but it doesn’t 
function ssc_ShieldRule(tShip, tShipSOB)
if (tShip.iShieldStatus == 1) then -- if shield is online
if (SobGroup_HealthPercentage(tShipSOB) < tShip.fLastShieldHP) then -- shield going offline
SobGroup_SetMadState(tShipSOB, "HyperspaceGateDeActivate") -- do shield offline animation
tShip.iShieldStatus = 0
end
else -- if shields are offline
--handle this lol
end
tShip.fLastShieldHP = SobGroup_HealthPercentage(tShipSOB)
end
The ship has
addShield(NewShipType, "Bullet", 50000, 20)
The weapon looks like (still need to set it up for different penetrations):
StartWeaponConfig(NewWeaponType, "AnimatedTurret", "InstantHit", "asgard_plasmabeam", "Special Attack", 0, 6000, 0, 1.5, 0, 0, 5, 1, 0, 3.4, 0, 0, 1, 1, 60, 60, 0, "Normal", 1, 0, 300)
AddWeaponResult(NewWeaponType, "Hit", "DamageHealth", "Target", 1000, 1000, "")
setAccuracy(NewWeaponType, 1)
setAngles(NewWeaponType, 0, -80, 80, -25, 85)
setPenetration(NewWeaponType, 0, 0,
{LightArmour = 0},
{MediumArmour = 0},
{HeavyArmour = 1},
{ShieldArmour = 0},
{SubSystemArmour = 0},
{Unarmoured = 0},
{PlanetKillerArmour = 0}
)