Class specific sounds


(Ryan) #1

I am trying to make a chat menu, that instead of when you press v6, where you hear a class related function audiofile, to open a class related chat menu.

So that each class has its own *special sounds:

This is the code I have so far:
EDIT: Look in my next post for the codes

I use the same codes for the wm_quickmessageAlt and wm_ftquickmessageAlt.
(I changed this now, look down for new code)

open wm_PlayerClass
wm_Soldier
wm_Medic
wm_Engineer
wm_FieldOps
wm_CovertOps

Got this idea from the wm_limbo (RtCW)
When you choose your playerclass you get this code:

uiScript wm_pickitem2 WM_SELECT_CLASS WM_SOLDIER;

(Elite) #2

Looks like you need to edit the quickmessagealt menu instead. This file uses letters rather than numbers to display menus. Basically, you have used letter’s in this file rather than numbers as well, and it is doing exactly as it should, nothing, when you press v6.


(Ryan) #3

Ok thanks for the reply.
Here are the new codes:

wm_ftquickmessage


	#include "ui/menudef.h"

	#define DEFAULT_TEXT_SCALE 0.25

	#define ORIGIN_QUICKMESSAGE		10 10

	#define QM_MENU_GRADIENT_START_OFFSET

	#define QM_MENU_START( WINDOWNAME )																				\
																										\
