Homeworld Remastered Collection

Homeworld Remastered Collection

Star Trek: Chronicles - 2380
JohnStar145 2023 年 2 月 2 日 上午 4:57
Shield down/offline
Is there a way to re-engage shields that is disabled on a active ship that isn't KIA?
< >
正在显示第 1 - 1 条,共 1 条留言
Nathanius  [开发者] 2023 年 2 月 9 日 上午 3:03 
The shield script raises the shields again on its own

--handle when the shields are down and waiting to come back up if shieldHP <= 0 then tShip.iShieldTimer = tShip.iShieldTimer - 1 if tShip.iShieldTimer <= 0 then -- shields up! They will randomly restore at 10% to 60% of capacity tShip.fShieldHealth = SHIELD_GetRandomValue(shipID)/100 --apply the shield restoration boost from XP rank if SETTING_ExperienceEnabled == 1 then tShip.fShieldHealth = tShip.fShieldHealth + tShip.fShieldRestoreBoost if tShip.fShieldHealth > 1 then tShip.fShieldHealth = 1 end end tShip.fShipHealth = shipHP -- make a note of the current ship health so we don't jump it back to 100% SobGroup_SetMadState(CustomGroup, "HyperspaceGateActivate") SHIELD_RefreshShipATI(tShip) --print(">> SHIELDS >> | " .. CustomGroup .. "(" .. shipID .. ") (" .. tShip.sShipFamily .. ") (rank " .. tShip.iRank .. ") has restored shield to "..tShip.fShieldHealth) end --skip the rest of the function return end
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50