Hey guys I am working on a gamemode and I was wondering how would I go about hiding the default scoreboard? Would I do it the same way you hide Health/Ammo? I found these but I don't know if they are what I need:
Gamemode.HUDDrawScoreBoard
Gamemode.ScoreboardShow
Gamemode.ScoreboardHide
thanks for any input!!
if you use them functions, it hides them, and call your own scoreboard.
i think you can do,
[code]
function GM:HUDDrawScoreBoard()
--custom scoreboard code here
return false;
end
[/code]
[QUOTE=jaooe;40949281]i think you can do,
[code]
function GM:HUDDrawScoreBoard()
--custom scoreboard code here
return false;
end
[/code][/QUOTE]
Don't need to return false just overriding
[lua]function GAMEMODE:HUDDrawScoreBoard()
--custom scoreboard code here
end[/lua]
And hide to remove the scoreboard, just don't call :MakePopup or you have to close manually
Would work
Correct me if I'm wrong, but I think you need to return false to disable the default scoreboard from showing.
[QUOTE=jaooe;40949312]Correct me if I'm wrong, but I think you need to return false to disable the default scoreboard from showing.[/QUOTE]
Nope i've done it in mine, i haven't had to use return false, or true.
GAMEMODE: would override the function hook.Add wouldn't
Thanks for the help! So could I technically stick this inside of the GM:HUDDrawScoreboard() and make my edits from there?
[url]http://www.glua.me/bin/?path=/gamemodes/base/gamemode/cl_scoreboard.lua[/url]
I think so
Thanks for the speedy responses everyone I really appreciate it!
Sorry, you need to Log In to post a reply to this thread.