menuDef {																									\
	name		WINDOWNAME																						\
	visible		0																						\
	fullscreen	0																							\
	rect		0 100 640 380																					\
	onOpen		{ setCvar cl_bypassMouseInput "1" }																	\
	onClose		{ setCvar cl_bypassMouseInput "0" }																	\
	onEsc		{ closeAll }																					\
																										\
	itemDef {																								\
		name		"window"																					\
		rect		0 19 204 136																				\
		origin		ORIGIN_QUICKMESSAGE																		\
		style		WINDOW_STYLE_FILLED																			\
		backcolor	0 0 0 .75																					\
		border		WINDOW_BORDER_FULL																		\
		bordercolor	.5 .5 .5 .5																					\
		visible		1																					\
		decoration																							\
	}																									\
																										\
	itemDef {																								\
		name		"windowtitle"																				\
		rect		$evalfloat((0)+2) $evalfloat((19)+2) $evalfloat((204)-4) 12													\
		origin		ORIGIN_QUICKMESSAGE																		\
		text		"MESSAGE"																					\
		textfont	UI_FONT_ARIBLK_16																				\
		textscale	.19																						\
		textalignx	3																						\
		textaligny	10																						\
		style		WINDOW_STYLE_FILLED																			\
		backcolor	.16 .2 .17 .8																				\
		forecolor	.6 .6 .6 1																					\
		visible		1																					\
		decoration																							\
	}

	#define QM_MENU_END }

	#define QM_MENU_ITEM( WINDOWTEXT, ACTION, KEY, POS )								\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
    execKey KEY { ACTION }

	#define QM_MENU_ITEM_TEAM( WINDOWTEXT, ACTION, KEY, POS )							\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
	execKey KEY { ACTION }

QM_MENU_START( "wm_ftquickmessage" )

	QM_MENU_ITEM_TEAM( 	"S. Statements", 		close wm_ftquickmessage; 		open wm_ftquickstatements, 	"s", 0 )
	QM_MENU_ITEM_TEAM( 	"R. Requests", 		close wm_ftquickmessage; 		open wm_ftquickrequests, 	"r", 1 )
	QM_MENU_ITEM_TEAM( 	"C. Commands", 		close wm_ftquickmessage; 		open wm_ftquickcommand, 	"c", 2 )
	QM_MENU_ITEM_TEAM( 	"T. Talk",		 	close wm_ftquickmessage;	 	open wm_ftquickmisc, 		"t", 3 )
	QM_MENU_ITEM( 		"G. Global",	 	close wm_ftquickmessage; 		open wm_ftquickglobal, 		"g", 4 )
	QM_MENU_ITEM_TEAM( 	"F. Function", 		close wm_ftquickmessage;		open wm_ftPlayerClass, 		"f", 5 )
	QM_MENU_ITEM_TEAM( 	"O. Objectives", 		close wm_ftquickmessage; 		open wm_ftquickobjectives, 	"o", 6 )

QM_MENU_END

QM_MENU_START( "wm_ftquickstatements" )

	QM_MENU_ITEM_TEAM( "P. Path Cleared.", 		exec "VoiceFireteamChat PathCleared"; 		close wm_ftquickstatements,	"p", 0 )
	QM_MENU_ITEM_TEAM( "W. Enemy Weak!", 		exec "VoiceFireteamChat EnemyWeak"; 		close wm_ftquickstatements,	"w", 1 )
	QM_MENU_ITEM_TEAM( "C. All Clear", 			exec "VoiceFireteamChat AllClear"; 			close wm_ftquickstatements,	"c", 2 )
	QM_MENU_ITEM_TEAM( "I. Incoming", 			exec "VoiceFireteamChat Incoming"; 			close wm_ftquickstatements,	"i", 3 )
	QM_MENU_ITEM_TEAM( "F. Fire In The Hole!", 	exec "VoiceFireteamChat FireInTheHole";		close wm_ftquickstatements,	"f", 4 )
	QM_MENU_ITEM_TEAM( "D. I'm Defending.", 		exec "VoiceFireteamChat OnDefense"; 		close wm_ftquickstatements,	"d", 5 )
	QM_MENU_ITEM_TEAM( "A. I'm Attacking.", 		exec "VoiceFireteamChat OnOffense"; 		close wm_ftquickstatements,	"a", 6 )
	QM_MENU_ITEM_TEAM( "T. Taking Fire!", 		exec "VoiceFireteamChat TakingFire"; 		close wm_ftquickstatements,	"t", 7 )
	QM_MENU_ITEM_TEAM( "M. Mines Cleared", 		exec "VoiceFireteamChat MinesCleared"; 		close wm_ftquickstatements,	"m", 8 )
	QM_MENU_ITEM_TEAM( "E. Enemy Disguised", 		exec "VoiceFireteamChat EnemyDisguised";		close wm_ftquickstatements,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftquickrequests" )

	QM_MENU_ITEM_TEAM( "M. Need Medic!", 		exec "VoiceFireteamChat Medic"; 		close wm_ftquickrequests,	"m", 0 )
	QM_MENU_ITEM_TEAM( "A. Need Ammo!", 		exec "VoiceFireteamChat NeedAmmo"; 		close wm_ftquickrequests,	"a", 1 )
	QM_MENU_ITEM_TEAM( "B. Need Backup!", 		exec "VoiceFireteamChat NeedBackup"; 	close wm_ftquickrequests,	"b", 2 )
	QM_MENU_ITEM_TEAM( "E. Need Engineer!", 		exec "VoiceFireteamChat NeedEngineer"; 	close wm_ftquickrequests,	"e", 3 )
	QM_MENU_ITEM_TEAM( "C. Cover Me!", 			exec "VoiceFireteamChat CoverMe"; 		close wm_ftquickrequests,	"c", 4 )
	QM_MENU_ITEM_TEAM( "H. Hold Fire!",			exec "VoiceFireteamChat HoldFire";	 	close wm_ftquickrequests, 	"h", 5 )
	QM_MENU_ITEM_TEAM( "W. Where To?", 			exec "VoiceFireteamChat WhereTo"; 		close wm_ftquickrequests,	"w", 6 )
	QM_MENU_ITEM_TEAM( "O. Need Covert Ops!", 	exec "VoiceFireteamChat NeedOps"; 		close wm_ftquickrequests,	"o", 7 )

QM_MENU_END

QM_MENU_START( "wm_ftquickcommand" )

	QM_MENU_ITEM_TEAM( "F. Follow Me!", 		exec "VoiceFireteamChat FollowMe"; 			close wm_ftquickcommand, 	"f", 0 )
	QM_MENU_ITEM_TEAM( "G. Let's Go!", 			exec "VoiceFireteamChat LetsGo"; 			close wm_ftquickcommand, 	"g", 1 )
	QM_MENU_ITEM_TEAM( "M. Move!", 			exec "VoiceFireteamChat Move"; 			close wm_ftquickcommand, 	"m", 2 )
	QM_MENU_ITEM_TEAM( "C. Clear The Path!", 		exec "VoiceFireteamChat ClearPath"; 		close wm_ftquickcommand, 	"c", 3 )
	QM_MENU_ITEM_TEAM( "O. Defend Objective!", 	exec "VoiceFireteamChat DefendObjective"; 	close wm_ftquickcommand, 	"o", 4 )
	QM_MENU_ITEM_TEAM( "D. Disarm Dynamite!", 	exec "VoiceFireteamChat DisarmDynamite"; 		close wm_ftquickcommand, 	"d", 5 )
	QM_MENU_ITEM_TEAM( "N. Clear Mines!", 		exec "VoiceFireteamChat ClearMines"; 		close wm_ftquickcommand, 	"n", 6 )
	QM_MENU_ITEM_TEAM( "R. Reinforce Offense", 	exec "VoiceFireteamChat ReinforceOffense"; 	close wm_ftquickcommand,	"r", 7 )
	QM_MENU_ITEM_TEAM( "E. Reinforce Defense", 	exec "VoiceFireteamChat ReinforceDefense"; 	close wm_ftquickcommand,	"e", 8 )

QM_MENU_END

QM_MENU_START( "wm_ftquickmisc" )

	QM_MENU_ITEM_TEAM( "Y. Yes",				exec "VoiceFireteamChat Affirmative"; 	close wm_ftquickmisc, "y", 0 )
	QM_MENU_ITEM_TEAM( "N. No",				exec "VoiceFireteamChat Negative"; 		close wm_ftquickmisc, "n", 1 )
	QM_MENU_ITEM_TEAM( "T. Thanks",			exec "VoiceFireteamChat Thanks"; 		close wm_ftquickmisc, "t", 2 )
	QM_MENU_ITEM_TEAM( "W. Welcome",			exec "VoiceFireteamChat Welcome"; 		close wm_ftquickmisc, "w", 3 )
	QM_MENU_ITEM_TEAM( "S. Sorry",			exec "VoiceFireteamChat Sorry"; 		close wm_ftquickmisc, "s", 4 )
	QM_MENU_ITEM_TEAM( "O. Oops", 			exec "VoiceFireteamChat Oops"; 		close wm_ftquickmisc, "o", 5 )

QM_MENU_END

QM_MENU_START( "wm_ftquickglobal" )

	QM_MENU_ITEM( "Y. Yes",				exec "VoiceChat Affirmative"; 	close wm_ftquickglobal, 	"y", 0 )
	QM_MENU_ITEM( "N. No",				exec "VoiceChat Negative"; 		close wm_ftquickglobal, 	"n", 1 )
	QM_MENU_ITEM( "W. Enemy Weak",		exec "VoiceChat EnemyWeak";		close wm_ftquickglobal, 	"w", 2 )
	QM_MENU_ITEM( "H. Hi",				exec "VoiceChat Hi"; 			close wm_ftquickglobal, 	"h", 3 )
	QM_MENU_ITEM( "B. Bye",				exec "VoiceChat Bye"; 			close wm_ftquickglobal, 	"b", 4 )
	QM_MENU_ITEM( "S. Great Shot",		exec "VoiceChat GreatShot"; 		close wm_ftquickglobal, 	"s", 5 )
	QM_MENU_ITEM( "C. Cheer",			exec "VoiceChat Cheer"; 		close wm_ftquickglobal, 	"c", 6 )
	QM_MENU_ITEM( "G. More Globals",		close wm_ftquickglobal;			open wm_ftquickglobal2, 	"g", 7 )

QM_MENU_END

QM_MENU_START( "wm_ftquickglobal2" )

	QM_MENU_ITEM( "T. Thanks",		exec "VoiceChat Thanks";	close wm_ftquickglobal2, 	"t", 0 )
	QM_MENU_ITEM( "W. Welcome",		exec "VoiceChat Welcome"; 	close wm_ftquickglobal2, 	"w", 1 )
	QM_MENU_ITEM( "O. Oops",		exec "VoiceChat Oops"; 		close wm_ftquickglobal2, 	"o", 2 )
	QM_MENU_ITEM( "S. Sorry",		exec "VoiceChat Sorry"; 	close wm_ftquickglobal2, 	"s", 3 )
	QM_MENU_ITEM( "H. Hold Fire!",	exec "VoiceChat HoldFire";	close wm_ftquickglobal2, 	"h", 4 )
	QM_MENU_ITEM( "G. Good Game",		exec "VoiceChat GoodGame";	close wm_ftquickglobal2, 	"g", 5 )

QM_MENU_END

QM_MENU_START( "wm_ftSoldier" )

	QM_MENU_ITEM_TEAM( "A. I am Soldier",			exec "wm_ftsayPlayerClass";	 				close wm_ftPlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_ftPlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_ftPlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_ftPlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_ftPlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_ftPlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_ftPlayerClass, "m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_ftPlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_ftPlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_ftPlayerClass,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftMedic" )

	QM_MENU_ITEM_TEAM( "A. I am Medic",				exec "wm_ftsayPlayerClass";	 				close wm_ftPlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_ftPlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_ftPlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_ftPlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_ftPlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_ftPlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_ftPlayerClass,	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_ftPlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_ftPlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_ftPlayerClass,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftEngineer" )

	QM_MENU_ITEM_TEAM( "A. I am Engineer",			exec "wm_ftsayPlayerClass";	 				close wm_ftPlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_ftPlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_ftPlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_ftPlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_ftPlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_ftPlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_ftPlayerClass,	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_ftPlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_ftPlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_ftPlayerClass,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftFieldOps" )

	QM_MENU_ITEM_TEAM( "A. I am FieldOps",			exec "wm_ftsayPlayerClass";	 				close wm_ftPlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_ftPlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_ftPlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_ftPlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_ftPlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_ftPlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_ftPlayerClass,	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_ftPlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_ftPlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_ftPlayerClass,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftCovertOps" )

	QM_MENU_ITEM_TEAM( "A. I am CovertOps",			exec "wm_ftsayPlayerClass";	 				close wm_ftPlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_ftPlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_ftPlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_ftPlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_ftPlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_ftPlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_ftPlayerClass,	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_ftPlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_ftPlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_ftPlayerClass,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftquickobjectives" )

	QM_MENU_ITEM_TEAM( "A. Command Acknowledged",		exec "VoiceFireteamChat CommandAcknowledged"; 		close wm_ftquickobjectives,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceFireteamChat CommandDeclined";			close wm_ftquickobjectives,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceFireteamChat CommandCompleted";		close wm_ftquickobjectives,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceFireteamChat DestroyPrimary"; 			close wm_ftquickobjectives,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceFireteamChat DestroySecondary";		close wm_ftquickobjectives,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceFireteamChat DestroyConstruction";		close wm_ftquickobjectives,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceFireteamChat ConstructionCommencing";	close wm_ftquickobjectives, 	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceFireteamChat RepairVehicle";			close wm_ftquickobjectives,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceFireteamChat DestroyVehicle";			close wm_ftquickobjectives,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceFireteamChat EscortVehicle";			close wm_ftquickobjectives,	"e", 9 )

QM_MENU_END


(Ryan) #4

wm_ftquickmessageAlt


	#include "ui/menudef.h"

	#define DEFAULT_TEXT_SCALE 0.25

	#define ORIGIN_QUICKMESSAGE		10 10

	#define QM_MENU_GRADIENT_START_OFFSET

	#define QM_MENU_START( WINDOWNAME )																				\
																										\
menuDef {																									\
	name		WINDOWNAME																						\
	visible		0																						\
	fullscreen	0																							\
	rect		0 100 640 380																					\
	onOpen		{ setCvar cl_bypassMouseInput "1" }																	\
	onClose		{ setCvar cl_bypassMouseInput "0" }																	\
	onEsc		{ closeAll }																					\
																										\
	itemDef {																								\
		name		"window"																					\
		rect		0 19 204 136																				\
		origin		ORIGIN_QUICKMESSAGE																		\
		style		WINDOW_STYLE_FILLED																			\
		backcolor	0 0 0 .75																					\
		border		WINDOW_BORDER_FULL																		\
		bordercolor	.5 .5 .5 .5																					\
		visible		1																					\
		decoration																							\
	}																									\
																										\
	itemDef {																								\
		name		"windowtitle"																				\
		rect		$evalfloat((0)+2) $evalfloat((19)+2) $evalfloat((204)-4) 12													\
		origin		ORIGIN_QUICKMESSAGE																		\
		text		"MESSAGE"																					\
		textfont	UI_FONT_ARIBLK_16																				\
		textscale	.19																						\
		textalignx	3																						\
		textaligny	10																						\
		style		WINDOW_STYLE_FILLED																			\
		backcolor	.16 .2 .17 .8																				\
		forecolor	.6 .6 .6 1																					\
		visible		1																					\
		decoration																							\
	}

	#define QM_MENU_END }

	#define QM_MENU_ITEM( WINDOWTEXT, ACTION, KEY, POS )								\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
    execKey KEY { ACTION }

	#define QM_MENU_ITEM_TEAM( WINDOWTEXT, ACTION, KEY, POS )							\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
	execKey KEY { ACTION }

QM_MENU_START( "wm_ftquickmessageAlt" )

	QM_MENU_ITEM_TEAM( 	"1. Statements", 		close wm_ftquickmessageAlt; 	open wm_ftquickstatements_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( 	"2. Requests", 		close wm_ftquickmessageAlt; 	open wm_ftquickrequests_alt, 		"2", 1 )
	QM_MENU_ITEM_TEAM( 	"3. Commands", 		close wm_ftquickmessageAlt; 	open wm_ftquickcommand_alt, 		"3", 2 )
	QM_MENU_ITEM_TEAM( 	"4. Talk",		 	close wm_ftquickmessageAlt; 	open wm_ftquickmisc_alt, 		"4", 3 )
	QM_MENU_ITEM( 		"5. Global",	 	close wm_ftquickmessageAlt; 	open wm_ftquickglobal_alt, 		"5", 4 )
	QM_MENU_ITEM_TEAM( 	"6. Function", 		close wm_ftquickmessageAlt;	open wm_ftPlayerClass_alt,		"6", 5 )
	QM_MENU_ITEM_TEAM( 	"7. Objectives", 		close wm_ftquickmessageAlt; 	open wm_ftquickobjectives_alt, 	"7", 6 )

QM_MENU_END

QM_MENU_START( "wm_ftquickstatements_alt" )

	QM_MENU_ITEM_TEAM( "1. Path Cleared.", 		exec "VoiceFireteamChat PathCleared"; 		close wm_ftquickstatements_alt,	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Enemy Weak!", 		exec "VoiceFireteamChat EnemyWeak"; 		close wm_ftquickstatements_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. All Clear", 			exec "VoiceFireteamChat AllClear"; 			close wm_ftquickstatements_alt,	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Incoming", 			exec "VoiceFireteamChat Incoming"; 			close wm_ftquickstatements_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Fire In The Hole!", 	exec "VoiceFireteamChat FireInTheHole"; 		close wm_ftquickstatements_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. I'm Defending.", 		exec "VoiceFireteamChat OnDefense"; 		close wm_ftquickstatements_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. I'm Attacking.", 		exec "VoiceFireteamChat OnOffense"; 		close wm_ftquickstatements_alt,	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Taking Fire!", 		exec "VoiceFireteamChat TakingFire"; 		close wm_ftquickstatements_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Mines Cleared", 		exec "VoiceFireteamChat MinesCleared"; 		close wm_ftquickstatements_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Enemy Disguised", 		exec "VoiceFireteamChat EnemyDisguised";		close wm_ftquickstatements_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftquickrequests_alt" )

	QM_MENU_ITEM_TEAM( "1. Need Medic!", 		exec "VoiceFireteamChat Medic"; 		close wm_ftquickrequests_alt,	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Need Ammo!", 		exec "VoiceFireteamChat NeedAmmo"; 		close wm_ftquickrequests_alt,	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Need Backup!", 		exec "VoiceFireteamChat NeedBackup"; 	close wm_ftquickrequests_alt,	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Need Engineer!", 		exec "VoiceFireteamChat NeedEngineer"; 	close wm_ftquickrequests_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Cover Me!", 			exec "VoiceFireteamChat CoverMe"; 		close wm_ftquickrequests_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Hold Fire!",			exec "VoiceFireteamChat HoldFire";	 	close wm_ftquickrequests_alt, "6", 5 )
	QM_MENU_ITEM_TEAM( "7. Where To?", 			exec "VoiceFireteamChat WhereTo"; 		close wm_ftquickrequests_alt,	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Need Covert Ops!", 	exec "VoiceFireteamChat NeedOps"; 		close wm_ftquickrequests_alt,	"8", 7 )

QM_MENU_END

QM_MENU_START( "wm_ftquickcommand_alt" )

	QM_MENU_ITEM_TEAM( "1. Follow Me!", 		exec "VoiceFireteamChat FollowMe"; 			close wm_ftquickcommand_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Let's Go!", 			exec "VoiceFireteamChat LetsGo"; 			close wm_ftquickcommand_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Move!", 			exec "VoiceFireteamChat Move"; 			close wm_ftquickcommand_alt, 	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Clear The Path!", 		exec "VoiceFireteamChat ClearPath"; 		close wm_ftquickcommand_alt, 	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Defend Objective!", 	exec "VoiceFireteamChat DefendObjective"; 	close wm_ftquickcommand_alt, 	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Disarm Dynamite!", 	exec "VoiceFireteamChat DisarmDynamite"; 		close wm_ftquickcommand_alt, 	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Clear Mines!", 		exec "VoiceFireteamChat ClearMines"; 		close wm_ftquickcommand_alt, 	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Reinforce Offense", 	exec "VoiceFireteamChat ReinforceOffense"; 	close wm_ftquickcommand_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Reinforce Defense", 	exec "VoiceFireteamChat ReinforceDefense"; 	close wm_ftquickcommand_alt,	"9", 8 )

QM_MENU_END

QM_MENU_START( "wm_ftquickmisc_alt" )

	QM_MENU_ITEM_TEAM( "1. Yes",				exec "VoiceFireteamChat Affirmative"; 	close wm_ftquickmisc_alt, "1", 0 )
	QM_MENU_ITEM_TEAM( "2. No",				exec "VoiceFireteamChat Negative"; 		close wm_ftquickmisc_alt, "2", 1 )
	QM_MENU_ITEM_TEAM( "3. Thanks",			exec "VoiceFireteamChat Thanks"; 		close wm_ftquickmisc_alt, "3", 2 )
	QM_MENU_ITEM_TEAM( "4. Welcome",			exec "VoiceFireteamChat Welcome"; 		close wm_ftquickmisc_alt, "4", 3 )
	QM_MENU_ITEM_TEAM( "5. Sorry",			exec "VoiceFireteamChat Sorry"; 		close wm_ftquickmisc_alt, "5", 4 )
	QM_MENU_ITEM_TEAM( "6. Oops", 			exec "VoiceFireteamChat Oops"; 		close wm_ftquickmisc_alt, "6", 5 )

QM_MENU_END

QM_MENU_START( "wm_ftquickglobal_alt" )

	QM_MENU_ITEM( "1. Yes",				exec "VoiceChat Affirmative"; 	close wm_ftquickglobal_alt, 	"1", 0 )
	QM_MENU_ITEM( "2. No",				exec "VoiceChat Negative"; 		close wm_ftquickglobal_alt, 	"2", 1 )
	QM_MENU_ITEM( "3. Enemy Weak",		exec "VoiceChat EnemyWeak";		close wm_ftquickglobal_alt, 	"3", 2 )
	QM_MENU_ITEM( "4. Hi",				exec "VoiceChat Hi"; 			close wm_ftquickglobal_alt, 	"4", 3 )
	QM_MENU_ITEM( "5. Bye",				exec "VoiceChat Bye"; 			close wm_ftquickglobal_alt, 	"5", 4 )
	QM_MENU_ITEM( "6. Great Shot",		exec "VoiceChat GreatShot"; 		close wm_ftquickglobal_alt, 	"6", 5 )
	QM_MENU_ITEM( "7. Cheer",			exec "VoiceChat Cheer"; 		close wm_ftquickglobal_alt, 	"7", 6 )
	QM_MENU_ITEM( "8. More Globals",		close wm_ftquickglobal_alt;		open wm_ftquickglobal2_alt, 	"8", 7 )

QM_MENU_END

QM_MENU_START( "wm_ftquickglobal2_alt" )

	QM_MENU_ITEM( "1. Thanks",		exec "VoiceChat Thanks";	close wm_ftquickglobal2_alt, 	"1", 0 )
	QM_MENU_ITEM( "2. Welcome",		exec "VoiceChat Welcome"; 	close wm_ftquickglobal2_alt, 	"2", 1 )
	QM_MENU_ITEM( "3. Oops",		exec "VoiceChat Oops"; 		close wm_ftquickglobal2_alt, 	"3", 2 )
	QM_MENU_ITEM( "4. Sorry",		exec "VoiceChat Sorry"; 	close wm_ftquickglobal2_alt, 	"4", 3 )
	QM_MENU_ITEM( "5. Hold Fire!",	exec "VoiceChat HoldFire";	close wm_ftquickglobal2_alt, 	"5", 4 )
	QM_MENU_ITEM( "6. Good Game",		exec "VoiceChat GoodGame";	close wm_ftquickglobal2_alt, 	"6", 5 )

QM_MENU_END

QM_MENU_START( "wm_ftSoldier_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "wm_ftsayPlayerClass"; 					close wm_ftPlayerClass_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceFireteamChat CommandDeclined";			close wm_ftPlayerClass_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceFireteamChat CommandCompleted";		close wm_ftPlayerClass_alt, 	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceFireteamChat DestroyPrimary"; 			close wm_ftPlayerClass_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceFireteamChat DestroySecondary";		close wm_ftPlayerClass_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceFireteamChat DestroyConstruction";		close wm_ftPlayerClass_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceFireteamChat ConstructionCommencing";	close wm_ftPlayerClass_alt, 	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceFireteamChat RepairVehicle";			close wm_ftPlayerClass_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceFireteamChat DestroyVehicle";			close wm_ftPlayerClass_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceFireteamChat EscortVehicle";			close wm_ftPlayerClass_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftMedic_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "wm_ftsayPlayerClass"; 					close wm_ftPlayerClass_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceFireteamChat CommandDeclined";			close wm_ftPlayerClass_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceFireteamChat CommandCompleted";		close wm_ftPlayerClass_alt, 	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceFireteamChat DestroyPrimary"; 			close wm_ftPlayerClass_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceFireteamChat DestroySecondary";		close wm_ftPlayerClass_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceFireteamChat DestroyConstruction";		close wm_ftPlayerClass_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceFireteamChat ConstructionCommencing";	close wm_ftPlayerClass_alt, 	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceFireteamChat RepairVehicle";			close wm_ftPlayerClass_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceFireteamChat DestroyVehicle";			close wm_ftPlayerClass_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceFireteamChat EscortVehicle";			close wm_ftPlayerClass_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftEngineer_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "wm_ftsayPlayerClass"; 					close wm_ftPlayerClass_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceFireteamChat CommandDeclined";			close wm_ftPlayerClass_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceFireteamChat CommandCompleted";		close wm_ftPlayerClass_alt, 	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceFireteamChat DestroyPrimary"; 			close wm_ftPlayerClass_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceFireteamChat DestroySecondary";		close wm_ftPlayerClass_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceFireteamChat DestroyConstruction";		close wm_ftPlayerClass_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceFireteamChat ConstructionCommencing";	close wm_ftPlayerClass_alt, 	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceFireteamChat RepairVehicle";			close wm_ftPlayerClass_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceFireteamChat DestroyVehicle";			close wm_ftPlayerClass_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceFireteamChat EscortVehicle";			close wm_ftPlayerClass_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftFieldOps_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "wm_ftsayPlayerClass"; 					close wm_ftPlayerClass_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceFireteamChat CommandDeclined";			close wm_ftPlayerClass_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceFireteamChat CommandCompleted";		close wm_ftPlayerClass_alt, 	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceFireteamChat DestroyPrimary"; 			close wm_ftPlayerClass_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceFireteamChat DestroySecondary";		close wm_ftPlayerClass_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceFireteamChat DestroyConstruction";		close wm_ftPlayerClass_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceFireteamChat ConstructionCommencing";	close wm_ftPlayerClass_alt, 	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceFireteamChat RepairVehicle";			close wm_ftPlayerClass_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceFireteamChat DestroyVehicle";			close wm_ftPlayerClass_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceFireteamChat EscortVehicle";			close wm_ftPlayerClass_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftCovertOps_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "wm_ftsayPlayerClass"; 					close wm_ftPlayerClass_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceFireteamChat CommandDeclined";			close wm_ftPlayerClass_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceFireteamChat CommandCompleted";		close wm_ftPlayerClass_alt, 	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceFireteamChat DestroyPrimary"; 			close wm_ftPlayerClass_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceFireteamChat DestroySecondary";		close wm_ftPlayerClass_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceFireteamChat DestroyConstruction";		close wm_ftPlayerClass_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceFireteamChat ConstructionCommencing";	close wm_ftPlayerClass_alt, 	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceFireteamChat RepairVehicle";			close wm_ftPlayerClass_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceFireteamChat DestroyVehicle";			close wm_ftPlayerClass_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceFireteamChat EscortVehicle";			close wm_ftPlayerClass_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_ftquickobjectives_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "VoiceFireteamChat CommandAcknowledged"; 		close wm_ftquickobjectives_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceFireteamChat CommandDeclined";			close wm_ftquickobjectives_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceFireteamChat CommandCompleted";		close wm_ftquickobjectives_alt, 	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceFireteamChat DestroyPrimary"; 			close wm_ftquickobjectives_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceFireteamChat DestroySecondary";		close wm_ftquickobjectives_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceFireteamChat DestroyConstruction";		close wm_ftquickobjectives_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceFireteamChat ConstructionCommencing";	close wm_ftquickobjectives_alt, 	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceFireteamChat RepairVehicle";			close wm_ftquickobjectives_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceFireteamChat DestroyVehicle";			close wm_ftquickobjectives_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceFireteamChat EscortVehicle";			close wm_ftquickobjectives_alt,	"0", 9 )

QM_MENU_END


(Ryan) #5

wm_quickmessage


	#include "ui/menudef.h"

	#define DEFAULT_TEXT_SCALE 0.25

	#define ORIGIN_QUICKMESSAGE		10 10

	#define QM_MENU_GRADIENT_START_OFFSET

	#define QM_MENU_START( WINDOWNAME )																				\
																										\
menuDef {																									\
	name		WINDOWNAME																						\
	visible		0																						\
	fullscreen	0																							\
	rect		0 100 640 380																					\
	onOpen		{ setCvar cl_bypassMouseInput "1" }																	\
	onClose		{ setCvar cl_bypassMouseInput "0" }																	\
	onEsc		{ closeAll }																					\
																										\
	itemDef {																								\
		name		"window"																					\
		rect		0 19 204 136																				\
		origin		ORIGIN_QUICKMESSAGE																		\
		style		WINDOW_STYLE_FILLED																			\
		backcolor	0 0 0 .75																					\
		border		WINDOW_BORDER_FULL																		\
		bordercolor	.5 .5 .5 .5																					\
		visible		1																					\
		decoration																							
	}																									\
																										\
	itemDef {																								\
		name		"windowtitle"																				\
		rect		$evalfloat((0)+2) $evalfloat((19)+2) $evalfloat((204)-4) 12													\
		origin		ORIGIN_QUICKMESSAGE																		\
		text		"MESSAGE"																					\
		textfont	UI_FONT_ARIBLK_16																				\
		textscale	.19																						\
		textalignx	3																						\
		textaligny	10																						\
		style		WINDOW_STYLE_FILLED																			\
		backcolor	.16 .2 .17 .8																				\
		forecolor	.6 .6 .6 1																					\
		visible		1																					\
		decoration																							\
	}

	#define QM_MENU_END }

	#define QM_MENU_ITEM( WINDOWTEXT, ACTION, KEY, POS )								\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
    execKey KEY { ACTION }

	#define QM_MENU_ITEM_TEAM( WINDOWTEXT, ACTION, KEY, POS )							\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
	execKey KEY { ACTION }

QM_MENU_START( "wm_quickmessage" )

	QM_MENU_ITEM_TEAM( 	"S. Statements", 		close wm_quickmessage; 		open wm_quickstatements, 	"s", 0 )
	QM_MENU_ITEM_TEAM( 	"R. Requests", 		close wm_quickmessage; 		open wm_quickrequests, 		"r", 1 )
	QM_MENU_ITEM_TEAM( 	"C. Commands", 		close wm_quickmessage; 		open wm_quickcommand, 		"c", 2 )
	QM_MENU_ITEM_TEAM( 	"T. Talk",		 	close wm_quickmessage;	 	open wm_quickmisc, 		"t", 3 )
	QM_MENU_ITEM( 		"G. Global",	 	close wm_quickmessage; 		open wm_quickglobal, 		"g", 4 )
	QM_MENU_ITEM_TEAM( 	"F. Function", 		close wm_quickmessage;		open wm_PlayerClass, 		"f", 5 )
	QM_MENU_ITEM_TEAM( 	"O. Objectives", 		close wm_quickmessage; 		open wm_quickobjectives, 	"o", 6 )

QM_MENU_END

QM_MENU_START( "wm_quickstatements" )

	QM_MENU_ITEM_TEAM( "P. Path Cleared.", 		exec "VoiceTeamChat PathCleared"; 		close wm_quickstatements,	"p", 0 )
	QM_MENU_ITEM_TEAM( "W. Enemy Weak!", 		exec "VoiceTeamChat EnemyWeak"; 		close wm_quickstatements, 	"w", 1 )
	QM_MENU_ITEM_TEAM( "C. All Clear", 			exec "VoiceTeamChat AllClear"; 		close wm_quickstatements,	"c", 2 )
	QM_MENU_ITEM_TEAM( "I. Incoming", 			exec "VoiceTeamChat Incoming"; 		close wm_quickstatements,	"i", 3 )
	QM_MENU_ITEM_TEAM( "F. Fire In The Hole!", 	exec "VoiceTeamChat FireInTheHole";		close wm_quickstatements,	"f", 4 )
	QM_MENU_ITEM_TEAM( "D. I'm Defending.", 		exec "VoiceTeamChat OnDefense"; 		close wm_quickstatements,	"d", 5 )
	QM_MENU_ITEM_TEAM( "A. I'm Attacking.", 		exec "VoiceTeamChat OnOffense"; 		close wm_quickstatements,	"a", 6 )
	QM_MENU_ITEM_TEAM( "T. Taking Fire!", 		exec "VoiceTeamChat TakingFire"; 		close wm_quickstatements,	"t", 7 )
	QM_MENU_ITEM_TEAM( "M. Mines Cleared", 		exec "VoiceTeamChat MinesCleared"; 		close wm_quickstatements,	"m", 8 )
	QM_MENU_ITEM_TEAM( "E. Enemy Disguised", 		exec "VoiceTeamChat EnemyDisguised";	close wm_quickstatements,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_quickrequests" )

	QM_MENU_ITEM_TEAM( "M. Need Medic!", 		exec "VoiceTeamChat Medic"; 			close wm_quickrequests,	"m", 0 )
	QM_MENU_ITEM_TEAM( "A. Need Ammo!", 		exec "VoiceTeamChat NeedAmmo"; 		close wm_quickrequests,	"a", 1 )
	QM_MENU_ITEM_TEAM( "B. Need Backup!", 		exec "VoiceTeamChat NeedBackup"; 		close wm_quickrequests,	"b", 2 )
	QM_MENU_ITEM_TEAM( "E. Need Engineer!", 		exec "VoiceTeamChat NeedEngineer"; 		close wm_quickrequests,	"e", 3 )
	QM_MENU_ITEM_TEAM( "C. Cover Me!", 			exec "VoiceTeamChat CoverMe"; 		close wm_quickrequests,	"c", 4 )
	QM_MENU_ITEM_TEAM( "H. Hold Fire!",			exec "VoiceTeamChat HoldFire";	 	close wm_quickrequests, "h", 5 )
	QM_MENU_ITEM_TEAM( "W. Where To?", 			exec "VoiceTeamChat WhereTo"; 		close wm_quickrequests,	"w", 6 )
	QM_MENU_ITEM_TEAM( "O. Need Covert Ops!", 	exec "VoiceTeamChat NeedOps"; 		close wm_quickrequests,	"o", 7 )

QM_MENU_END

QM_MENU_START( "wm_quickcommand" )

	QM_MENU_ITEM_TEAM( "F. Follow Me!", 		exec "VoiceTeamChat FollowMe"; 		close wm_quickcommand, 	"f", 0 )
	QM_MENU_ITEM_TEAM( "G. Let's Go!", 			exec "VoiceTeamChat LetsGo"; 			close wm_quickcommand, 	"g", 1 )
	QM_MENU_ITEM_TEAM( "M. Move!", 			exec "VoiceTeamChat Move"; 			close wm_quickcommand, 	"m", 2 )
	QM_MENU_ITEM_TEAM( "C. Clear The Path!", 		exec "VoiceTeamChat ClearPath"; 		close wm_quickcommand, 	"c", 3 )
	QM_MENU_ITEM_TEAM( "O. Defend Objective!", 	exec "VoiceTeamChat DefendObjective"; 	close wm_quickcommand, 	"o", 4 )
	QM_MENU_ITEM_TEAM( "D. Disarm Dynamite!", 	exec "VoiceTeamChat DisarmDynamite"; 	close wm_quickcommand, 	"d", 5 )
	QM_MENU_ITEM_TEAM( "N. Clear Mines!", 		exec "VoiceTeamChat ClearMines"; 		close wm_quickcommand, 	"n", 6 )
	QM_MENU_ITEM_TEAM( "R. Reinforce Offense", 	exec "VoiceTeamChat ReinforceOffense"; 	close wm_quickcommand,	"r", 7 )
	QM_MENU_ITEM_TEAM( "E. Reinforce Defense", 	exec "VoiceTeamChat ReinforceDefense"; 	close wm_quickcommand,	"e", 8 )

QM_MENU_END

QM_MENU_START( "wm_quickmisc" )

	QM_MENU_ITEM_TEAM( "Y. Yes",				exec "VoiceTeamChat Affirmative"; 		close wm_quickmisc, "y", 0 )
	QM_MENU_ITEM_TEAM( "N. No",				exec "VoiceTeamChat Negative"; 		close wm_quickmisc, "n", 1 )
	QM_MENU_ITEM_TEAM( "T. Thanks",			exec "VoiceTeamChat Thanks"; 			close wm_quickmisc, "t", 2 )
	QM_MENU_ITEM_TEAM( "W. Welcome",			exec "VoiceTeamChat Welcome"; 		close wm_quickmisc, "w", 3 )
	QM_MENU_ITEM_TEAM( "S. Sorry",			exec "VoiceTeamChat Sorry"; 			close wm_quickmisc, "s", 4 )
	QM_MENU_ITEM_TEAM( "O. Oops", 			exec "VoiceTeamChat Oops"; 			close wm_quickmisc, "o", 5 )

QM_MENU_END

QM_MENU_START( "wm_quickglobal" )

	QM_MENU_ITEM( "Y. Yes",				exec "VoiceChat Affirmative"; 	close wm_quickglobal, 	"y", 0 )
	QM_MENU_ITEM( "N. No",				exec "VoiceChat Negative"; 		close wm_quickglobal, 	"n", 1 )
	QM_MENU_ITEM( "W. Enemy Weak",		exec "VoiceChat EnemyWeak";		close wm_quickglobal, 	"w", 2 )
	QM_MENU_ITEM( "H. Hi",				exec "VoiceChat Hi"; 			close wm_quickglobal, 	"h", 3 )
	QM_MENU_ITEM( "B. Bye",				exec "VoiceChat Bye"; 			close wm_quickglobal, 	"b", 4 )
	QM_MENU_ITEM( "S. Great Shot",		exec "VoiceChat GreatShot"; 		close wm_quickglobal, 	"s", 5 )
	QM_MENU_ITEM( "C. Cheer",			exec "VoiceChat Cheer"; 		close wm_quickglobal, 	"c", 6 )
	QM_MENU_ITEM( "G. More Globals",		close wm_quickglobal;			open wm_quickglobal2, 	"g", 7 )

QM_MENU_END

QM_MENU_START( "wm_quickglobal2" )

	QM_MENU_ITEM( "T. Thanks",		exec "VoiceChat Thanks";	close wm_quickglobal2, 	"t", 0 )
	QM_MENU_ITEM( "W. Welcome",		exec "VoiceChat Welcome"; 	close wm_quickglobal2, 	"w", 1 )
	QM_MENU_ITEM( "O. Oops",		exec "VoiceChat Oops"; 		close wm_quickglobal2, 	"o", 2 )
	QM_MENU_ITEM( "S. Sorry",		exec "VoiceChat Sorry"; 	close wm_quickglobal2, 	"s", 3 )
	QM_MENU_ITEM( "H. Hold Fire!",	exec "VoiceChat HoldFire";	close wm_quickglobal2, 	"h", 4 )
	QM_MENU_ITEM( "G. Good Game",		exec "VoiceChat GoodGame";	close wm_quickglobal2, 	"g", 5 )

QM_MENU_END

QM_MENU_START( "wm_Soldier" )

	QM_MENU_ITEM_TEAM( "A. I am Soldier",			exec "wm_sayPlayerClass";	 				close wm_PlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass, 	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_Medic" )

	QM_MENU_ITEM_TEAM( "A. I am Medic",				exec "wm_sayPlayerClass";	 				close wm_PlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass, 	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_Engineer" )

	QM_MENU_ITEM_TEAM( "A. I am Engineer",			exec "wm_sayPlayerClass";	 				close wm_PlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass, 	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_FieldOps" )

	QM_MENU_ITEM_TEAM( "A. I am FieldOps",			exec "wm_sayPlayerClass";	 				close wm_PlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass, 	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_CovertOps" )

	QM_MENU_ITEM_TEAM( "A. I am CovertOps",			exec "wm_sayPlayerClass";	 				close wm_PlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass, 	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_quickobjectives" )

	QM_MENU_ITEM_TEAM( "A. Command Acknowledged",		exec "VoiceTeamChat CommandAcknowledged"; 		close wm_quickobjectives,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_quickobjectives,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_quickobjectives,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_quickobjectives,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_quickobjectives,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_quickobjectives,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_quickobjectives, 	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_quickobjectives,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_quickobjectives,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_quickobjectives,	"e", 9 )

QM_MENU_END


(Ryan) #6

wm_quickmessageAlt


	#include "ui/menudef.h"

	#define DEFAULT_TEXT_SCALE 0.25

	#define ORIGIN_QUICKMESSAGE		10 10

	#define QM_MENU_GRADIENT_START_OFFSET

	#define QM_MENU_START( WINDOWNAME )																				\
																										\
menuDef {																									\
	name		WINDOWNAME																						\
	visible		0																						\
	fullscreen	0																							\
	rect		0 100 640 380																					\
	onOpen		{ setCvar cl_bypassMouseInput "1" }																	\
	onClose		{ setCvar cl_bypassMouseInput "0" }																	\
	onEsc		{ closeAll }																					\
																										\
	itemDef {																								\
		name		"window"																					\
		rect		0 19 204 136																				\
		origin		ORIGIN_QUICKMESSAGE																		\
		style		WINDOW_STYLE_FILLED																			\
		backcolor	0 0 0 .75																					\
		border		WINDOW_BORDER_FULL																		\
		bordercolor	.5 .5 .5 .5																					\
		visible		1																					\
		decoration																							\
	}																									\
																										\
	itemDef {																								\
		name		"windowtitle"																				\
		rect		$evalfloat((0)+2) $evalfloat((19)+2) $evalfloat((204)-4) 12													\
		origin		ORIGIN_QUICKMESSAGE																		\
		text		"MESSAGE"																					\
		textfont	UI_FONT_ARIBLK_16																				\
		textscale	.19																						\
		textalignx	3																						\
		textaligny	10																						\
		style		WINDOW_STYLE_FILLED																			\
		backcolor	.16 .2 .17 .8																				\
		forecolor	.6 .6 .6 1																					\
		visible		1																					\
		decoration																							\
	}

	#define QM_MENU_END }

	#define QM_MENU_ITEM( WINDOWTEXT, ACTION, KEY, POS )								\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
    execKey KEY { ACTION }

	#define QM_MENU_ITEM_TEAM( WINDOWTEXT, ACTION, KEY, POS )							\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
	execKey KEY { ACTION }

QM_MENU_START( "wm_quickmessageAlt" )

	QM_MENU_ITEM_TEAM( 	"1. Statements", 		close wm_quickmessageAlt; 	open wm_quickstatements_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( 	"2. Requests", 		close wm_quickmessageAlt; 	open wm_quickrequests_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( 	"3. Commands", 		close wm_quickmessageAlt; 	open wm_quickcommand_alt,	"3", 2 )
	QM_MENU_ITEM_TEAM( 	"4. Talk",		 	close wm_quickmessageAlt; 	open wm_quickmisc_alt, 		"4", 3 )
	QM_MENU_ITEM( 		"5. Global",	 	close wm_quickmessageAlt; 	open wm_quickglobal_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( 	"6. Function", 		close wm_quickmessageAlt;	open wm_PlayerClass_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( 	"7. Objectives", 		close wm_quickmessageAlt; 	open wm_quickobjectives_alt, 	"7", 6 )

QM_MENU_END

QM_MENU_START( "wm_quickstatements_alt" )

	QM_MENU_ITEM_TEAM( "1. Path Cleared.", 		exec "VoiceTeamChat PathCleared"; 		close wm_quickstatements_alt,	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Enemy Weak!", 		exec "VoiceTeamChat EnemyWeak"; 		close wm_quickstatements_alt,	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. All Clear", 			exec "VoiceTeamChat AllClear"; 		close wm_quickstatements_alt,	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Incoming", 			exec "VoiceTeamChat Incoming"; 		close wm_quickstatements_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Fire In The Hole!", 	exec "VoiceTeamChat FireInTheHole"; 	close wm_quickstatements_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. I'm Defending.", 		exec "VoiceTeamChat OnDefense"; 		close wm_quickstatements_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. I'm Attacking.", 		exec "VoiceTeamChat OnOffense"; 		close wm_quickstatements_alt,	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Taking Fire!", 		exec "VoiceTeamChat TakingFire"; 		close wm_quickstatements_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Mines Cleared", 		exec "VoiceTeamChat MinesCleared"; 		close wm_quickstatements_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Enemy Disguised", 		exec "VoiceTeamChat EnemyDisguised";	close wm_quickstatements_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_quickrequests_alt" )

	QM_MENU_ITEM_TEAM( "1. Need Medic!", 		exec "VoiceTeamChat Medic"; 			close wm_quickrequests_alt,	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Need Ammo!", 		exec "VoiceTeamChat NeedAmmo"; 		close wm_quickrequests_alt,	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Need Backup!", 		exec "VoiceTeamChat NeedBackup"; 		close wm_quickrequests_alt,	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Need Engineer!", 		exec "VoiceTeamChat NeedEngineer"; 		close wm_quickrequests_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Cover Me!", 			exec "VoiceTeamChat CoverMe"; 		close wm_quickrequests_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Hold Fire!",			exec "VoiceTeamChat HoldFire";	 	close wm_quickrequests_alt, 	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Where To?", 			exec "VoiceTeamChat WhereTo"; 		close wm_quickrequests_alt,	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Need Covert Ops!", 	exec "VoiceTeamChat NeedOps"; 		close wm_quickrequests_alt,	"8", 7 )

QM_MENU_END

QM_MENU_START( "wm_quickcommand_alt" )

	QM_MENU_ITEM_TEAM( "1. Follow Me!", 		exec "VoiceTeamChat FollowMe"; 		close wm_quickcommand_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Let's Go!", 			exec "VoiceTeamChat LetsGo"; 			close wm_quickcommand_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Move!", 			exec "VoiceTeamChat Move"; 			close wm_quickcommand_alt, 	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Clear The Path!", 		exec "VoiceTeamChat ClearPath"; 		close wm_quickcommand_alt, 	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Defend Objective!", 	exec "VoiceTeamChat DefendObjective"; 	close wm_quickcommand_alt, 	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Disarm Dynamite!", 	exec "VoiceTeamChat DisarmDynamite"; 	close wm_quickcommand_alt, 	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Clear Mines!", 		exec "VoiceTeamChat ClearMines"; 		close wm_quickcommand_alt, 	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Reinforce Offense", 	exec "VoiceTeamChat ReinforceOffense"; 	close wm_quickcommand_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Reinforce Defense", 	exec "VoiceTeamChat ReinforceDefense"; 	close wm_quickcommand_alt,	"9", 8 )

QM_MENU_END

QM_MENU_START( "wm_quickmisc_alt" )

	QM_MENU_ITEM_TEAM( "1. Yes",				exec "VoiceTeamChat Affirmative"; 		close wm_quickmisc_alt, "1", 0 )
	QM_MENU_ITEM_TEAM( "2. No",				exec "VoiceTeamChat Negative"; 		close wm_quickmisc_alt, "2", 1 )
	QM_MENU_ITEM_TEAM( "3. Thanks",			exec "VoiceTeamChat Thanks"; 			close wm_quickmisc_alt, "3", 2 )
	QM_MENU_ITEM_TEAM( "4. Welcome",			exec "VoiceTeamChat Welcome"; 		close wm_quickmisc_alt, "4", 3 )
	QM_MENU_ITEM_TEAM( "5. Sorry",			exec "VoiceTeamChat Sorry"; 			close wm_quickmisc_alt, "5", 4 )
	QM_MENU_ITEM_TEAM( "6. Oops", 			exec "VoiceTeamChat Oops"; 			close wm_quickmisc_alt, "6", 5 )

QM_MENU_END

QM_MENU_START( "wm_quickglobal_alt" )

	QM_MENU_ITEM( "1. Yes",				exec "VoiceChat Affirmative"; 	close wm_quickglobal_alt, 	"1", 0 )
	QM_MENU_ITEM( "2. No",				exec "VoiceChat Negative"; 		close wm_quickglobal_alt, 	"2", 1 )
	QM_MENU_ITEM( "3. Enemy Weak",		exec "VoiceChat EnemyWeak";		close wm_quickglobal_alt, 	"3", 2 )
	QM_MENU_ITEM( "4. Hi",				exec "VoiceChat Hi"; 			close wm_quickglobal_alt, 	"4", 3 )
	QM_MENU_ITEM( "5. Bye",				exec "VoiceChat Bye"; 			close wm_quickglobal_alt, 	"5", 4 )
	QM_MENU_ITEM( "6. Great Shot",		exec "VoiceChat GreatShot"; 		close wm_quickglobal_alt, 	"6", 5 )
	QM_MENU_ITEM( "7. Cheer",			exec "VoiceChat Cheer"; 		close wm_quickglobal_alt, 	"7", 6 )
	QM_MENU_ITEM( "8. More Globals",		close wm_quickglobal_alt;		open wm_quickglobal2_alt, 	"8", 7 )

QM_MENU_END

QM_MENU_START( "wm_quickglobal2_alt" )

	QM_MENU_ITEM( "1. Thanks",		exec "VoiceChat Thanks";	close wm_quickglobal2_alt, 	"1", 0 )
	QM_MENU_ITEM( "2. Welcome",		exec "VoiceChat Welcome"; 	close wm_quickglobal2_alt, 	"2", 1 )
	QM_MENU_ITEM( "3. Oops",		exec "VoiceChat Oops"; 		close wm_quickglobal2_alt, 	"3", 2 )
	QM_MENU_ITEM( "4. Sorry",		exec "VoiceChat Sorry"; 	close wm_quickglobal2_alt, 	"4", 3 )
	QM_MENU_ITEM( "5. Hold Fire!",	exec "VoiceChat HoldFire";	close wm_quickglobal2_alt, 	"5", 4 )
	QM_MENU_ITEM( "6. Good Game",		exec "VoiceChat GoodGame";	close wm_quickglobal2_alt, 	"6", 5 )

QM_MENU_END

QM_MENU_START( "wm_Soldier_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "wm_sayPlayerClass"; 					close wm_PlayerClass_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass_alt, 	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass_alt, 	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_Medic_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "wm_sayPlayerClass"; 					close wm_PlayerClass_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass_alt, 	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass_alt, 	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_Engineer_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "wm_sayPlayerClass"; 					close wm_PlayerClass_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass_alt,	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass_alt,	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_FieldOps_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "wm_sayPlayerClass"; 					close wm_PlayerClass_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass_alt,	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass_alt,	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass_alt,	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_CovertOps_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "wm_sayPlayerClass"; 					close wm_PlayerClass_alt, 	"1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass_alt, 	"2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass_alt,	"3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass_alt, 	"7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass_alt,	"0", 9 )

QM_MENU_END

QM_MENU_START( "wm_quickobjectives_alt" )

	QM_MENU_ITEM_TEAM( "1. Command Acknowledged",		exec "VoiceTeamChat CommandAcknowledged"; 		close wm_quickobjectives_alt, "1", 0 )
	QM_MENU_ITEM_TEAM( "2. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_quickobjectives_alt, "2", 1 )
	QM_MENU_ITEM_TEAM( "3. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_quickobjectives_alt, "3", 2 )
	QM_MENU_ITEM_TEAM( "4. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_quickobjectives_alt,	"4", 3 )
	QM_MENU_ITEM_TEAM( "5. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_quickobjectives_alt,	"5", 4 )
	QM_MENU_ITEM_TEAM( "6. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_quickobjectives_alt,	"6", 5 )
	QM_MENU_ITEM_TEAM( "7. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_quickobjectives_alt, "7", 6 )
	QM_MENU_ITEM_TEAM( "8. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_quickobjectives_alt,	"8", 7 )
	QM_MENU_ITEM_TEAM( "9. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_quickobjectives_alt,	"9", 8 )
	QM_MENU_ITEM_TEAM( "0. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_quickobjectives_alt,	"0", 9 )

QM_MENU_END

Now, everything works fine ingame.
When I press V the chatmenu appears and all the sounds and commands work, except for v6.
When I press v6, the chatmenu just closes down.
So Either the link is wrong (exec wm_PlayerClass;)
or the menuname (wm_Soldier) is wrong.
Maybe I have to replace the classnames for classnumbers or something?
This would be the last error I guess :slight_smile:

Any help appreciated :slight_smile:


(nUllSkillZ) #7

Not sure but it’s possible that this is coded in the source.


(Ryan) #8

I think (and hope) its just a matter of typing in the correct command when execing and opening.
Otherwise it will take some more time… :frowning:

Anyone knows what command I need to use? to open the correct menu per class?
Sorry for the huge code posts tough ;).
Its just so everyone can see what I am doing wrong

Is there anyone who can help me with this matter?
It’s for a great mod, Wolfenstein: The Frontline and East Frontline perhaps
(Now you know why I want this)


(Elite) #9

Hmm. I cna’t be very specific yet, I haven’t put too much thought into this, just a concept to play with.

You can simply add, in menudef.h, some new defines for the class the player is on:

#define SHOW_CLASS_SOLDIER     1
#define SHOW_CLASS_ENGINEER   2
#define SHOW_CLASS_MEDIC        3
#define SHOW_CLASS_FDOPS        4
#define SHOW_CLASS_CVOPS        5

Then from here you would need to simply modify the menus to check if any of these flags are present, and then compare it to the current class of the player entity. You will probably need to create a new window type, or just edit the ones allready there, to accomodate for the new flag.

===========================

As for the easy way, just use another key for these messages, hardcode the menu in completely, and it wll work like a charm.

===========================

It’s very tricky because of the way menu’s are handled in ET. You don’t really have the ent’s to work with int he same way. Significant changes are needed regardless of what method you choose. GIve me a few days to think about this one, and I will hopefully have something else figured out.


(Ryan) #10

Wow thats great Elite :slight_smile:

You really help people very good :smiley:
Thank you in advance

(Btw, I tought there was already a player class define in menu.def but ill look again)
I am moslty on msn if you want to talk.


(Ryan) #11

I think I know what it is…
not sure tought but


execKey KEY { ACTION } 

   #define QM_MENU_ITEM_TEAM( WINDOWTEXT, ACTION, KEY, POS )                     \ 
    itemDef {                                             \ 
      name         "menuitem"##WINDOWTEXT                           \ 
      rect         6 $evalfloat( 35 + ( 12 * POS )) 128 10                  \ 
      origin         ORIGIN_QUICKMESSAGE                        \ 
      type         ITEM_TYPE_TEXT                              \ 
      text         WINDOWTEXT                                 \ 
      textfont      UI_FONT_COURBD_21                              \ 
      textstyle      ITEM_TEXTSTYLE_SHADOWED                           \ 
      textscale      .2                                    \ 
      textaligny      8                                    \ 
      forecolor      .6 .6 .6 1                                 \ 
      visible         1                                 \ 
      decoration                                          \ 
    }                                                   \ 
   execKey KEY { ACTION } 

This code is in the beginning of the actual menu pop ups.
So I guess with this code is checks in wich TEAM you are in, and all the voice commands are executed only for that team to hear…
(Tell me if im wrong)

But I guess this code could be used when you want some command only to be heard by a certain class:

#define QM_MENU_ITEM_CLASS( WINDOWTEXT, ACTION, KEY,

==============================

Hmm, this doesnt help with calling in special voices per class :roll: , just who can hear them


(broloi) #12

What about the different sounds… like allies can hear some sounds, i.e. “no problem”

while axis have some others, i.e. “kein problem”

Just an idea, i dont really know much about modding…


(Elite) #13

Perfect… Ryan found what I was looking for. I couldn’t find it when I got to looking :slight_smile:

That is probably exactly what you want. Just create a pretty much identical one to that, but check for class instead of team.


(Ryan) #14

QM_MENU_START( "wm_Soldier" )

	QM_MENU_ITEM_TEAM( "A. I am Soldier",			exec "wm_sayPlayerClass";	 				close wm_PlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass, 	"m", 6 )
	QM_MENU_ITEM_TEAM( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass,	"e", 9 )

QM_MENU_END

I should change the:
QM_MENU_ITEM_TEAM --> QM_MENU_ITEM_CLASS ?
Or perhaps to QM_MENU_ITEM_TEAM_CLASS? :oops:

And what about this funny stuff :P?
I see:
exec “VoiceTeamChat xxxxx”; close wm_PlayerClass,

Would it be possible to make:
exec “VoiceTeamClassChat xxxxx”; etc? :stuck_out_tongue:
So only the same Class can hear your command?
Kinda cool if field ops can communicate private with each other etc

=====================================

Set some things straight:

#define QM_MENU_ITEM_TEAM( WINDOWTEXT, ACTION, KEY, POS )
(wich team can SEE this menu)

QM_MENU_ITEM_TEAM
(same as above)

VoiceTeamChat / VoiceChat
(who can HEAR these sounds)

Correct?

=======================================

Btw, you have msn Elite? or xfire
plz add me then :wink:
xfire = 1ryan1 but msn is preferable


(Ryan) #15

Hmm, I think its not correct…

Global chat:


QM_MENU_START( "wm_quickglobal" )

	QM_MENU_ITEM( "Y. Yes",				exec "VoiceChat Affirmative"; 	close wm_quickglobal, 	"y", 0 )
	QM_MENU_ITEM( "N. No",				exec "VoiceChat Negative"; 		close wm_quickglobal, 	"n", 1 )
	QM_MENU_ITEM( "W. Enemy Weak",		exec "VoiceChat EnemyWeak";		close wm_quickglobal, 	"w", 2 )
	QM_MENU_ITEM( "H. Hi",				exec "VoiceChat Hi"; 			close wm_quickglobal, 	"h", 3 )
	QM_MENU_ITEM( "B. Bye",				exec "VoiceChat Bye"; 			close wm_quickglobal, 	"b", 4 )
	QM_MENU_ITEM( "S. Great Shot",		exec "VoiceChat GreatShot"; 		close wm_quickglobal, 	"s", 5 )
	QM_MENU_ITEM( "C. Cheer",			exec "VoiceChat Cheer"; 		close wm_quickglobal, 	"c", 6 )
	QM_MENU_ITEM( "G. More Globals",		close wm_quickglobal;			open wm_quickglobal2, 	"g", 7 )

QM_MENU_END

For Teamchat:


QM_MENU_START( "wm_quickmisc" )

	QM_MENU_ITEM_TEAM( "Y. Yes",				exec "VoiceTeamChat Affirmative"; 		close wm_quickmisc, "y", 0 )
	QM_MENU_ITEM_TEAM( "N. No",				exec "VoiceTeamChat Negative"; 		close wm_quickmisc, "n", 1 )
	QM_MENU_ITEM_TEAM( "T. Thanks",			exec "VoiceTeamChat Thanks"; 			close wm_quickmisc, "t", 2 )
	QM_MENU_ITEM_TEAM( "W. Welcome",			exec "VoiceTeamChat Welcome"; 		close wm_quickmisc, "w", 3 )
	QM_MENU_ITEM_TEAM( "S. Sorry",			exec "VoiceTeamChat Sorry"; 			close wm_quickmisc, "s", 4 )
	QM_MENU_ITEM_TEAM( "O. Oops", 			exec "VoiceTeamChat Oops"; 			close wm_quickmisc, "o", 5 )

QM_MENU_END

So the QM_MENU_ITEM and QM_MENU_ITEM_TEAM are for who can hear the sounds I think, together with the exec “VoiceChat” and exec “VoiceTeamChat”

so changing these wont help I guess.

and for


	#define QM_MENU_ITEM( WINDOWTEXT, ACTION, KEY, POS )								\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
    execKey KEY { ACTION }

	#define QM_MENU_ITEM_TEAM( WINDOWTEXT, ACTION, KEY, POS )							\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
	execKey KEY { ACTION }

Is just to let the script know what to do when it reads QM_MENU_ITEM or QM_MENU_ITEM_TEAM.

So it has to be done diff.


(Ryan) #16

Maybe I should make a code like this:

(I ADDED THE LINE "action { uiScript wm_Soldier; hide wm_Medic; hide wm_Engineer; hide wm_FieldOps; hide wm_CovertOps; } ")


	#define QM_MENU_ITEM( WINDOWTEXT, ACTION, KEY, POS )								\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
    execKey KEY { ACTION }

	#define QM_MENU_ITEM_TEAM( WINDOWTEXT, ACTION, KEY, POS )							\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
    }																	\
	execKey KEY { ACTION }

	#define QM_MENU_ITEM_TEAM_SOLDIER( WINDOWTEXT, ACTION, KEY, POS )						\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
      action        { uiScript wm_Soldier; hide wm_Medic; hide wm_Engineer; hide wm_FieldOps; hide wm_CovertOps; }  \

    }																	\

	#define QM_MENU_ITEM_TEAM_MEDIC( WINDOWTEXT, ACTION, KEY, POS )						\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT									\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10						\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT										\
		text			WINDOWTEXT											\
		textfont		UI_FONT_COURBD_21										\
		textstyle		ITEM_TEXTSTYLE_SHADOWED									\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1											\
		visible			1											\
		decoration														\
      action        { uiScript wm_Medic; hide wm_Soldier; hide wm_Engineer; hide wm_FieldOps; hide wm_CovertOps; }  \

    }																	\


etc etc etc for the other classes...

at the beginning of the script.
And then:


QM_MENU_START( "wm_quickmessage" )

	QM_MENU_ITEM_TEAM( 	"S. Statements", 		close wm_quickmessage; 		open wm_quickstatements, 	"s", 0 )
	QM_MENU_ITEM_TEAM( 	"R. Requests", 		close wm_quickmessage; 		open wm_quickrequests, 		"r", 1 )
	QM_MENU_ITEM_TEAM( 	"C. Commands", 		close wm_quickmessage; 		open wm_quickcommand, 		"c", 2 )
	QM_MENU_ITEM_TEAM( 	"T. Talk",		 	close wm_quickmessage;	 	open wm_quickmisc, 		"t", 3 )
	QM_MENU_ITEM( 		"G. Global",	 	close wm_quickmessage; 		open wm_quickglobal, 		"g", 4 )
	QM_MENU_ITEM_TEAM( 	"F. Function", 		close wm_quickmessage;		open wm_PlayerClass, 		"f", 5 )
	QM_MENU_ITEM_TEAM( 	"O. Objectives", 		close wm_quickmessage; 		open wm_quickobjectives, 	"o", 6 )

QM_MENU_END


QM_MENU_START( "wm_Soldier" )

	QM_MENU_ITEM_TEAM_SOLDIER( "A. I am Soldier",			exec "wm_sayPlayerClass";	 				close wm_PlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM_SOLDIER( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM_SOLDIER( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM_SOLDIER( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM_SOLDIER( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM_SOLDIER( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM_SOLDIER( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass, 	"m", 6 )
	QM_MENU_ITEM_TEAM_SOLDIER( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM_SOLDIER( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM_SOLDIER( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass,	"e", 9 )

QM_MENU_END

QM_MENU_START( "wm_Medic" )

	QM_MENU_ITEM_TEAM_MEDIC( "A. I am Medic",				exec "wm_sayPlayerClass";	 				close wm_PlayerClass,	"a", 0 )
	QM_MENU_ITEM_TEAM_MEDIC( "D. Command Declined",			exec "VoiceTeamChat CommandDeclined";			close wm_PlayerClass,	"d", 1 )
	QM_MENU_ITEM_TEAM_MEDIC( "C. Command Completed",		exec "VoiceTeamChat CommandCompleted";			close wm_PlayerClass,	"c", 2 )
	QM_MENU_ITEM_TEAM_MEDIC( "P. Destroy Primary Objective",	exec "VoiceTeamChat DestroyPrimary"; 			close wm_PlayerClass,	"p", 3 )
	QM_MENU_ITEM_TEAM_MEDIC( "S. Destroy Secondary Objective",	exec "VoiceTeamChat DestroySecondary";			close wm_PlayerClass,	"s", 4 )
	QM_MENU_ITEM_TEAM_MEDIC( "X. Destroy Construction",		exec "VoiceTeamChat DestroyConstruction";			close wm_PlayerClass,	"x", 5 )
	QM_MENU_ITEM_TEAM_MEDIC( "M. Commencing Construction",	exec "VoiceTeamChat ConstructionCommencing";		close wm_PlayerClass, 	"m", 6 )
	QM_MENU_ITEM_TEAM_MEDIC( "R. Repair Vehicle",			exec "VoiceTeamChat RepairVehicle";				close wm_PlayerClass,	"r", 7 )
	QM_MENU_ITEM_TEAM_MEDIC( "V. Disable Vehicle",			exec "VoiceTeamChat DestroyVehicle";			close wm_PlayerClass,	"v", 8 )
	QM_MENU_ITEM_TEAM_MEDIC( "E. Escort Vehicle",			exec "VoiceTeamChat EscortVehicle";				close wm_PlayerClass,	"e", 9 )

QM_MENU_END


(Ryan) #17

not sure if it is really neccesary to make
QM_MENU_ITEM_TEAM_SOLDIER
QM_MENU_ITEM_TEAM_MEDIC
etc…

I think that the link is just wrong:

open wm_PlayerClass
wm_Soldier
wm_Medic
wm_Engineer
wm_FieldOps
wm_CovertOps

I think it should be
wm_1
wm_2
wm_3 etc??

Then the QM_MENU_ITEM_TEAM_SOLDIER etc can be just QM_MENU_ITEM_TEAM and I can delete the rest of the new code like the uiScript

What do you think Elite? Or any other helpers?

EDIT:

The playerclasses arent the only one using 0 1 2 3 4…
So how would it know that the numbers are for the playerclass and not for anything else?

Anyone that can give me a hand with this?


(Elite) #18

Because of code implemented. You would give a certain attribute the value, and then check that attribute.