summaryrefslogtreecommitdiff
path: root/gamemode/cl_hud/draw_blockhud.lua
diff options
context:
space:
mode:
authorApickx <Apickx@cogarr.org>2015-12-28 19:18:30 -0500
committerApickx <Apickx@cogarr.org>2015-12-28 19:18:30 -0500
commit868e729d68b5913716bfe5ddb512f4099851e9a2 (patch)
tree6441108754145dfd68a6e23bea382b5cb1ab63d5 /gamemode/cl_hud/draw_blockhud.lua
downloadgearfox-master.tar.gz
gearfox-master.tar.bz2
gearfox-master.zip
Initial commitHEADmaster
Diffstat (limited to 'gamemode/cl_hud/draw_blockhud.lua')
-rw-r--r--gamemode/cl_hud/draw_blockhud.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/gamemode/cl_hud/draw_blockhud.lua b/gamemode/cl_hud/draw_blockhud.lua
new file mode 100644
index 0000000..9aa4994
--- /dev/null
+++ b/gamemode/cl_hud/draw_blockhud.lua
@@ -0,0 +1,9 @@
+local Blocks = {}
+
+function GM:AddBlockCHud(Str)
+ if (!table.HasValue(Blocks,Str)) then table.insert(Blocks,Str) end
+end
+
+hook.Add( "HUDShouldDraw", "ShouldDraw", function( name )
+ if (table.HasValue(Blocks,name)) then return false end
+end) \ No newline at end of file