parent
c393f294c9
commit
dda29f599f
@ -0,0 +1,26 @@ |
||||
-- __ _ _______ _ __ |
||||
-- / / /\ | | |__ __| | | \ \ |
||||
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \ |
||||
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > > |
||||
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / / |
||||
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ |
||||
|
||||
AddCSLuaFile( "cl_init.lua" ) |
||||
AddCSLuaFile( "shared.lua" ) |
||||
|
||||
include( "shared.lua" ) |
||||
|
||||
function ENT:Initialize() |
||||
|
||||
self:PhysicsInit( SOLID_BSP ) |
||||
self:SetMoveType( MOVETYPE_VPHYSICS ) |
||||
self:SetSolid( SOLID_VPHYSICS ) |
||||
self:SetCollisionGroup( COLLISION_GROUP_NONE ) |
||||
self:SetModel("models/kleiner.mdl") -- mingebad model :) |
||||
|
||||
local physObj = self:GetPhysicsObject() |
||||
if( IsValid( physObj ) ) then |
||||
physObj:EnableMotion( false ) |
||||
end |
||||
|
||||
end |
@ -0,0 +1,15 @@ |
||||
-- __ _ _______ _ __ |
||||
-- / / /\ | | |__ __| | | \ \ |
||||
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \ |
||||
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > > |
||||
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / / |
||||
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ |
||||
|
||||
ENT.Type = "ai" |
||||
ENT.Base = "base_ai" |
||||
|
||||
ENT.PrintName = "Quantum NPC" |
||||
ENT.Author = "AlmTech" |
||||
ENT.Contact = "elias@almtech.se" |
||||
ENT.Spawnable = false |
||||
ENT.AdminSpawnable = false |
@ -0,0 +1,12 @@ |
||||
-- __ _ _______ _ __ |
||||
-- / / /\ | | |__ __| | | \ \ |
||||
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \ |
||||
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > > |
||||
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / / |
||||
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ |
||||
|
||||
include( "shared.lua" ) |
||||
|
||||
function ENT:Draw() |
||||
self:DrawModel() |
||||
end |
Loading…
Reference in new issue