• Disabling the killfeed for everyone.
    10 replies, posted
I know I post here for support a lot, but I always get answers, today, i'd like to disable the killfeed for everyone, because I find it ruins RP. I'm talking about this thing - [IMG]http://img693.imageshack.us/img693/9056/killfeedgmod.png[/IMG] I know about the [I]hud_deathnotice_time 0[/I] command, but that seems to only work for the client who entered it into their dev console, i've also tried adding it into my server.cfg in the form of [I]hud_deathnotice_time 0[/I] and also [I]hud_deathnotice_time "0"[/I] to no avail. Is there any way at all I can do this?
You gotta edit sandbox/gamemode/cl_deathnotice.lua
[QUOTE=Robotboy655;43711529]You gotta edit sandbox/gamemode/cl_deathnotice.lua[/QUOTE] I don't have that file :/ [IMG]http://gyazo.com/ff474dcd66dbf0db20f03cd128d03ca9.png[/IMG] I've checked cl_notice.lua but it's not it.
Oh, it probably is in base gamemode, not sandbox. Are you running custom gamemode by chance?
[QUOTE=Robotboy655;43712195]Oh, it probably is in base gamemode, not sandbox. Are you running custom gamemode by chance?[/QUOTE] No i'm not, but i've found the file in the base folder, do I just fully delete it or edit parts of it?
Just to be safe you could probably just comment out the entire file, and if it gives you problems you can uncomment it later. Put /* at the top of the file And */ at the bottom
[QUOTE=3CKS;43712631]Just to be safe you could probably just comment out the entire file, and if it gives you problems you can uncomment it later. Put /* at the top of the file And */ at the bottom[/QUOTE] I did that, got some script errors, fixed them and it's all good now, thanks for the help you guys :)
Just FYI a more portable way would be using the [URL="http://wiki.garrysmod.com/page/GM/HUDShouldDraw"]HUDShouldDraw [/URL]hook. [lua]hook.Add("HUDShouldDraw", "Dont Show Kill Feed", function(hudelement) if hudelement=='CHudDeathNotice' then return false end end[/lua]
[QUOTE=wh1t3rabbit;43717530]Just FYI a more portable way would be using the [URL="http://wiki.garrysmod.com/page/GM/HUDShouldDraw"]HUDShouldDraw [/URL]hook. hook.Add("HUDShouldDraw", "Dont Show Kill Feed", function(hudelement) if hudelement=='CHudDeathNotice' then return false endend [/QUOTE] That won't work because you forgot to add ) in there and GMod draws the deathnotice through Lua, it's not on panel or anything.
[QUOTE=Robotboy655;43717964]That won't work because you forgot to add ) in there and GMod draws the deathnotice through Lua, it's not on panel or anything.[/QUOTE] Yep I missed the ) but what do you mean it won't work because "it's not on panel or anything." ? [editline]30th January 2014[/editline] Mk I've looked through [URL="https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/base/gamemode/cl_init.lua"]cl_init.lua[/URL] and [URL="https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/base/gamemode/cl_deathnotice.lua"]cl_deathnotice.lua[/URL] and yeah, it doesn't call HUDShouldDraw at all which seems really strange as CHudDeathNotice is listed on the wiki info for HUDShouldDraw. I guess that's a mistake and should be removed from the wiki?
It lists all base elements you can disable, this is not the only one that's not working, yet still the hook is called for it.
Sorry, you need to Log In to post a reply to this thread.