garrysmod icon indicating copy to clipboard operation
garrysmod copied to clipboard

Direct GM:AddDeathNotice call replaced by hook.Run

Open CornerPin opened this issue 8 years ago • 6 comments
trafficstars

This will allow to hide death notices by returning any value in the hook.

CornerPin avatar Jun 26 '17 21:06 CornerPin

Fixes https://github.com/Facepunch/garrysmod-issues/issues/2611

Kefta avatar Dec 26 '17 01:12 Kefta

Should I change the use of hook.Run to hook.Call?

CornerPin avatar Mar 26 '18 17:03 CornerPin

No

Kefta avatar Mar 26 '18 18:03 Kefta

Any updates on this? It's still listed as a hook on wiki.

YuRaNnNzZZ avatar Jan 22 '20 14:01 YuRaNnNzZZ

this hook would be useful if someone wanted to do a Half-Life Deathmatch: Source killfeed addon

YuRaNnNzZZ avatar May 13 '20 14:05 YuRaNnNzZZ

I know this is useful to people, but I still want to redo that system to be more dynamic which might include removing that internal method, so I'd rather not add it as a hook just yet.

If all you want is to hide the default killfeed, you could force hud_deathnotice_time to 0 or simply override one of the GM:* methods in that file, even tho that is less than ideal solution.

robotboy655 avatar May 13 '20 15:05 robotboy655