Space Engineers

Space Engineers

[DEPRECATED!!] Hazard Mechanics
 This topic has been pinned, so it's probably important
TheGoudaShoota  [developer] 28 Jun, 2020 @ 12:33am
Hazard API
This API is built with the intention of providing other mods the ability to add hazards for their block, without me having to add it to the base setting list. an Example Session is included in the base of the scripts at Data/Scripts/PRPIS/; You will also need the HazardAPIv1.cs file from there.

Any issues with the HazardAPI can be asked here, or on the SE discord in the modding-programming (@AccidentallyTheCable)

This API is a supplemental; meaning if your subscribers DO NOT have Hazard Mechanics enabled, nothing will happen and your mod is able to continue without it. Hazard Mechanics does not become a required/dependent mod.
Last edited by TheGoudaShoota; 30 Jun, 2020 @ 1:10pm
< >
Showing 1-1 of 1 comments
TheGoudaShoota  [developer] 28 Jun, 2020 @ 12:49am 
Example Mod which adds a block (and its small variant) and a custom suit.
// Accepts: General, Shock, Radiation // General - Generic Hazard Processing - FLOATING OBJECTS ALLOWED // Shock - Processing for Damaged blocks - NO FLOATING OBJECTS ALLOWED // Radiation - Processing for items containing Uranium (Ore or Ingot) - FLOATING OBJECTS ALLOWED private HazardAPIv1.HazardModesEnum BlockType = HazardAPIv1.HazardModesEnum.General;

General
Generic calculation (If block is enabled, damage is enabled, otherwise, no damage enabled)
Shock
Damaged block calculation (if block is damaged more than 15% (85% or less integrity); Random chance to do damage even if the block is off
Radiation
Damage calculated based on uranium content (only uranium)
< >
Showing 1-1 of 1 comments
Per page: 1530 50