Defines the Inhaler medical item (ingall) of the Diseases plugin, which cures its user's pneumonia one to two
minutes after use; its custom action for treating the player being looked at is listed under another name than the
Give its handler reacts to, so only self-use has an effect.
Summary
Methods
Uses the inhaler on the player being looked at with "Use on...", curing their pneumonia after a delay.
OnDrop(player, position)shared
Lets the item be dropped, with no extra effect.
Cures the player's pneumonia after one to two minutes and fires
PlayerHealed.Methods
ITEM:OnCustomFunction(player, name)
server gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_ingall.lua:31Uses the inhaler on the player being looked at with "Use on...", curing their pneumonia after a delay.
Fires PlayerHealed with the user 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_ingall.lua:51Lets the item be dropped, with no extra effect.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_ingall.lua:19Cures the player's pneumonia after one to two minutes and fires PlayerHealed.
Parameters
- player
- itemEntity