summaryrefslogtreecommitdiff
path: root/entities
diff options
context:
space:
mode:
Diffstat (limited to 'entities')
-rw-r--r--entities/entities/gms_bed.lua9
-rw-r--r--entities/entities/gms_campfire.lua23
2 files changed, 5 insertions, 27 deletions
diff --git a/entities/entities/gms_bed.lua b/entities/entities/gms_bed.lua
index 7b7a87b..21723e7 100644
--- a/entities/entities/gms_bed.lua
+++ b/entities/entities/gms_bed.lua
@@ -1,7 +1,3 @@
---[[
-A useful command for createing structures.
-lua_run for k,v in pairs(ents.GetAll()) do if(v:GetClass() == "prop_physics") then print(v:GetModel()) print(v:GetPos()) print(v:GetAngles()) end end
-]]
AddCSLuaFile()
--[[
Some lua_run functions useful for finding props
@@ -38,21 +34,25 @@ ENT.VisParts = {
"models/props_c17/gravestone001a.mdl",
Vector(3.3, 1.5, -4.8),
Angle(-90,90,180),
+ "Models/Gibs/furniture_gibs/FurnitureWoodDrawers001a",
},
{
"models/props_c17/gravestone001a.mdl",
Vector(3.6, 2.5, -5),
Angle(-90, -90, 180),
+ "Models/Gibs/furniture_gibs/FurnitureWoodDrawers001a",
},
{
"models/props_c17/canister01a.mdl",
Vector(17.5, -41.6, -5),
Angle(0, 90, 180),
+ "models/props_debris/metalwall001a",
},
{
"models/props_c17/canister01a.mdl",
Vector(-12, -41.6, -5),
Angle(0, 90, -180),
+ "models/props_debris/metalwall001a",
},
{
"models/props_c17/playground_teetertoter_stan.mdl",
@@ -73,6 +73,7 @@ function ENT:OnInitialize()
e:SetModel(v[1])
e:SetPos(v[2] + self:GetPos())
e:SetAngles(v[3])
+ if(v[4] != nil) then e:SetMaterial(v[4]) end
e:Spawn()
e:SetParent(self)
self.Props[k] = e
diff --git a/entities/entities/gms_campfire.lua b/entities/entities/gms_campfire.lua
index 776cfbc..3e6c877 100644
--- a/entities/entities/gms_campfire.lua
+++ b/entities/entities/gms_campfire.lua
@@ -35,30 +35,7 @@ ENT.VisParts = {
Angle(68.427, 118.366, 9.406),
},
}
---[[
-models/props_debris/wood_chunk08b.mdl
-1.240417 5.524837 -7.739258
--89.377 -65.131 -82.987
-models/props_debris/wood_chunk06d.mdl
--0.861053 -7.099247 -3.869141
--68.427 -61.634 -141.252
-models/props_debris/wood_chunk02a.mdl
--3.136078 11.640522 -3.352539
--62.440 122.254 1.722
-models/props_debris/wood_chunk04d.mdl
--12.100769 3.301933 -0.352539
--45.086 67.079 -161.642
-models/props_debris/wood_chunk02b.mdl
--1.157349 -9.414154 -2.000000
-68.427 118.366 9.406
-models/hunter/blocks/cube1x1x05.mdl
-0.000000 0.000000 0.000000
-0.010 -45.169 0.018
-models/props_debris/wood_chunk04d.mdl
-3.393311 17.393948 -3.345703
-58.830 -82.344 13.865
-]]
function ENT:OnInitialize()
self:SetModel( self.Model )
self:PhysicsInit( SOLID_VPHYSICS )