daily pastebin goal
55%
SHARE
TWEET

Gmod murder zVision

Zero03 Jan 28th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top