diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-08-09 17:53:52 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-08-09 17:53:52 -0400 |
| commit | d4f197a35c207c9891d3f4dc5e9708af48c935de (patch) | |
| tree | ee8fd3960c3a3fb4ecaf0f62b50d251f007ebaf3 /gamemode/client/cl_npcmap.lua | |
| parent | 2fe3c4551344870e3784733fce2d95027b5c8382 (diff) | |
| download | artery-d4f197a35c207c9891d3f4dc5e9708af48c935de.tar.gz artery-d4f197a35c207c9891d3f4dc5e9708af48c935de.tar.bz2 artery-d4f197a35c207c9891d3f4dc5e9708af48c935de.zip | |
Added some weapons
Diffstat (limited to 'gamemode/client/cl_npcmap.lua')
| -rw-r--r-- | gamemode/client/cl_npcmap.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gamemode/client/cl_npcmap.lua b/gamemode/client/cl_npcmap.lua new file mode 100644 index 0000000..784ca45 --- /dev/null +++ b/gamemode/client/cl_npcmap.lua @@ -0,0 +1,24 @@ + +local drawmap = false +hook.Add( "ScoreboardShow", "ShowNPCMap", function() + print("Showing npc map") + drawmap = true + return true +end ) +hook.Add( "ScoreboardHide", "ShowNPCMap", function() + print("Hiding npc map") + drawmap = false +end ) +local white = Color( 255, 255, 255, 255 ) + +hook.Add( "HUDPaint", "paintsprites", function() + if drawmap then + LocalPlayer().MapIcons = LocalPlayer().MapIcons or {} + cam.Start3D() + for k,v in pairs(LocalPlayer().MapIcons) do + render.SetMaterial( v.material ) + render.DrawSprite( v.pos, 64, 64, white ) + end + cam.End3D() + end +end ) |
