aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/sh_buff.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-10-24 12:12:19 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-10-24 12:12:19 -0400
commit74c7a160da34897ebdf18aaff02b8c9b65809949 (patch)
treedb2a084d02f4acc3d7c99ec20e573101e448aef6 /gamemode/shared/sh_buff.lua
parentd7f44fc24da959658b597e64d842661aa41f6515 (diff)
downloadartery-74c7a160da34897ebdf18aaff02b8c9b65809949.tar.gz
artery-74c7a160da34897ebdf18aaff02b8c9b65809949.tar.bz2
artery-74c7a160da34897ebdf18aaff02b8c9b65809949.zip
Various other updates and bugfixes
Diffstat (limited to 'gamemode/shared/sh_buff.lua')
-rw-r--r--gamemode/shared/sh_buff.lua31
1 files changed, 0 insertions, 31 deletions
diff --git a/gamemode/shared/sh_buff.lua b/gamemode/shared/sh_buff.lua
deleted file mode 100644
index ac46df9..0000000
--- a/gamemode/shared/sh_buff.lua
+++ /dev/null
@@ -1,31 +0,0 @@
---This was probably a mistake
-do return end
-
-local pmeta = FindMetaTable("Player")
-
-pmeta.buffs = {}
-local buffid = 0
-function pmeta:ApplyBuff(buff)
- if self.buffs[buff.type] == nil then
- self.buffs[buff.type] = {}
- end
- local id = buffid
- buffid = buffid + 1
- self.buffs[buff.type][id] = buff
- self.buffs[id] = buff.type
- return id
-end
-
-function pmeta:RemoveBuff(buffid)
- local bufftype = self.buffs[buffid]
- self.buffs[buff.type][buffid] = nil
- self.buffs[buffid] = nil
-end
-
-hook.Add("EntityTakeDamage","arterybuffs",function(ent,info)
-
-end)
-
---[[
- Add buff types here I guess
-]]