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:
@@ -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
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user