sick

Module: sick — player_cold.lua

What it does

Inflicts a cold on the local player by directly setting body damage properties and raising the sickness stat. The cold strength, sickness amount, and cold damage stage are all configurable. If coldStrength is greater than zero, a sneeze or cough is triggered within 10 ticks. The sickness stat is additive with any existing sickness, capped at 1.0.

Trigger type

sick

Parameters

ParameterTypeDefaultValid ValuesDescription
type string required "sick" Module trigger identifier.
coldStrength number 50 Any number (game-defined range) Strength of the cold applied to body damage. Higher values produce a more severe cold. Set to 0 to skip the sneeze timer.
sickness number 0.2 0.01.0 Amount added to the player's current sickness stat. The result is clamped to 1.0.
coldDamageStage number 0.5 Any number (game-defined range) Sets the cold damage stage on the body, controlling how quickly the cold progresses.

Examples

Mild sniffle with defaults
{ type="sick" }
Heavy cold, high sickness spike
{ type="sick", coldStrength=80, sickness=0.6, coldDamageStage=1.0 }
Sickness with no sneeze trigger
{ type="sick", coldStrength=0, sickness=0.4, coldDamageStage=0.2 }