Space Engineers

Space Engineers

[DEPRECATED!!] Hazard Mechanics
 此主题已被置顶,因此可能具有重要性
TheGoudaShoota  [开发者] 2020 年 6 月 28 日 上午 12:33
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.
最后由 TheGoudaShoota 编辑于; 2020 年 6 月 30 日 下午 1:10
< >
正在显示第 1 - 1 条,共 1 条留言
TheGoudaShoota  [开发者] 2020 年 6 月 28 日 上午 12:49 
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)
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50