Defines the Special Diet Ration medical item (special_ration) of the Diseases plugin, a food item with a
hunger value of 40 that cures gastritis and restores health when it is eaten or given to the player being looked
at with its Give action.
Summary
Methods
Feeds the ration to the player being looked at with "Give", curing their gastritis and healing them.
OnDrop(player, position)shared
Lets the item be dropped, with no extra effect.
Cures the player's gastritis, heals them and fires
PlayerHealed.Methods
ITEM:OnCustomFunction(player, name)
server gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_special_ration.lua:34Feeds the ration to the player being looked at with "Give", curing their gastritis and healing them.
Fires PlayerHealed with the giver as the healer. Returns false when no player is looked at.
Parameters
- player
- name
ITEM:OnDrop(player, position)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_special_ration.lua:56Lets the item be dropped, with no extra effect.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_special_ration.lua:20Cures the player's gastritis, heals them and fires PlayerHealed.
Parameters
- player
- itemEntity