forked from Simnation/Main
ed
This commit is contained in:
parent
0b763c9a80
commit
6e2e683db3
2 changed files with 5 additions and 2 deletions
|
@ -2064,10 +2064,10 @@ Config.Items = {
|
||||||
},
|
},
|
||||||
["cerveza_barracho"] = {
|
["cerveza_barracho"] = {
|
||||||
uses = 2,
|
uses = 2,
|
||||||
|
drunkLevel = 10,
|
||||||
prop = { model = `prop_beer_bar`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) },
|
prop = { model = `prop_beer_bar`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) },
|
||||||
idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } },
|
idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } },
|
||||||
animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } },
|
animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } },
|
||||||
effect = { name = "drunk", time = 40000, intensity = 1.0 },
|
|
||||||
status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage.
|
status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage.
|
||||||
hunger = 0,
|
hunger = 0,
|
||||||
thirst = 25,
|
thirst = 25,
|
||||||
|
|
|
@ -64,6 +64,9 @@ lib.callback.register("pickle_consumables:useItem", function(source)
|
||||||
if cfg.status then
|
if cfg.status then
|
||||||
ExecuteStatus(source, cfg.status)
|
ExecuteStatus(source, cfg.status)
|
||||||
end
|
end
|
||||||
|
-- Add drunk level functionality here
|
||||||
|
if cfg.drunkLevel then
|
||||||
|
exports['cs_drunk']:AddDrunkLevel(source, cfg.drunkLevel)
|
||||||
end
|
end
|
||||||
return true, metadata.uses
|
return true, metadata.uses
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue