really use the new VCs - plus attribution to DES|GeneralDisarray in creditmenu.cfg
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5529 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -409,7 +409,7 @@ 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_AWESOME) return;
|
||||
if(s < 0 || s < S_AFFIRMATIVE || s >= S_NULL) return;
|
||||
audiomgr.playsound(s, SP_HIGH);
|
||||
if(s >= S_NICESHOT) // public
|
||||
{
|
||||
|
||||
@@ -2580,7 +2580,7 @@ void process(ENetPacket *packet, int sender, int chan)
|
||||
/* spam filter */
|
||||
if ( servmillis > cl->mute ) // client is not muted
|
||||
{
|
||||
if( s < S_AFFIRMATIVE || s > S_AWESOME ) cl->mute = servmillis + 10000; // vc is invalid
|
||||
if( s < S_AFFIRMATIVE || s >= S_NULL ) cl->mute = servmillis + 10000; // vc is invalid
|
||||
else if ( cl->lastvc + 4000 < servmillis ) { if ( cl->spam > 0 ) cl->spam -= (servmillis - cl->lastvc) / 4000; } // no vc in the last 4 seconds
|
||||
else cl->spam++; // the guy is spamming
|
||||
if ( cl->spam < 0 ) cl->spam = 0;
|
||||
|
||||
+10
-6
@@ -30,7 +30,7 @@ enum
|
||||
S_MENUSELECT, S_MENUENTER,
|
||||
S_UNDERWATER,
|
||||
S_TINNITUS,
|
||||
|
||||
// begin: voicecoms
|
||||
S_AFFIRMATIVE,
|
||||
S_ALLRIGHTSIR,
|
||||
S_COMEONMOVE,
|
||||
@@ -55,14 +55,18 @@ enum
|
||||
S_THERESNOWAYSIR,
|
||||
S_WEDIDIT,
|
||||
S_YES,
|
||||
S_UNDERWAY,
|
||||
S_ONTHEMOVE,
|
||||
S_ONTHEMOVE1,
|
||||
S_ONTHEMOVE2,
|
||||
S_GOTURBACK,
|
||||
S_INPOSITION,
|
||||
S_GOTUCOVERED,
|
||||
S_INPOSITION1,
|
||||
S_INPOSITION2,
|
||||
S_REPORTIN,
|
||||
S_NICESHOT, // begin: public
|
||||
S_THANKS,
|
||||
S_AWESOME,
|
||||
S_THANKS1,
|
||||
S_THANKS2,
|
||||
S_AWESOME1,
|
||||
S_AWESOME2,
|
||||
S_NULL
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user