This commit is contained in:
lifestorm
2024-08-04 22:55:00 +03:00
parent 8064ba84d8
commit 73479cff9e
7338 changed files with 1718883 additions and 14 deletions

View File

@@ -0,0 +1,29 @@
--[[
| 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 ix.scalestuff:ScaleEntity(ent, size)
if (IsValid(ent) and !ent:IsNPC() and !ent:IsPlayer() and isnumber(size)) then
for _, v in ipairs(PLUGIN.disallowedClasses) do
if (ent:GetClass() == v) then
return
end
end
ent:SetModelScale(size, 0.01)
ent:DrawShadow(false)
ent:Activate()
ent:SetSolid(SOLID_BBOX)
ent:SetMoveType(MOVETYPE_NONE)
ent.scaledSize = size
end
end