diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-04-22 13:30:31 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-04-22 13:30:31 -0400 |
| commit | d68125b0c2252d510758720a351f6aa8e6bf9278 (patch) | |
| tree | edc4b5e4ee18edbe5100ca7227fe533e25e5758c /entities | |
| parent | 92ae79aaa5dee98293d0380f7f647b8da9c309a0 (diff) | |
| download | gmstranded-d68125b0c2252d510758720a351f6aa8e6bf9278.tar.gz gmstranded-d68125b0c2252d510758720a351f6aa8e6bf9278.tar.bz2 gmstranded-d68125b0c2252d510758720a351f6aa8e6bf9278.zip | |
Fixed folder nameing so the gamemode can be tested
Diffstat (limited to 'entities')
| -rw-r--r-- | entities/entities/gms_furnace_generic.lua | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/entities/entities/gms_furnace_generic.lua b/entities/entities/gms_furnace_generic.lua new file mode 100644 index 0000000..1ca2f99 --- /dev/null +++ b/entities/entities/gms_furnace_generic.lua @@ -0,0 +1,45 @@ + +AddCSLuaFile() + +ENT.Base = "gms_base_entity" + +function ENT:Initialize() + if(CLIENT) then + self:InitalizeClient() + end + if(SERVER) then + self:InitalizeServer() + end + self:InitalizeShared(); +end + +function ENT:InitalizeClient() + +end + +function ENT:InitalizeServer() + +end + +function ENT:InitalizeShared() + --{"field",function,default} + local init_table = { + {"model",self:SetModel,nil}, + {"color",self:SetColor,nil}, + {"movetype",self:SetMoveType,MOVETYPE_VPHYSICS}, + {"solidtype",self:SetSolid,SOLID_VPHYSICS}, + } + + for k,v in pairs(init_table) do + if (self[v[1]]) then + v[2]:self[v[1]] + elseif (v[3] != nil) then + v[2]:self[v[3]] + end + end + +end + +function ENT:OnUse( ply ) + ply:OpenCombiMenu( "gms_copperfurnace" ) +end |
