Files
wnsrc/gamemodes/ixhl2rp/plugins/willardskills/items/food/sh_headcrab_jambalaya.lua
lifestorm c6d9b6f580 Upload
2024-08-05 18:40:29 +03:00

37 lines
985 B
Lua

--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
ITEM.name = "Headcrab Jambalaya"
ITEM.description = "Boiled headcrab mixed in with a spicy gravy, vegetables and other ingredients."
ITEM.category = "Food"
ITEM.model = "models/willardnetworks/food/stew1.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.iconCam = {
pos = Vector(69.87, 58.63, 44.49),
ang = Angle(24.51, 219.92, 0),
fov = 4.27
}
ITEM.hunger = 65
ITEM.thirst = 15
ITEM.boosts = {
agility = 5
}
ITEM.spoil = true
ITEM.useSound = "ambient/levels/canals/toxic_slime_gurgle4.wav"
ITEM.addVE = 20
function ITEM:OnConsume(client, character)
if character:IsVortigaunt() then
local percentage = ix.config.Get("maxVortalEnergy", 100) / 100
percentage = percentage * self.addVE
character:AddVortalEnergy(percentage)
end
end