From 8c33232f9dfe033af57cdfd0140e3e2e4f578742 Mon Sep 17 00:00:00 2001 From: flowtron Date: Sat, 3 Jul 2010 14:59:15 +0000 Subject: [PATCH] new and old style voicecom menu (testing) git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5277 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/menu_voicecom_v1.cfg | 57 +++++++++++++++++++++++++++++ config/menu_voicecom_v2.cfg | 69 ++++++++++++++++++++++++++++++++++++ config/menus_multiplayer.cfg | 60 ++----------------------------- 3 files changed, 129 insertions(+), 57 deletions(-) create mode 100644 config/menu_voicecom_v1.cfg create mode 100644 config/menu_voicecom_v2.cfg diff --git a/config/menu_voicecom_v1.cfg b/config/menu_voicecom_v1.cfg new file mode 100644 index 00000000..67decdb6 --- /dev/null +++ b/config/menu_voicecom_v1.cfg @@ -0,0 +1,57 @@ +newmenu voicecom 1 1 + +menuitem "1. Team Commands" [showmenu "Team Commands"] +menuitem "2. Team State" [showmenu "Team State"] +menuitem "3. Team Talk" [showmenu "Team Talk"] +menuitem "4. Public Talk" [showmenu "Public Talk"] + + +alias vcrnd [ // pick random shout if possible + alias len (listlen $arg1) + if (> $len 1) [ + alias r (rnd $len) + voicecom (at $arg1 $r) (at $arg2 $r) + ] [ + voicecom $arg1 $arg2 + ] +] + + +alias genvcitem [ + if (> (listlen $arg2) 1) [ alias text (at $arg1 0) ] [ alias text $arg1 ] // split multiple shouts + alias action (concatword vcrnd " [" $arg2 "]" " [" $arg1 "]") + menuitem (concatword $arg3 ". " $text) $action // add as numbered list +] + + +newmenu "Team Commands" 1 1 + +genvcitem "Come on, move!" comeonmove 1 +genvcitem "Cover me!" coverme 2 +genvcitem "Spread out!" spreadout 3 +genvcitem "Stay here!" stayhere 4 +genvcitem "Stay together!" staytogether 5 +genvcitem "Defend the flag!" defendtheflag 6 +genvcitem "Recover the flag!" recovertheflag 7 + + +newmenu "Team State" 1 1 + +genvcitem ["Enemy down" "I got one"] "enemydown igotone" 1 +genvcitem "I made contact" imadecontact 2 +genvcitem "I'm attacking" imattacking 3 +genvcitem "I'm on defense" imondefense 4 +genvcitem "Coming in with the flag!" cominginwiththeflag 5 + + +newmenu "Team Talk" 1 1 + +genvcitem [Yes Affirmative "All right, Sir"] "yes affirmative allrightsir" 1 +genvcitem ["Negative" "No can do" "There's no way, Sir!"] "negative nocando theresnowaysir" 2 +genvcitem "Sorry" sorry 3 +genvcitem "I'm on your team, man!" imonyourteamman 4 +genvcitem ["We did it!" "Go get 'em boys!" "Good job, team!"] "wedidit gogetemboys goodjobteam" 5 + +newmenu "Public Talk" 1 1 + +genvcitem "Nice shot" niceshot 1 diff --git a/config/menu_voicecom_v2.cfg b/config/menu_voicecom_v2.cfg new file mode 100644 index 00000000..925f886a --- /dev/null +++ b/config/menu_voicecom_v2.cfg @@ -0,0 +1,69 @@ +newmenu voicecom 1 1 + +menuitem "1. Team Replies" [showmenu "Team Replies"] +menuitem "2. Team Commands" [showmenu "Team Commands"] +menuitem "3. Team State" [showmenu "Team State"] +menuitem "4. Team Talk" [showmenu "Team Talk"] +menuitem "5. Team Tactics" [showmenu "Team Tactics"] +menuitem "6. Public Talk" [showmenu "Public Talk"] + + +alias vcrnd [ // pick random shout if possible + alias len (listlen $arg1) + if (> $len 1) [ + alias r (rnd $len) + voicecom (at $arg1 $r) (at $arg2 $r) + ] [ + voicecom $arg1 $arg2 + ] +] + + +alias genvcitem [ + if (> (listlen $arg2) 1) [ alias text (at $arg1 0) ] [ alias text $arg1 ] // split multiple shouts + alias action (concatword vcrnd " [" $arg2 "]" " [" $arg1 "]") + menuitem (concatword $arg3 ". " $text) $action // add as numbered list +] + +// V 1 [ 1,2 ] +newmenu "Team Replies" 1 1 +// the following two mirror F1/F2 - disagree/agree +genvcitem [Yes Affirmative "All right, Sir"] "yes affirmative allrightsir" 1 // # +genvcitem ["Negative" "No can do" "There's no way, Sir!"] "negative nocando theresnowaysir" 2 // * +genvcitem ["under way" "on the move"] "underway onthemove" 3 +genvcitem "Got your back!" goturback 4 +genvcitem "In Position!" inposition 5 + +// V 2 [ 1,2,3 ] +newmenu "Team Commands" 1 1 +genvcitem "Recover the flag!" recovertheflag 1 // * +genvcitem "Defend the flag!" defendtheflag 2 // # +genvcitem ["Come on, move!" "Spread Out!"] "comeonmove spreadout" 3 // * + +// V 3 [ 2,3,4 ] +newmenu "Team State" 1 1 +genvcitem "I'm attacking" imattacking 1 +genvcitem "Coming in with the flag!" cominginwiththeflag 2 // * +genvcitem "I made contact" imadecontact 3 // # +genvcitem ["Enemy down" "I got one"] "enemydown igotone" 4 // * +genvcitem "I'm on defense" imondefense 5 + +// V 4 [ 1,2,3 ] +newmenu "Team Talk" 1 1 +genvcitem ["We did it!" "Go get 'em boys!" "Good job, team!"] "wedidit gogetemboys goodjobteam" 1 +genvcitem "Sorry" sorry 2 +genvcitem "I'm on your team, man!" imonyourteamman 3 // * + +// V 5 [ 1,2,3 ] +newmenu "Team Tactics" 1 1 +genvcitem "Cover me!" coverme 1 +//genvcitem "Stay together!" staytogether 2 +genvcitem "Stay here!" stayhere 2 +genvcitem "Report In!" reportin 3 +// 4 // * + +// V 6 [ 1,2,3 ] +newmenu "Public Talk" 1 1 +genvcitem "Nice shot" niceshot 1 +genvcitem "Thanks" thanks 2 +genvcitem "Awesome" awesome 3 diff --git a/config/menus_multiplayer.cfg b/config/menus_multiplayer.cfg index 777f0186..909e634f 100644 --- a/config/menus_multiplayer.cfg +++ b/config/menus_multiplayer.cfg @@ -202,60 +202,6 @@ menuitem " 2 [ Download the servers map version and join the game ]" "getmap" menuitem " 3 [ Keep the local map version and disconnect from the server ]" [ showmenu ""; disconnect ] menuinitselection 4 -newmenu voicecom 1 1 - -menuitem "1. Team Commands" [showmenu "Team Commands"] -menuitem "2. Team State" [showmenu "Team State"] -menuitem "3. Team Talk" [showmenu "Team Talk"] -menuitem "4. Public Talk" [showmenu "Public Talk"] - - -alias vcrnd [ // pick random shout if possible - alias len (listlen $arg1) - if (> $len 1) [ - alias r (rnd $len) - voicecom (at $arg1 $r) (at $arg2 $r) - ] [ - voicecom $arg1 $arg2 - ] -] - - -alias genvcitem [ - if (> (listlen $arg2) 1) [ alias text (at $arg1 0) ] [ alias text $arg1 ] // split multiple shouts - alias action (concatword vcrnd " [" $arg2 "]" " [" $arg1 "]") - menuitem (concatword $arg3 ". " $text) $action // add as numbered list -] - - -newmenu "Team Commands" 1 1 - -genvcitem "Come on, move!" comeonmove 1 -genvcitem "Cover me!" coverme 2 -genvcitem "Spread out!" spreadout 3 -genvcitem "Stay here!" stayhere 4 -genvcitem "Stay together!" staytogether 5 -genvcitem "Defend the flag!" defendtheflag 6 -genvcitem "Recover the flag!" recovertheflag 7 - - -newmenu "Team State" 1 1 - -genvcitem ["Enemy down" "I got one"] "enemydown igotone" 1 -genvcitem "I made contact" imadecontact 2 -genvcitem "I'm attacking" imattacking 3 -genvcitem "I'm on defense" imondefense 4 -genvcitem "Coming in with the flag!" cominginwiththeflag 5 - - -newmenu "Team Talk" 1 1 - -genvcitem [Yes Affirmative "All right, Sir"] "yes affirmative allrightsir" 1 -genvcitem ["Negative" "No can do" "There's no way, Sir!"] "negative nocando theresnowaysir" 2 -genvcitem "Sorry" sorry 3 -genvcitem "I'm on your team, man!" imonyourteamman 4 -genvcitem ["We did it!" "Go get 'em boys!" "Good job, team!"] "wedidit gogetemboys goodjobteam" 5 - -newmenu "Public Talk" 1 1 - -genvcitem "Nice shot" niceshot 1 +// change the following two lines if you prefer the old layout +//exec config/menu_voicecom_v1.cfg +exec config/menu_voicecom_v2.cfg