Hi we are writing a new easter egg and I was wondering if it is possible to start the game and have a announcer audio quote be played (also if it could choose between numerous quotes) sort of like when you start Shadows Of Evil and the Shadow Man speaks.
You can do it inside round_start() in _zombiemode.gsc. You can name the quotes like whatever1, whatever2, whatever3... and play it on every player like:
You can do it inside round_start() in _zombiemode.gsc. You can name the quotes like whatever1, whatever2, whatever3... and play it on every player like:
Code Snippet
Plaintext
self playLocalSound( "QUOTE_NAME" + index );
Ive been trying this for the last day and still nothing. :(
for (i = 0; i < players.size; i++) { players[i] giveweapon( "stielhandgranate" ); players[i] setweaponammoclip( "stielhandgranate", 0); } // ---------------------- index = randomInt( 5 ); // the number of quotes array_thread( players, ::play_announcer_quotes, index ); // ----------------------
Code Snippet
Plaintext
play_announcer_quotes( index ) { self playLocalSound( "announcer_quote_" + index ); }
Just don't know. ??? Maybe you didn't include the sounds correctly.
for (i = 0; i < players.size; i++) { players[i] giveweapon( "stielhandgranate" ); players[i] setweaponammoclip( "stielhandgranate", 0); } // ---------------------- index = randomInt( 5 ); // the number of quotes array_thread( players, ::play_announcer_quotes, index ); // ----------------------
Code Snippet
Plaintext
play_announcer_quotes( index ) { self playLocalSound( "announcer_quote_" + index ); }
Just don't know. ??? Maybe you didn't include the sounds correctly.