wiremod-svn-archive/wire/lua/entities/gmod_wire_hologrid/init.lua

20 lines
546 B
Lua
Raw Normal View History

2007-04-02 13:58:12 +00:00
AddCSLuaFile( "cl_init.lua" );
AddCSLuaFile( "shared.lua" );
include( "shared.lua" );
// wire debug and overlay crap.
ENT.WireDebugName = "Holographic Grid";
ENT.OverlayDelay = 0;
// init.
function ENT:Initialize( )
// set model
util.PrecacheModel( "models/jaanus/wiretool/wiretool_siren.mdl" );
self.Entity:SetModel( "models/jaanus/wiretool/wiretool_siren.mdl" );
// setup physics
self.Entity:PhysicsInit( SOLID_VPHYSICS );
self.Entity:SetMoveType( MOVETYPE_VPHYSICS );
self.Entity:SetSolid( SOLID_VPHYSICS );
end