enable new VoiceComs

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5520 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-08-02 18:15:22 +00:00
parent 2de4985fe0
commit ea5bf0cca6
5 changed files with 30 additions and 11 deletions
+4 -5
View File
@@ -30,7 +30,7 @@ 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 ["Under way" "On the move"] "underway onthemove" 3
genvcitem "Got your back!" goturback 4
genvcitem "In Position!" inposition 5
@@ -57,10 +57,9 @@ genvcitem "I'm on your team, man!" imonyourteamman
// 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 // *
genvcitem "Stay together!" staytogether 2
genvcitem "Stay here!" stayhere 3
genvcitem "Report In!" reportin 4 // *
// V 6 [ 1,2,3 ]
newmenu "Public Talk" 1 1
+8 -2
View File
@@ -561,6 +561,12 @@ menuitemcheckbox "Stay together: " "(soundmuted 83)" "mutesound 83 (!
menuitemcheckbox "There's no way sir: " "(soundmuted 84)" "mutesound 84 (! $arg1)"
menuitemcheckbox "We did it!: " "(soundmuted 85)" "mutesound 85 (! $arg1)"
menuitemcheckbox "Yes: " "(soundmuted 86)" "mutesound 86 (! $arg1)"
menuitemcheckbox "Nice shot: " "(soundmuted 87)" "mutesound 87 (! $arg1)"
menuitemcheckbox "Under way: " "(soundmuted 87)" "mutesound 87 (! $arg1)"
menuitemcheckbox "On the move: " "(soundmuted 88)" "mutesound 88 (! $arg1)"
menuitemcheckbox "Got your back: " "(soundmuted 89)" "mutesound 89 (! $arg1)"
menuitemcheckbox "In position: " "(soundmuted 90)" "mutesound 90 (! $arg1)"
menuitemcheckbox "Report In!: " "(soundmuted 91)" "mutesound 91 (! $arg1)"
menuitemcheckbox "Nice shot: " "(soundmuted 92)" "mutesound 92 (! $arg1)"
menuitemcheckbox "Thanks: " "(soundmuted 93)" "mutesound 93 (! $arg1)"
menuitemcheckbox "Awesome: " "(soundmuted 94)" "mutesound 94 (! $arg1)"
+8 -1
View File
@@ -97,7 +97,14 @@ registersound "voicecom/staytogether" // 83
registersound "voicecom/theresnowaysir" // 84
registersound "voicecom/wedidit" // 85
registersound "voicecom/yes" // 86
registersound "voicecom/niceshot" // 87
registersound "voicecom/underway" // 87
registersound "voicecom/onthemove" // 88
registersound "voicecom/goturback" // 89
registersound "voicecom/inposition" // 90
registersound "voicecom/reportin" // 91
registersound "voicecom/niceshot" // 92 : public
registersound "voicecom/thanks" // 93 : public
registersound "voicecom/awesome" // 94 : public
// Music
registermusic "pingpong/03-pp-kamikadze" // M_FLAGGRAB
+2 -2
View File
@@ -409,9 +409,9 @@ void voicecom(char *sound, char *text)
{
defformatstring(soundpath)("voicecom/%s", sound);
int s = audiomgr.findsound(soundpath, 0, gamesounds);
if(s < 0 || s < S_AFFIRMATIVE || s > S_NICESHOT) return;
if(s < 0 || s < S_AFFIRMATIVE || s > S_AWESOME) return;
audiomgr.playsound(s, SP_HIGH);
if(s == S_NICESHOT) // public
if(s >= S_NICESHOT) // public
{
addmsg(SV_VOICECOM, "ri", s);
toserver(text);
+8 -1
View File
@@ -55,7 +55,14 @@ enum
S_THERESNOWAYSIR,
S_WEDIDIT,
S_YES,
S_NICESHOT,
S_UNDERWAY,
S_ONTHEMOVE,
S_GOTURBACK,
S_INPOSITION,
S_REPORTIN,
S_NICESHOT, // begin: public
S_THANKS,
S_AWESOME,
S_NULL
};