Rune Central http://forums.runequake.com/ |
|
Grenade counter filter http://forums.runequake.com/viewtopic.php?f=9&t=1277 |
Page 1 of 1 |
Author: | Mandel [ Wed Feb 07, 2007 2:54 pm ] |
Post subject: | Grenade counter filter |
Hey, how about an in-game grenade counter filter that could be activated while playing demos? Something like, cl_grenadecounterfilter? Could be good when watching demos from somebody who hasn't bothered to remove the counter before sending in to SDA It's only an idea I got just now |
Author: | Mandel [ Sat Mar 24, 2007 6:27 am ] |
Post subject: | |
I tried this for myself for fun, here's some code. It went into gl_screen.c which must be a mistake... At the top of the file: Code: cvar_t cl_grencounterfilter = {"cl_grencounterfilter", "0"}; Inside SCR_CenterPrint: Code: // grenade counter filter if (cls.demoplayback) { if (cl_grencounterfilter.value != 0) { if (!strncmp(str, "Grenade ", 8) || !strncmp(str, "Ogre-Grenade", 12)) { scr_center_lines = 0; return; } } } And in SCR_Init: Code: Cvar_Register (&cl_grencounterfilter);
You don't have to use it but it seems pretty handy for when we get demos from Basil |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |