Author Topic: Turning off death messages  (Read 1564 times)

I've looked around for the function where these messages originate from but I cannot seem to find it, I want to disable it because when you have so many bots and all of them are being killed, it spams up the chat quite a lot.


So could anyone point me in the right direction towards disabling these messages for bots?(the function that produces them, for example? I've tried quite a few functions now but still cant locate it)

The chat line is produced in the ::onDeath function I'd assume. The only way I could imagine it being 'turned off' would be to rewrite the entire functioin and leave out that one line of code.

There is a function called "handleYourDeath" - Find it.
« Last Edit: July 01, 2008, 08:56:19 AM by IbanZ »

trace(1); in console, then kill yourself. If you dont know what to do next, I'd be surprised :cookieMonster:

I've looked around for the function where these messages originate from but I cannot seem to find it, I want to disable it because when you have so many bots and all of them are being killed, it spams up the chat quite a lot.


So could anyone point me in the right direction towards disabling these messages for bots?(the function that produces them, for example? I've tried quite a few functions now but still cant locate it)
Bots don't generally have a death message, except for the ones in my New Bots Mod and Zombies. I use the AIPlayer::onDeath function I created to call the generic GameConnection::onDeath.

Ah, I'm running your bots mod, that must be causing it(I've worked with bots and this issue never came up before, and I was a bit puzzled as to why it was happening).


Jervan, that was on my list of things to try, but a large number of functions are called when you(or a bot) die(i.e, there's armor::disabled, gameconnection::ondeath, etc.), and I needed to know which one is doing it specifically(also, trace doesn't work out well for me because of the amount of stuff going on at once)

Thanks.

I'll trace and tell you as soon as I have access to BL. I've seen the message function before, just cant remember it exactly.

Wut? Jervan, it(the problem) was resolved :/

Oh... it's just really bugging me that I forgot a function D: