Defines the Large Soda drink item, which refills stamina, heals 10 health, boosts agility by 5 for two minutes, leaves an empty plastic bottle 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.
Sets stamina to 100, heals 10 health, boosts agility by 5 for two minutes and gives back an empty plastic bottle.

Methods

ITEM:OnDrop(player, position)

shared gamemodes/cwhl2rp/schema/items/sh_large_soda.lua:28

Lets the item be dropped; nothing else happens.

Parameters

  • player
  • position

ITEM:OnEditFunctions(functions)

shared gamemodes/cwhl2rp/schema/items/sh_large_soda.lua:31

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_large_soda.lua:18

Sets stamina to 100, heals 10 health, boosts agility by 5 for two minutes and gives back an empty plastic bottle.

Parameters

  • player
  • itemEntity

Defined in