Advertisement
PlayersZero

Gmod murder zVision

Jan 28th, 2019
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. hook.Add( "PreDrawHalos", "zVision", function()
  2.     local gm = gmod.GetGamemode()
  3.     if gm != "murder" then return end
  4.     local murderer = GAMEMODE:GetAmMurderer()
  5.     local numLive = numLive or {}
  6.     local LiveTbl = LiveTbl or {}
  7.     for k, v in ipairs(team.GetPlayers(2)) do
  8.         if v:Alive() then
  9.             table.insert(numLive, v)
  10.             table.insert(LiveTbl, v)
  11.         end
  12.     end
  13.     if murderer then
  14.         if #numLive <= 4 then
  15.             /*
  16.             replace this number with however many people you want to be left alive to show positions, the murderer counts as being alive, so add 1 to this value. For example, if you want the last 3 players alive to show up through walls, make the value 4
  17.             */
  18.         halo.Add( LiveTbl, Color( 255, 165, 0 ), 0, 0, 2, true, true )
  19.         end
  20.     end
  21. end)
  22. //Made by Zero, with help from Fafy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement