item_antidote

item_antidote #

TWHL

Antidote (also known as antitoxin) is a pickable item that is used automatically upon the player getting the time based damage effect from poison and nervegas and also gives temporary immunity against the subsequent time based damage (but doesn’t protect from the impact damage).

The limit on the number of antidotes the player can carry is configured in templates/inventory.json. By default there’s no limit.

When item_antidote is picked up the suit plays the !HEV_DET4 sentence. This can be configured via the entity templates.

When item_antidote is getting used the suit plays the !HEV_HEAL4 sentence.

See also: item_radiation

Changes #

  • Stops poison/nervegas time based effect faster.
  • If item_antidote is defined in hud.txt it will be used to show the antidote in pickup history.
  • If item_antidote is defined in hud.txt the antidote sprite along with the current count will be shown in HUD, among player inventory items.

New parameters #

  • Pickup sound - custom pickup sound (by default item_antidote will use the Antidote.Pickup soundscript).

Skill variables #

  • sk_antidote_time - how long the player will be protected from getting the time based effect from the subsequent toxic attacks after the antidote has been applied. This is 10 seconds by default.

Soundscripts #

Entity template examples #

{
    "item_antidote": {
        "pickup": {
            "suit_sentence": "!HEV_ANTIDOTE"
        }
    }
}

Possible sentences.txt entry:

HEV_ANTIDOTE fvox/blip blip blip, antitoxin_shot(e50), acquired