Permalink
Browse files

Added PrintNames to sandbox entities

Better version of #1131/
  • Loading branch information...
1 parent 1e7bd79 commit cfee866512978609bbddbe3920dfb7e39936beea @robotboy655 robotboy655 committed Apr 21, 2016
@@ -2,6 +2,7 @@
AddCSLuaFile()
ENT.Type = "anim"
+ENT.PrintName = "World Anchor"
if ( CLIENT ) then return end
@@ -2,7 +2,7 @@
AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
-ENT.Spawnable = false
+ENT.PrintName = "Balloon"
function ENT:Initialize()
@@ -2,6 +2,8 @@
AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
+ENT.PrintName = "Button"
+
function ENT:SetupDataTables()
self:NetworkVar( "Int", 0, "Key" )
@@ -6,7 +6,7 @@ if ( CLIENT ) then
end
ENT.Type = "anim"
-ENT.Spawnable = false
+ENT.PrintName = "Camera"
ENT.RenderGroup = RENDERGROUP_BOTH
local CAMERA_MODEL = Model( "models/dav0r/camera.mdl" )
@@ -2,7 +2,7 @@
AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
-ENT.Spawnable = false
+ENT.PrintName = "Dynamite"
ENT.RenderGroup = RENDERGROUP_OPAQUE
AccessorFunc( ENT, "m_ShouldRemove", "ShouldRemove" )
@@ -2,7 +2,7 @@
AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
-ENT.Spawnable = false
+ENT.PrintName = "Emitter"
ENT.RenderGroup = RENDERGROUP_OPAQUE
local matLight = Material( "sprites/light_ignorez" )
@@ -3,8 +3,7 @@ AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
ENT.Type = "anim"
-
-ENT.Spawnable = false
+ENT.PrintName = "Tool Ghost"
function ENT:Initialize()
@@ -2,7 +2,7 @@
AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
-ENT.Spawnable = false
+ENT.PrintName = "Hoverball"
ENT.RenderGroup = RENDERGROUP_BOTH
function ENT:SetupDataTables()
@@ -2,7 +2,7 @@
AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
-ENT.Spawnable = false
+ENT.PrintName = "Lamp"
ENT.RenderGroup = RENDERGROUP_BOTH
local matLight = Material( "sprites/light_ignorez" )
@@ -2,7 +2,7 @@
AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
-ENT.Spawnable = false
+ENT.PrintName = "Light"
ENT.RenderGroup = RENDERGROUP_BOTH
local matLight = Material( "sprites/light_ignorez" )
@@ -2,7 +2,7 @@
AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
-ENT.Spawnable = false
+ENT.PrintName = "Thruster"
local matHeatWave = Material( "sprites/heatwave" )
local matFire = Material( "effects/fire_cloud1" )
@@ -2,7 +2,7 @@
AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
-ENT.Spawnable = false
+ENT.PrintName = "Wheel"
ENT.RenderGroup = RENDERGROUP_OPAQUE
--

2 comments on commit cfee866

@mrpotatofactory

Why though

@Kefta
Contributor
Kefta commented on cfee866 Oct 3, 2016

Why not?

Please sign in to comment.