dofilepath("data:scripts/ult_underattackreissuedock.lua")
function Update_Hgn_AttackBomber(CustomGroup, playerIndex, shipID)
Ult_UnderAttackReissueDock(CustomGroup)
end
dofilepath("data:scripts/ult_underattackreissuedock.lua")
function Update_Hgn_Interceptor(CustomGroup, playerIndex, shipID)
Ult_UnderAttackReissueDock(CustomGroup)
end
perhaps we can just call one file:
addCustomCode(NewShipType, "data:scripts/ult_lib.lua", "", "", "Update_Hgn_AttackBomber", "", 1)
or even
addCustomCode(NewShipType, "data:scripts/ult_lib.lua", "", "", "Fighter_Fixes", "", 1)
etc
Ahh this is what I have on the ssss branch actually, the file is scripts/PlayersPatch_patches.lua
I've moved the salvette fix into there and Ive been experimenting on a fix for hyperspacing in gravwells.
perhaps ships should call some sort of library file instead of their own scripts
im adding the same function to quite a few ships here:
addCustomCode(NewShipType, "data:ship/hgn_attackbomber/hgn_attackbomber.lua", "", "", "Update_Hgn_AttackBomber", "", 1)
addCustomCode(NewShipType, "data:ship/hgn_interceptor/hgn_interceptorlua", "", "", "Update_Hgn_Interceptor", "", 1)
perhaps we can just call one file:
addCustomCode(NewShipType, "data:scripts/ult_lib.lua", "", "", "Update_Hgn_AttackBomber", "", 1)
or evenaddCustomCode(NewShipType, "data:scripts/ult_lib.lua", "", "", "Fighter_Fixes", "", 1)
etc