Ulysses Stuff > Releases
Fakename - Go Undercover!
McSniper121:
--- Quote from: Aaron113 on April 22, 2015, 09:51:45 AM ---It will hide your name from the scoreboard and anywhere else other than the default chatbox (it must use some engine name method or something). It will hide your team from any scoreboard that uses UTeam, but if it doesn't use UTeam, you will have to modify it to work with this addon. For example, that scoreboard mentioned above seems to use IsAdmin and IsSuperAdmin for rank setting (didn't look thoroughly). To fix it, you would have to use one of the functions I built into this addon such as Player:GetFakegroup().
To make this addon flawless, I would have to consider too many different scenarios. This is completely unrealistic for me as a developer. So, your job as a server owner, is to make it compatible with what addons you wish. The server that I worked with had everything custom coded without a single addon. All 100% their/my code. This made it easy because you can just change everything to work with the fakename. Without modifying every release to work with my addon, it will never work with everything unless you make it.
This is mostly being considerate of ULib's ranks. I can't change what group the server sees you as without completely removing all your access as well.
--- End quote ---
Awesome thanks!
Neku:
Include meta:Name() too. That'll most likely fix that TTT problem.
Edit: Here's a reference: https://github.com/NekuMitsurugi/Simple-Nickname-Functions/blob/master/lua/autorun/neko_nickname_sh.lua
Aaron113:
--- Quote from: Neku on April 23, 2015, 10:07:35 PM ---Include meta:Name() too. That'll most likely fix that TTT problem.
Edit: Here's a reference: https://github.com/NekuMitsurugi/Simple-Nickname-Functions/blob/master/lua/autorun/neko_nickname_sh.lua
--- End quote ---
Ohhh, I got you. Name just points to the Nick function... For some reason, I thought replacing Nick would also make Name point to the new function. I should have realized that, I just wasn't thinking. I'll fix it tomorrow.
Zoeo:
--- Quote from: Neku on April 23, 2015, 10:07:35 PM ---Include meta:Name() too. That'll most likely fix that TTT problem.
Edit: Here's a reference: https://github.com/NekuMitsurugi/Simple-Nickname-Functions/blob/master/lua/autorun/neko_nickname_sh.lua
--- End quote ---
What TTT problem would this fix exactly?
If it's the kicking the person for changing name during round, it doesn't sadly :\
Zoeo:
If anyone wants to fix the issue with not hiding your name from chat.
Find function meta:IsFakenamed() and put this below it (Not in the function, below the function):
--- Code: ---local function AddFakeNameText( ply, text )
if ply:Alive() and not ply:IsSpec() and not ply:IsActiveDetective() then
chat.AddText( Color( 0, 200, 0 ),
ply:Nick(),
color_white,
": " .. text )
end
if ply:Alive() and ply:IsActiveDetective() then
chat.AddText( Color( 50, 200, 255 ),
ply:Nick(),
color_white,
": " .. text )
end
if ply:IsSpec() and not ply:IsDeadTerror() then
chat.AddText( Color( 24, 161, 35 ),
Format( "(%s) ", string.upper( "team" ) ),
Color( 200, 200, 0 ),
ply:Nick(),
color_white,
": " .. text )
end
if ply:IsDeadTerror() then
chat.AddText( Color( 255, 30, 40 ),
Format( "*%s* ", string.upper( "dead" ) ),
Color( 24, 161, 35 ),
Format( "(%s) ", string.upper( "team" ) ),
Color( 200, 200, 0 ),
ply:Nick(),
color_white,
": " .. text )
end
end
hook.Add( "OnPlayerChat", "Fake_Chatname", function( ply, text, teamchat, dead )
if IsValid( ply ) and ply:IsFakenamed() then
AddFakeNameText( ply, text )
return true
end
end )
--- End code ---
Not sure if this is the best way to fix it, but it's the way I've found so far that works. This will work but when you're a spectator it will always say (TEAM)[fake name]: [message] regardless of whether you say it in team chat or not. Same goes for player chat it will always say [fake name]: [message] even if you use team chat (Pre round only, when you're a detective or traitor is will say what it normally says when you're unfakenamed).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version