UE2 - UT2kX In-game messages

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Cadaver

New Member
Feb 9, 2011
102
0
0
So, I don't know how to do this, but I think this is totally makeable.

Do you know where a player got "an anheurism"? When it happens, a small green message appears. Can I modify this, to make that character's portrait is shown and an audio message appears?

Thanks :)
 

Cadaver

New Member
Feb 9, 2011
102
0
0
No one knows something about this?
Maybe something about messages and portrait displayed... give me some link! lol
 

meowcat

take a chance
Jun 7, 2001
803
3
18
That message is from the 'Suicided' damage type. I'm not quite sure whose portrait you would want to display (the killer, victim etc.) but you might be able to handle this by adding some classes via a mutator.

class GameInfo tells the BroadcastHandler to broadcast the kill messages. BroadcastHandler takes that info and passes it to the pertinent playercontroller via the ReceiveLocalizedMessage function. This function then may post the message to the player's console, but also sends the message received notification to the player's HUD via calling 'Message.static.ClientReceive'. It is then up to the HUD to draw the message.

You can then browse through the HudBase and HUDCDeathMatch classes to see how portraits are drawn for when other players/bots are talking. You would need to do something like that for death messages.

Without replacing the HUD, there may not be a real way to do this cleanly. You could use a custom HUDoverlay, or perhaps better a custom interaction (since they appear to receive messages directly) to do the drawing of the portrait.
 

Cadaver

New Member
Feb 9, 2011
102
0
0
^^^
Thanks for the answer, now I understand... I was hoping that I needed to change only some .int files... :) Thanks anyway.
 

Cadaver

New Member
Feb 9, 2011
102
0
0
I tried to do something but nothing happened.

Actually I want to make all messages under the tab "TAUNT" displays portrait character and makes a command like "say: MESSAGE". In short I need to make the tab TAUNT like the tab ORDER or OTHER.
This is possible, I know it... but how?