Space Engineers

Space Engineers

Not enough ratings
Nerd's Shield Framework
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script
File Size
Posted
Updated
1.366 MB
1 Jul @ 6:08pm
6 Jul @ 9:56pm
24 Change Notes ( view )

Subscribe to download
Nerd's Shield Framework

Description

This mod framework adds two types of blocks:
- Main shield blocks, and shield upgrade blocks. Main shield blocks provide the grid with a skintight shield that can be enhanced through shield upgrade blocks. They are however, limited to 1 per grid, with any more exploding.
- Shield upgrade blocks can only modify a ship's shield, not produce it, but have no limit and can be placed anywhere on the grid to modify the shield.
- Blocks will automatically work, so long as they are on. No user setup or maintenance is required beyond placing them.



Shields have various stats and damage multipliers, but the most important ones are the following:
- Shield HP (sHP): The strength of your shield
- Shield Regen (sHP/sec): How fast your shield HP regenerates
- Regen Cooldown: How long the shield takes to start regenerating after sustaining damage,
- Shield Bleedthrough: How much damage does the shield let through depending on the shield HP percent, with different shields having different bleedthrough curves.
- Shield damage type resistances - how much each damage type will damage your shield.



The mod automatically provides a shield HUD which displays critical information like shield HP, regen, and bleedthrough in an extremely easy to read manner (text).

The HUD can be toggled through the "/toggleshieldhud" command
The HUD can be moved through the "/setshieldpos <x pos> <y pos>" command, where X and Y range from -1 to 1 each, with (0, 0) being the center. Default is (0, 0.8). (1,1) is top right.


1. Download the Example Mod by subscribing to it. This may also require loading a world with the mod.
2. Copy the mod from steam's workshop storage (in this case, WhereYourSteamFolderIs\Steam\steamapps\workshop\content\244850\3514216898) to your local mods folder (usually %AppData%\Roaming\SpaceEngineers\Mods)
3. Open the copied mod files with a text editor of your choice. The shield stats will be in Data\Scripts\NerdShields\ShieldDefinitionsTemplate.cs, modify these to achieve the desired result. Stat documentation is contained within the file.
- If you need more examples, Midnight Shield Systems is a mod which implements this framework.
4. Upload your modified mod, which can be done through the Space Engineers mod list in any world by selecting the mod and hitting Publish.

Compatible with WeaponCore and Vanilla

Have an issue?
Discord Link: https://discord.gg/dxfxcnvXeh
Please report issues here. I do not check workshop comments very often.

REUPLOAD POLICY
You cannot reupload this mod under any circumstances whatsoever.
5 Comments
eaglegundam 8 Jul @ 3:07pm 
finally a non weapon core shield framework
kos_dragon 8 Jul @ 12:26pm 
Can this be used to make a dome/sphere shield? Like Defense Shields but for vanilla?
50 COW 7 Jul @ 6:37pm 
Hell yeah!
HasturKerman#4005 4 Jul @ 6:14pm 
ok seems like my weapon framework needs another compatibiliy update
retrograde_orbit 3 Jul @ 7:52pm 
awagga