Disconnect message


(jaybird) #1

Just wondering how you send a message to a client that was intentionally disconnected (ban). Shrub has this feature under the CVAR g_dropMsg.


(djmels) #2

Hmm… interested
When you’re editing the source code anyway, I figure you’d get a very good start by doing a Find in all source files for the string “Player kicked”, which is the default message as far as I know, then replacing the bit that sets the message variable or sends the message right away for a bit that checkt wheter a custom CVAR is set, if yes -> get message from cvar, if no -> send default msg. Be sure to check for multiple instances of the action though, ET probably uses multiple actions for things like referee kicking, auto kicking (timeout etc.) and admin kicks (RCON / console).


(jaybird) #3

What I mean with a disconnect message is what’s sent to the client that was kicked when he is no longer connected. I think I need to be a bit more specific in saying I think shrub only implemented this with bans.


(tjw) #4

See Rain’s comments in this thread:

http://splashdamage.com/index.php?name=pnPHPbb2&file=viewtopic&p=86806&sid=41851e408c78accdbd7bb444f2b12ffb#86806