UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Round Starting Audio (Announcer) Quotes

broken avatar :(
Created 10 years ago
by MJPWGaming
0 Members and 1 Guest are viewing this topic.
2,750 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 5 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
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.
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: esMadrid
Date Registered: 27 March 2015
Last active: 5 years ago
Posts
371
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
JIGGLYPUFF used SING! YOU fell asleep!
Signature
×
Soy-Yo's Groups
Soy-Yo's Contact & Social LinksSoy-yoElCerdoRey
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 );
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 5 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
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. :(
Marked as best answer by MJPWGaming 10 years ago
broken avatar :(
×
broken avatar :(
Location: esMadrid
Date Registered: 27 March 2015
Last active: 5 years ago
Posts
371
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
JIGGLYPUFF used SING! YOU fell asleep!
×
Soy-Yo's Groups
Soy-Yo's Contact & Social LinksSoy-yoElCerdoRey
I think this should just work:
Code Snippet
Plaintext
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.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 5 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
I think this should just work:
Code Snippet
Plaintext
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.

Nice it worked! Thanks!
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
That'll play the same index for all chars. Include the randomInt(5) inside the function itself.

 
Loading ...