Defines the Breen's Water drink item (breens_water), which restores 70 stamina and 4 health, boosts agility and endurance by 1 for two minutes, leaves an empty soda can and hides its Drink option from Combine players.

Summary

Methods

Lets the item be dropped; nothing else happens.
Removes the Drink option from the item's menu when the local player is Combine.
Restores 70 stamina and 4 health, boosts agility and endurance by 1 for two minutes and gives back an empty soda can.

Methods

ITEM:OnDrop(player, position)

shared gamemodes/cwhl2rp/schema/items/sh_breens_water.lua:30

Lets the item be dropped; nothing else happens.

Parameters

  • player
  • position

ITEM:OnEditFunctions(functions)

shared gamemodes/cwhl2rp/schema/items/sh_breens_water.lua:33

Removes the Drink option from the item's menu when the local player is Combine.

Parameters

  • functions

ITEM:OnUse(player, itemEntity)

shared gamemodes/cwhl2rp/schema/items/sh_breens_water.lua:19

Restores 70 stamina and 4 health, boosts agility and endurance by 1 for two minutes and gives back an empty soda can.

Parameters

  • player
  • itemEntity

Defined in