Nice feature

Everything todo with programming goes HERE.
Post Reply
Sniperiid
On Lightcycle Grid
Posts: 23
Joined: Thu Mar 17, 2005 6:16 pm
Location: Why should I tell?
Contact:

Nice feature

Post by Sniperiid »

Hey all,

I have got a pretty nice feature. When a player is dead and chats it says:

*DEAD*someplayer: somemessage

If not dead, says:
someplayer: somemessage

To be able to do this you must get the newest CVS or in ePlayer.cpp, function se_DisplayChatLocallyClient replace what is in there with:

Code: Select all

if( p->Object() && p->Object()->Alive() )
{
   cout << message << "\n";
}
   else
{
   cout << tOutput("$console_dead_player_prefix") << message << "\n";
}
This is tested only with Armagetron Advanced 0.2.8.0_rc3 :)
Add in your english_base.txt on the last line ( on FC4 can be found at /usr/local/share/games/armagetronad/language/ ) this:

console_dead_player_prefix 0xff0000*DEAD*

Have fun!
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

This works fine in the CVS version, although I still have to find a use for it myself.

For some reson it doesn't seem to work with team messages you send yourself, maybe they get generated lokally and not sent back by the server.
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

Heh, not sure that's a big problem. YOu should know if you're dead. :)
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
Post Reply