item_adrenaline

item_adrenaline #

Adrenaline canister/syringe is a pickable item that is used automatically to revive the player in 3 seconds after his death.

If player takes damage in a certain time window after being revived by adrenaline this damage won’t kill the player - this protects the player from dying again right after being revived if there’re still enemies around. This, however, won’t save the player from crush, fall and drown types of damage.

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

Adrenaline can’t revive the player if he drowned, died from the fall damage or was gibbed.

When item_adrenaline is picked up the suit doesn’t play any sentence by default. This can be configured via the entity templates.

When item_adrenaline is getting used the suit plays the !HEV_HEAL9 sentence. This sentence is not defined in Half-Life sentences.txt. We recommend adding this line after the HEV_HEAL8:

HEV_HEAL9 fvox/(p140) boop, boop, boop, (p100) hiss, adrenaline_shot
  • If item_adrenaline is defined in hud.txt it will be used to show in pickup history.
  • If item_adrenaline is defined in hud.txt the sprite and the current count will be shown in HUD, among player inventory items.

Skill variables #

  • sk_adrenaline_health - how much health the player upon adrenaline revival. Default value is 25. This can be higher than the player’s maximum health.
  • sk_adrenaline_duration - for how many seconds the player is protected from death after being revived. The player still can take damage (but it won’t get lower than 1) and is not protected against crush, fall and drown damage types. Default value is 3 seconds.
  • sk_adrenaline_deathsaves - how many times the player can be protected against death during the sk_adrenaline_duration after being revived. Default value is 1 time.

Soundscripts #

Entity template examples #

{
    "item_adrenaline": {
        "pickup": {
            "suit_sentence": "!HEV_ADRENALINE"
        }
    }
}

Possible sentences.txt entry:

HEV_ADRENALINE fvox/blip blip blip, (p103) adrenaline_shot(e50)(v80) (p100) acquired