modify - new quickchat menu


(Schubi) #1

Hi!

I’m trying to add some new quickchat-links into the quickchatmenu, but unfortunately the next menulevel won’t work! :frowning: I can see the new link nr. 7 in the mainlevel, but when I press “V” and then “7”, the menu get’s closed! :frowning:

Here’s a picture of the mainlevel:

Did someone have any experiences with the structure of the menu?
Do I need any other files, than the wm_quickmessageAlt.menu?

Here’s my modified quickmessage-menu-source.

Thanks for help!!!


(Hewster) #2

Hi,

I presume you are talking about ET ?

I only have knowledge about RtCW… so this is how to-do it in Wolf:
First add your new sound into the sound/voice/multi and multi_axis
folders, then add your new menu code into wm_quickmessage &
wm_quickmessageAlt menu files (in ui_mp)

An example:

	itemDef {
		name			"window"
		visible			1
		rect			10 120 128 16 // This is the position in the pop_up window
		origin			ORIGIN_QUICKMESSAGE
		forecolor		1 1 1 1
		backcolor		0 0 0 0
		textfont	UI_FONT_NORMAL
		textscale	.25
		textalign		ITEM_ALIGN_LEFT
		text			"7. New Voice Chat" // The text to be displayed
		decoration
		group			ingamebox
	}
	execKey "7" { exec "VoiceChat mynewvoicechat"; close altwm_quickglobal } // The new vsay command
}

You should also edit the Alt menu with a “key” instaed of a number,
for players who use the alternate way of vchatting

Now edit the wm_allies_chat.voice & wm_axis_chat.voice files, which are
found in your scripts folder… an example:


mynewvoicechat
{
	sound/voice/multi/a-mynewvoicechat1.wav "Oh yeah a new voice chat"	sprites/new_char_icon
	sound/voice/multi/a-mynewvoicechat2.wav "Oh yeah a new voice chat"	sprites/new_char_icon
	sound/voice/multi/a-mynewvoicechat3.wav "Oh yeah a new voice chat"	sprites/new_char_icon
}

Note you CAN add more than 1 version of the vchat, the game will pick
one at random, also note you CAN add a sprite to be displaed above the
players head when they say it too, although neither is necessary.

And thas it, I don’t think I’ve missed anything… let me know if you get it
working

Hewster


(HerrK) #3

No he works on a mod for RtCW, so your knowledge is exactly right! :slight_smile:

(NdK) :wink:


(Hewster) #4

No he works on a mod for RtCW, so your knowledge is exactly right! :slight_smile:

(NdK) ;)[/quote]

:smiley:

btw, I just noticed that the post has moved the sprite image text to a new
line in the “wm_axis_chat.voice files” example… if you use a sprite,
this text should be on the same line as the .wav file reference.


(Schubi) #5

Hi Hewster! Thanks for your quick response and your help!

Ok - got everything fine working! Now the germans can say “They smell like cheese!” lol Only had a wrong word in the old file (first post): “close” isn’t “open”! :slight_smile:

I modified the “wm_quickmessageAlt.menu” and the “wm_axis_chat.voice” and “wm_allies_chat.voice” and everything is working - without the “wm_quickmessage.menu” !!!???

Do I need the the “wm_quickmessage.menu”? What is the different between “wm_quickmessage.menu” and “wm_quickmessageAlt.menu” ??