Defines the Syringe of Alomorphine item of the Diseases plugin, an antidote sold to FACTION_MPF that cures the
slow lethal injection (slow_deathinjection) of its user, or of the player being looked at through its Inject
action, but has no effect on the fast one.
Summary
Methods
Injects the antidote into the player being looked at using "Inject".
OnDrop(player, position)shared
Lets the item be dropped, with no extra effect.
Cures the slow lethal poison (
slow_deathinjection); the fast one is not affected.Methods
ITEM:OnCustomFunction(player, name)
server gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_green_antidote.lua:33Injects the antidote into the player being looked at using "Inject".
Cures slow_deathinjection only. Returns false when no player is looked at.
Parameters
- player
- name
ITEM:OnDrop(player, position)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_green_antidote.lua:57Lets the item be dropped, with no extra effect.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_green_antidote.lua:18Cures the slow lethal poison (slow_deathinjection); the fast one is not affected.
Parameters
- player
- itemEntity