added default sphere model (thanks madness) to replace the default model (hoverball)

This commit is contained in:
CapsAdmin 2013-10-17 11:09:43 +02:00
parent 3f074e3505
commit d62bf3e0f6
9 changed files with 18 additions and 1 deletions

View File

@ -14,6 +14,9 @@ if SERVER then
add_files("pac3/editor/client/")
include("pac3/editor/server/init.lua")
-- for the default models
resource.AddWorkshop("104691717")
end
if CLIENT then

View File

@ -39,7 +39,11 @@ function pace.OnCreatePart(class_name, name, desc, mdl)
end
if desc then part:SetDescription(desc) end
if mdl then part:SetModel(mdl) end
if mdl then
part:SetModel(mdl)
elseif class_name == "model" then
part:SetModel("models/pac/default.mdl")
end
local ply = LocalPlayer()

10
materials/pac/default.vmt Normal file
View File

@ -0,0 +1,10 @@
"VertexlitGeneric"
{
"$BaseTexture" "models\debug\debugwhite"
"$BumpMap" "dev\bump_normal"
"$Phong" 1
"$PhongBoost" 2
"$PhongExponent" 5
"$PhongFresnelRanges" "[0 0.5 1]"
}

BIN
models/pac/default.dx80.vtx Normal file

Binary file not shown.

BIN
models/pac/default.dx90.vtx Normal file

Binary file not shown.

BIN
models/pac/default.mdl Normal file

Binary file not shown.

BIN
models/pac/default.phy Normal file

Binary file not shown.

BIN
models/pac/default.sw.vtx Normal file

Binary file not shown.

BIN
models/pac/default.vvd Normal file

Binary file not shown.