aboutsummaryrefslogtreecommitdiff
path: root/entities
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-11-04 22:42:24 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-11-04 22:42:24 -0400
commit5d77d8475af7aff27eb026a4b56065387c024165 (patch)
treeccdd061e5654288ab53134be52e8b1ef194d5ebc /entities
parent40080dcfde028c64c4f6f51792b928ee91677bc6 (diff)
downloadartery-5d77d8475af7aff27eb026a4b56065387c024165.tar.gz
artery-5d77d8475af7aff27eb026a4b56065387c024165.tar.bz2
artery-5d77d8475af7aff27eb026a4b56065387c024165.zip
Massive changes
* New error messages for missing dependencies * Removed useless art_serverchanger entity * Added a sweet ascii logo * Added Skills * Minor fixes to cl_inventory tracker * Changed a few prints to use logging module
Diffstat (limited to 'entities')
-rw-r--r--entities/entities/art_serverchanger/cl_init.lua66
-rw-r--r--entities/entities/art_serverchanger/init.lua39
-rw-r--r--entities/entities/art_serverchanger/shared.lua21
3 files changed, 0 insertions, 126 deletions
diff --git a/entities/entities/art_serverchanger/cl_init.lua b/entities/entities/art_serverchanger/cl_init.lua
deleted file mode 100644
index ae9d143..0000000
--- a/entities/entities/art_serverchanger/cl_init.lua
+++ /dev/null
@@ -1,66 +0,0 @@
-include('shared.lua')
-
-ENT.RenderGroup = RENDERGROUP_BOTH
-
-/*---------------------------------------------------------
- Name: Draw
- Desc: Draw it!
----------------------------------------------------------*/
-function ENT:Draw()
- self:DrawModel()
-end
-
-/*---------------------------------------------------------
- Name: DrawTranslucent
- Desc: Draw translucent
----------------------------------------------------------*/
-function ENT:DrawTranslucent()
-
- -- This is here just to make it backwards compatible.
- -- You shouldn't really be drawing your model here unless it's translucent
-
- self:Draw()
-
-end
-
-/*---------------------------------------------------------
- Name: BuildBonePositions
- Desc:
----------------------------------------------------------*/
-function ENT:BuildBonePositions( NumBones, NumPhysBones )
-
- -- You can use this section to position the bones of
- -- any animated model using self:SetBonePosition( BoneNum, Pos, Angle )
-
- -- This will override any animation data and isn't meant as a
- -- replacement for animations. We're using this to position the limbs
- -- of ragdolls.
-
-end
-
-
-
-/*---------------------------------------------------------
- Name: SetRagdollBones
- Desc:
----------------------------------------------------------*/
-function ENT:SetRagdollBones( bIn )
-
- -- If this is set to true then the engine will call
- -- DoRagdollBone (below) for each ragdoll bone.
- -- It will then automatically fill in the rest of the bones
-
- self.m_bRagdollSetup = bIn
-
-end
-
-
-/*---------------------------------------------------------
- Name: DoRagdollBone
- Desc:
----------------------------------------------------------*/
-function ENT:DoRagdollBone( PhysBoneNum, BoneNum )
-
- -- self:SetBonePosition( BoneNum, Pos, Angle )
-
-end
diff --git a/entities/entities/art_serverchanger/init.lua b/entities/entities/art_serverchanger/init.lua
deleted file mode 100644
index b72d03c..0000000
--- a/entities/entities/art_serverchanger/init.lua
+++ /dev/null
@@ -1,39 +0,0 @@
-
-AddCSLuaFile( "cl_init.lua" )
-AddCSLuaFile( "shared.lua" )
-
-include("shared.lua")
-
-function ENT:Initialize()
- --print("NPC spawned!")
- --self:SetCollisionGroup(COLLISION_GROUP_INTERACTIVE)
- --self:SetUseType(SIMPLE_USE)
-
- if self.Model then self:SetModel(self.Model)
- else print("Server changer created without model, this might be a bug!") end
-
- if self.Pos then self:SetPos(self.Pos)
- else print("Server changer created without a position, this might be a bug!") end
-
- if self.OnHit then self.PhysicsCollide = self.OnHit
- else print("Server changer created without an OnHit, this might be a bug!") end
-
- self.talking = false
-
- if self.Name then self:SetName(self.Name)
- else print("NPC created without a name! They won't be able to open doors!") end
-
- if self.OnSpawn then self.OnSpawn(self) end
-
- self:SetMoveType(MOVETYPE_NONE)
- self:PhysicsInit(SOLID_OBB)
- self:SetSolid(SOLID_VPHYSICS)
-
- constraint.Weld(self,game.GetWorld(),0,0,0,true,true)
-
-end
-
-function ENT:PhysicsCollide(coldata,obj)
- print("Physics collide detected")
- if self.OnHit then self.OnHit(coldata,obj) end
-end
diff --git a/entities/entities/art_serverchanger/shared.lua b/entities/entities/art_serverchanger/shared.lua
deleted file mode 100644
index b7fc605..0000000
--- a/entities/entities/art_serverchanger/shared.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-ENT.Base = "base_entity"
-ENT.Type = "anim"
-//WS stuff
-ENT.Drops = nil
-ENT.OnDammage = nil
-ENT.Speed = 0
-ENT.Model = nil
-
-ENT.Behave = nil
-ENT.Act = nil
-
-/*---------------------------------------------------------
- Name: OnRemove
- Desc: Called just before entity is deleted
----------------------------------------------------------*/
-function ENT:OnRemove()
-end
-
-function ENT:Use()
-
-end