Files
wnsrc/gamemodes/darkrp/plugins/headcrabs/sh_hooks.lua

25 lines
721 B
Lua
Raw Normal View History

2024-08-04 22:55:00 +03:00
--[[
| 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/
--]]
local PLUGIN = PLUGIN
function PLUGIN:AdjustStaminaOffset(client, offset)
if (offset > 0 and client:Team() == FACTION_HEADCRAB and client:GetCharacter():GetClass() == CLASS_FASTHEADCRAB
and client:GetCharacter():GetClass() == CLASS_POISONHEADCRAB) then
return offset * 2
end
end
function PLUGIN:InitializedPlugins()
if (ix.plugin.list.inventoryslosts and FACTION_HEADCRAB) then
ix.plugin.list.inventoryslots.noEquipFactions[FACTION_HEADCRAB] = true
end
end