Space Engineers

Space Engineers

Not enough ratings
Shield Controller Non-Weaponcore
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
392.537 KB
30 Jul, 2021 @ 7:32pm
31 Jul, 2021 @ 8:08pm
2 Change Notes ( view )

Subscribe to download
Shield Controller Non-Weaponcore

Description
Designed to boost shields in combat automatically while allowing low level
shields to conserve power out of combat. Works with the mods:
Defense shields Mod: https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=1365616918

Weaponcore Version of this script:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2562767706

There are arguments you can run with this script.
"OFF" disables automatic controls
"ON" enables automatic control
"TEST" triggers the boosted shield mode as if the shield is attacked
By default the script will start in the "ON" when recompiled or run

Warning user will have to specify the lower and upper power levels.
The top set of settings can be changed they include the power levels for
low power non-boosted shield mode and high power boosted shield mode
as well as a delay timer for how long to wait before returning to low
power non-boosted mode after high power boosted mode.
Note when the shield drops from high power boosted mode to low power
non-boosted mode it uses 2.6 times the power that its actually set to.

There are three triggers to activate the high power shield boost mode.
1. A turret has a target to shoot at. If weaponcore turrets are available
it will use those. If weaponcore isn't enabled it will check normal
turrets for targets. Note if the turrets aren't setup to shoot something
or are off then the shields probably won't boost either.
2. If the current shield HP is lower than the previous tick then the shield
is taking damage.
3. If the script is run with "TEST" argument.

When the shield switches from high to low power there is a brief time
period where the script won't detect damage to the shield. This avoids
a never ending loop of cycling power levels.

This script can also be set to control the same grid batteries. This
allows you to make it so that the solar panels keep the lower power shield
up and charges the batteries. When in high power mode the batteries will
be set to discharge mode to power the shields and weapons. This can be
disabled in the script settings.