hi read what u said about soundpacks… and I haven’t finished this yet… but i can’t get it to work. it shows that i have added even more sounds but when i click on it, it just closes the screen. sorry it is so long!
here is the script i am trying to modify:
#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", exec "wm_sayPlayerClass"; close wm_quickmessageAlt, "6", 5 )
QM_MENU_ITEM_TEAM( "7. Objectives", close wm_quickmessageAlt; open wm_quickobjectives_alt, "7", 6 )
QM_MENU_ITEM_TEAM( "8. Team", close wm_quickmessageAlt; open wm_quickteam_alt, "8", 7 )
QM_MENU_ITEM( "9. Selector", close wm_quickmessageAlt; open wm_teamalt_alt, "9", 8 )
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_ITEM_TEAM( "9. Heal the squad!", exec "VoiceTeamChat FTHealSquad"; close wm_quickrequests_alt, "9", 8 )
QM_MENU_ITEM_TEAM( "0. Resupply the squad!", exec "VoiceTeamChat FTResupplySquad"; close wm_quickrequests_alt, "0", 9 )
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_ITEM_TEAM( "0. Attack!", exec "VoiceTeamChat FTAttack"; close wm_quickcommand_alt, "0", 9 )
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_ITEM_TEAM( "7. Call an airstrike!", exec "VoiceTeamChat FTCallAirStrike"; close wm_quickmisc_alt, "7", 6 )
QM_MENU_ITEM_TEAM( "8. Call in artillery!", exec "VoiceTeamChat FTCallArtillery"; close wm_quickmisc_alt, "8", 7 )
QM_MENU_ITEM_TEAM( "9. Repair Objective!", exec "VoiceTeamChat FTRepairObjective"; close wm_quickmisc_alt, "9", 8 )
QM_MENU_ITEM_TEAM( "0. Destroy Objective!", exec "VoiceTeamChat FTSatchelObjective"; close wm_quickmisc_alt, "0", 9 )
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_ITEM( "7. Enemy is great!", exec "VoiceChat newtarz"; close wm_quickglobal2_alt, "7", 6 )
QM_MENU_ITEM( "8. Attack!", exec "VoiceChat FTAttack"; close wm_quickglobal2_alt, "8", 7 )
QM_MENU_ITEM( "9. Even More Globals!", close wm_quickglobal2_alt; open wwm_quickglobal3_alt, "9", 8 )
QM_MENU_END
QM_MENU_START( “wm_quickglobal3_alt” )
QM_MENU_ITEM( "1. Music", close wm_quickglobal3_alt"; open wm_music_alt, "1", 0 )
QM_MENU_ITEM( "2. Movies", close wm_quickglobal3_alt"; open wm_movies_alt, "2", 1 )
QM_MENU_ITEM( "3. 420", close wm_quickglobal3_alt"; open wm_420_alt, "3", 2 )
QM_MENU_ITEM( "4. Gross", close wm_quickglobal3_alt"; open wm_gross_alt, "4", 3 )
QM_MENU_ITEM( "5. Animals!", close wm_quickglobal3_alt"; open wm_animals_alt, "5", 4 )
QM_MENU_ITEM( "6. Misc", close wm_quickglobal3_alt"; open wm_misc_alt, "6", 5 )
QM_MENU_END
QM_MENU_START( “wm_music_alt” )
QM_MENU_ITEM( "1. Enrique", exec "VoiceChat Enrique_Iglesias_-_Do_You_Know_(The_Ping_Pong_Song)"; close wm_music_alt, "1", 0 )
QM_MENU_ITEM( "2. Kenny Rogers", exec "KennyRogers_TheGambler"; close wm_music_alt, "2", 1 )
QM_MENU_ITEM( "3. Top Gun", exec "VoiceChat fd03"; close wm_music_alt, "3", 2 )
QM_MENU_ITEM( "4. Gi Joe",
QM_MENU_ITEM( "5. Bee Gees",
QM_MENU_ITEM( "6. Elton John",
QM_MENU_ITEM( "7. Beastman",
QM_MENU_ITEM( "8. Transformers",
QM_MENU_ITEM( "9. Imperial March",
QM_MENU_ITEM( "0. Down For Life",
QM_MENU_END
QM_MENU_START( “wm_movies_alt” )
QM_MENU_ITEM( "1. balls", exec "VoiceChat balls"; close wm_movies_alt, "1", 0 )
QM_MENU_ITEM( "2. Beavis", exec "VoiceChat beavis"; close wm_movies_alt, "2", 1 )
QM_MENU_ITEM( "3. "Homer, exec "VoiceChat urgay"; close wm_movies_alt, "3", 2 )
QM_MENU_ITEM( "4. Apology Accepted", exec "VoiceChat accepted"; close wm_movies_alt, "4", 3 )
QM_MENU_ITEM( "5. Best Friend", exec "VoiceChat bestwrst"; close wm_movies_alt, "5", 4 )
QM_MENU_ITEM( "6. Big Boned", exec "VoiceChat bigboned"; close wm_movies_alt, "6", 5 )
QM_MENU_ITEM( "7. Be Right Back", exec "VoiceChat brb"; close wm_movies_alt, "7", 6 )
QM_MENU_ITEM( "8. Come Out", exec "VoiceChat comeout"; close wm_movies_alt, "8", 7 )
QM_MENU_ITEM( "9. Even More movies!", close wm_movies_alt; open wwm_wm_movies_alt2_alt, "9", 8 )
QM_MENU_END
QM_MENU_START( “wm_420_alt” )
QM_MENU_ITEM( "1. bong", exec "VoiceChat bong"; close wm_420_alt, "1", 0 )
QM_MENU_ITEM( "1. smoke weed everyday", exec "VoiceChat smokeweed"; "2", 1 )
QM_MENU_END
QM_MENU_START( “wm_gross_alt” )
QM_MENU_ITEM( "1. Fart", exec "VoiceChat fart_z"; close wm_gross_alt, "1", 0 )
QM_MENU_ITEM( "2. Puke", exec "VoiceChat puke"; close wm_gross_alt, "2", 1 )
QM_MENU_ITEM( "3. Burp", exec "VoiceChat beer"; close wm_gross_alt, "3", 2 )
QM_MENU_END
QM_MENU_START( “wm_animals_alt” )
QM_MENU_ITEM( "1. Bear", exec "VoiceChat bear"; close wm_animals_alt, "1", 0 )
QM_MENU_ITEM( "2. Monkey", exec "VoiceChat monkey"; close wm_animals_alt, "2", 1 )
QM_MENU_ITEM( "3. Goat", exec "VoiceChat goat"; close wm_animals_alt, "3", 2 )
QM_MENU_ITEM( "4. Cow", exec "VoiceChat wow"; close wm_animals_alt, "4", 3 )
QM_MENU_END
QM_MENU_START( “wm_misc_alt” )
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
QM_MENU_START( “wm_quickteam_alt” )
QM_MENU_ITEM_TEAM( “1. Provide sniper cover”, exec “VoiceTeamChat FTProvideSniperCover”; close wm_quickteam_alt, “1”, 0 )
QM_MENU_ITEM_TEAM( “2. Go undercover”, exec “VoiceTeamChat FTGoUndercover”; close wm_quickteam_alt, “2”, 1 )
QM_MENU_ITEM_TEAM( “3. Infiltrate”, exec “VoiceTeamChat FTInfiltrate”; close wm_quickteam_alt, “3”, 2 )
QM_MENU_ITEM_TEAM( “4. Explore the area”, exec “VoiceTeamChat FTExploreArea”; close wm_quickteam_alt, “4”, 3 )
QM_MENU_ITEM_TEAM( “5. Check for landmines”, exec “VoiceTeamChat FTCheckLandMines”; close wm_quickteam_alt, “5”, 4 )
QM_MENU_ITEM_TEAM( “6. Fall back”, exec “VoiceTeamChat FTFallBack”; close wm_quickteam_alt, “6”, 5 )
QM_MENU_ITEM_TEAM( “7. Deploy mortar”, exec “VoiceTeamChat FTMortar”; close wm_quickteam_alt, “7”, 6 )
QM_MENU_ITEM_TEAM( “8. I am undercover”, exec “VoiceTeamChat newunder”; close wm_quickteam_alt, “8”, 7 )
QM_MENU_ITEM_TEAM( “9. Deploy landmines”, exec “VoiceTeamChat FTDeployLandmines”; close wm_quickteam_alt, “9”, 8 )
QM_MENU_ITEM_TEAM( “0. Disarm landmines”, exec “VoiceTeamChat FTDisarmLandmines”; close wm_quickteam_alt, “0”, 9 )
QM_MENU_END
QM_MENU_START( “wm_teamalt_alt” )
QM_MENU_ITEM( "1. Spectator", close wm_teamalt_alt; exec "team s"; exec "vstr select_spectator;", "1", 0 )
QM_MENU_ITEM( "2. Spawnpoint", close wm_teamalt_alt; open wm_spawnpointalt; exec "vstr select_spawnpoint;", "2", 1 )
QM_MENU_ITEM( "3. Abort", close wm_teamalt_alt, "3", 2 )
QM_MENU_END
QM_MENU_START( “wm_spawnpointalt” )
QM_MENU_ITEM( "1. Spawnpoint 1", exec "setspawnpt 1"; exec "vstr select_spawn1;"; close wm_spawnpointalt, "1", 0 )
QM_MENU_ITEM( "2. Spawnpoint 2", exec "setspawnpt 2"; exec "vstr select_spawn2;"; close wm_spawnpointalt, "2", 1 )
QM_MENU_ITEM( "3. Spawnpoint 3", exec "setspawnpt 3"; exec "vstr select_spawn3;"; close wm_spawnpointalt, "3", 2 )
QM_MENU_ITEM( "4. Spawnpoint 4", exec "setspawnpt 4"; exec "vstr select_spawn4;"; close wm_spawnpointalt, "4", 3 )
QM_MENU_ITEM( "5. Spawnpoint 5", exec "setspawnpt 5"; exec "vstr select_spawn5;"; close wm_spawnpointalt, "5", 4 )
QM_MENU_ITEM( "6. Spawnpoint 6", exec "setspawnpt 6"; exec "vstr select_spawn6;"; close wm_spawnpointalt, "6", 5 )
QM_MENU_ITEM( "7. Spawnpoint 7", exec "setspawnpt 7"; exec "vstr select_spawn7;"; close wm_spawnpointalt, "7", 6 )
QM_MENU_ITEM( "8. Spawnpoint 8", exec "setspawnpt 8"; exec "vstr select_spawn8;"; close wm_spawnpointalt, "8", 7 )
QM_MENU_ITEM( "9. Spawnpoint 9", exec "setspawnpt 9"; exec "vstr select_spawn9;"; close wm_spawnpointalt, "9", 8 )
QM_MENU_ITEM( "0. Spawnpoint 0", exec "setspawnpt 0"; exec "vstr select_spawn0;"; close wm_spawnpointalt, "0", 9 )
QM_MENU_END