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
This commit is contained in:
flowtron
2010-07-03 14:59:15 +00:00
parent 55a7f3eeef
commit 8c33232f9d
3 changed files with 129 additions and 57 deletions
+57
View File
@@ -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
+69
View File
@@ -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
+3 -57
View File
@@ -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