Quantum is a Garry's Mod RPG framework.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
quantum/gamemode/engine/derma/lib/cl_render.lua

37 lines
792 B

-- __ _ _______ _ __
-- / / /\ | | |__ __| | | \ \
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > >
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / /
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/
local qrender = {}
function qrender.CreateMdl( mdl, vec, ang )
Quantum.Debug( "CSEnt created." )
local ent = ClientsideModel( mdl )
ent:SetPos( vec )
ent:SetAngles( ang )
return ent
end
function qrender.SetModel( ent, model )
if( ent:GetModel() != model ) then
ent:SetModel( model )
else
return
end
end
function qrender.delCSent( ent )
if( IsValid(ent) ) then
Quantum.Debug( "CSEnt removed." )
ent:Remove()
end
end
return qrender