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:
@@ -65,7 +65,9 @@ menuitem "> Kirin Code contributions and fixes, client stuff, advice"
|
||||
menuitem "> Rick Helmus Bot code." -1
|
||||
menuitem "> stef Bug fixes, additional code, server stuff, new modes." -1
|
||||
menuitem "> Verbal_ Q&A, advisor, lead tester, pro-coffee service." -1
|
||||
loop e 17 [ menuitem "" -1 ]
|
||||
menuitem [> Goran "DES|GeneralDisarray" Dejanovic]
|
||||
menuitem " Effects on the VoiceComs"
|
||||
loop e 15 [ menuitem "" -1 ]
|
||||
menuitem " ---- [ VVV ] --------------- PAGE DOWN.." -1
|
||||
menuitem " ---- [ ^^^ ] --------------- ..PAGE UP.." -1
|
||||
menuitem " Resources" -1
|
||||
|
||||
@@ -30,9 +30,9 @@ 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
|
||||
genvcitem ["On the move" "On my way"] "onthemove_1 onthemove_2" 3
|
||||
genvcitem ["Got your back!" "Got you covered!"] "igotyourback igotyoucovered" 4
|
||||
genvcitem ["In Position!" "In Position now!"] "inposition_1 inposition_2" 5
|
||||
|
||||
// V 2 [ 1,2,3 ]
|
||||
newmenu "Team Commands" 1 1
|
||||
@@ -63,6 +63,6 @@ genvcitem "Report In!" reportin
|
||||
|
||||
// V 6 [ 1,2,3 ]
|
||||
newmenu "Public Talk" 1 1
|
||||
genvcitem "Nice shot" niceshot 1
|
||||
genvcitem "Thanks" thanks 2
|
||||
genvcitem "Awesome" awesome 3
|
||||
genvcitem "Nice shot" niceshot 1
|
||||
genvcitem ["Thanks!" "Thanks, man"] "thanks_1 thanks_2" 2
|
||||
genvcitem ["Awesome" "Awesome!"] "awesome_1 awesome_2" 3
|
||||
|
||||
+12
-8
@@ -97,14 +97,18 @@ registersound "voicecom/staytogether" // 83
|
||||
registersound "voicecom/theresnowaysir" // 84
|
||||
registersound "voicecom/wedidit" // 85
|
||||
registersound "voicecom/yes" // 86
|
||||
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
|
||||
registersound "voicecom/onthemove_1" // 87
|
||||
registersound "voicecom/onthemove_2" // 88
|
||||
registersound "voicecom/igotyourback" // 89
|
||||
registersound "voicecom/igotyoucovered" // 90
|
||||
registersound "voicecom/inposition_1" // 91
|
||||
registersound "voicecom/inposition_2" // 92
|
||||
registersound "voicecom/reportin" // 93
|
||||
registersound "voicecom/niceshot" // 94 : public
|
||||
registersound "voicecom/thanks_1" // 95 : public
|
||||
registersound "voicecom/thanks_2" // 96 : public
|
||||
registersound "voicecom/awesome_1" // 97 : public
|
||||
registersound "voicecom/awesome_2" // 98 : public
|
||||
|
||||
// Music
|
||||
registermusic "pingpong/03-pp-kamikadze" // M_FLAGGRAB
|
||||
|
||||
@@ -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