Defines the Smooth Breen's Water drink item (smooth_breens_water), which restores 80 stamina and 6 health, boosts agility by 2 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 80 stamina and 6 health, boosts agility by 2 for two minutes and gives back an empty soda can.

Methods

Lets the item be dropped; nothing else happens.

Parameters

  • player
  • position

ITEM:OnEditFunctions(functions)

shared gamemodes/cwhl2rp/schema/items/sh_smooth_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_smooth_breens_water.lua:20

Restores 80 stamina and 6 health, boosts agility by 2 for two minutes and gives back an empty soda can.

Parameters

  • player
  • itemEntity

Defined in