NoMansSky:Reference Guides/HazardTable: Difference between revisions

From Step Mods | Change The Game
Line 4: Line 4:
Handles the environmental hazards that affect the player/suit. This currently includes: No hazards, no oxygen, extreme cold and heat, radiation, and toxic gas.
Handles the environmental hazards that affect the player/suit. This currently includes: No hazards, no oxygen, extreme cold and heat, radiation, and toxic gas.


=== Data Structure ===
== Data Structure ==
The following the the completed structure of an entry in the HazardTable. Below it, the structure is broken down for explanation.
The following the the completed structure of an entry in the HazardTable. Below it, the structure is broken down for explanation.
<pre>
<pre>
Line 37: Line 37:
</pre>
</pre>


<pre>
<code><Property name="NoOxygen" value="GcPlayerHazardData.xml"></code>
    <Property name="NoOxygen" value="GcPlayerHazardData.xml">
</pre>
; Name
; Name
: The name of the hazard. In this case, NoOxygen, refers to running out of air.
: The name of the hazard. In this case, NoOxygen, refers to running out of air.
Line 45: Line 43:
: This is the template that holds the variables used within each segment.
: This is the template that holds the variables used within each segment.


<pre>
<code><Property name="ProtectionInitialTime" value="10" /></code>
      <Property name="ProtectionInitialTime" value="10" />
</pre>
; ProtectionInitialTime
; ProtectionInitialTime
: float
: float

Revision as of 03:04, August 18, 2020

Hazard Table

Handles the environmental hazards that affect the player/suit. This currently includes: No hazards, no oxygen, extreme cold and heat, radiation, and toxic gas.

Data Structure

The following the the completed structure of an entry in the HazardTable. Below it, the structure is broken down for explanation.

    <Property name="NoOxygen" value="GcPlayerHazardData.xml">
      <Property name="ProtectionInitialTime" value="10" />
      <Property name="ProtectionTime" value="Vector2f.xml">
        <Property name="x" value="90" />
        <Property name="y" value="90" />
      </Property>
      <Property name="DamageRate" value="Vector2f.xml">
        <Property name="x" value="10" />
        <Property name="y" value="10" />
      </Property>
      <Property name="WoundRate" value="Vector2f.xml">
        <Property name="x" value="10" />
        <Property name="y" value="10" />
      </Property>
      <Property name="RechargeInitialTime" value="1" />
      <Property name="RechargeTime" value="10" />
      <Property name="Damage" value="NOOXYDAMAGE" />
      <Property name="Increases" value="False" />
      <Property name="Curve" value="TkCurveType.xml">
        <Property name="Curve" value="Linear" />
      </Property>
      <Property name="TriggerValue" value="0.5" />
      <Property name="CapValue" value="1" />
      <Property name="CriticalValue" value="1" />
      <Property name="OutputMultiplier" value="1" />
      <Property name="OutputMinAddition" value="0" />
      <Property name="OutputMaxAddition" value="0" />
    </Property>

<Property name="NoOxygen" value="GcPlayerHazardData.xml">

Name
The name of the hazard. In this case, NoOxygen, refers to running out of air.
Value
This is the template that holds the variables used within each segment.

<Property name="ProtectionInitialTime" value="10" />

ProtectionInitialTime
float
Unknown
      <Property name="ProtectionTime" value="Vector2f.xml">
        <Property name="x" value="90" />
        <Property name="y" value="90" />
      </Property>
ProtectionTime
Defined as Vector2f in the GcPlayerHazardData.xml template. Vector2f carries two float variables as such: vector2f(x,y)
x: float
y: float

Template:NMSPageClose