PostDiscussionTeam Based Chams

Posts 110 of 10 · Page 1 of 1
Team Based Chams
Hey Guys, I was wondering if anyone could make a lua for team based chams (ttt)
Red for traitors
Green for innos
Blue for detectives, with names and weapons shown over and under the player
I know this is available in Ahack, but.. Ahack has a lot of code which lags my game.. and i was thinking if it was that simple lua i should be fine


Hope You Can Help!
Quote Originally Posted by anyusername View Post
Hey Guys, I was wondering if anyone could make a lua for team based chams (ttt)
Red for traitors
Green for innos
Blue for detectives, with names and weapons shown over and under the player
I know this is available in Ahack, but.. Ahack has a lot of code which lags my game.. and i was thinking if it was that simple lua i should be fine


Hope You Can Help!
Nice, Where's the code; you coded it?!
local mat = CreateMaterial("******","UnlitGeneric",{["$basetexture"] = "vgui/white_additive",["$ignorez"] = 1})
local mat2 = CreateMaterial("******2","UnlitGeneric",{["$basetexture"] = "vgui/white_additive"})

local depth = {}

local MaterialOverride = render.MaterialOverride
local SetColorModulation = render.SetColorModulation

local function hook4(gm,ply)
if depth[ply] then
MaterialOverride(mat)
SetColorModulation(0,1,0)
else
MaterialOverride(mat2)
SetColorModulation(1,0,0)
end
end

GAMEMODE["PrePlayerDraw"] = hook4

local function hook5(gm,ply)
MaterialOverride()
SetColorModulation(1,1,1)
if depth[ply] then
depth[ply] = false
DrawModel(ply)
end
depth[ply] = true
end

GAMEMODE["PostPlayerDraw"] = hook5
Quote Originally Posted by ExiledStyles View Post
local mat = CreateMaterial("******","UnlitGeneric",{["$basetexture"] = "vgui/white_additive",["$ignorez"] = 1})
local mat2 = CreateMaterial("******2","UnlitGeneric",{["$basetexture"] = "vgui/white_additive"})

local depth = {}

local MaterialOverride = render.MaterialOverride
local SetColorModulation = render.SetColorModulation

local function hook4(gm,ply)
if depth[ply] then
MaterialOverride(mat)
SetColorModulation(0,1,0)
else
MaterialOverride(mat2)
SetColorModulation(1,0,0)
end
end

GAMEMODE["PrePlayerDraw"] = hook4

local function hook5(gm,ply)
MaterialOverride()
SetColorModulation(1,1,1)
if depth[ply] then
depth[ply] = false
DrawModel(ply)
end
depth[ply] = true
end

GAMEMODE["PostPlayerDraw"] = hook5
Fake codens, So fake doesn't do what he ask for!

Quote Originally Posted by *atex View Post
You can't do chams for T's because afaik there is only 2 teams in TTT, base-Innocents and Spectators.

You could however mark the T's that have the T gun's or make a really hard t-bot that detects suspicious behavior in T's and marks them.
You're wrong ply:IsTraitor() is shared, I used to have a traitor hack i made to piss of traitors way back in 2011 when the round starts and tells you who is detective and traitor..
Quote Originally Posted by suchisgood View Post
Fake codens, So fake doesn't do what he ask for!



You're wrong ply:IsTraitor() is shared, I used to have a traitor hack i made to piss of traitors way back in 2011 when the round starts and tells you who is detective and traitor..
Ah thanks for correcting me, I haven't used Lua since 2012 :P
You can't do chams for T's because afaik there is only 2 teams in TTT, base-Innocents and Spectators.

You could however mark the T's that have the T gun's or make a really hard t-bot that detects suspicious behavior in T's and marks them.
Ahack still has those options.. if someone was just able to get only these specific codes from ahack and put it into a new lua.. but i guess things dont work that way?
I prefer hera.
Quote Originally Posted by Function. View Post
I prefer hera.
OK. Tyler Wearing.
Quote Originally Posted by suchisgood View Post
OK. Tyler Wearing.
Tyler Wearing Is The Best Code Ever Made!
Posts 110 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?