Blur Gaming Custom Spawn Tutorial

The script works very well. Thanks!
I have heard that it's possible that you can use the music ONLY at the halo jump (freshspawn after dead).

Does somebody know how to change the script?

Thanks
N8hawk
 
The script works very well. Thanks!
I have heard that it's possible that you can use the music ONLY at the halo jump (freshspawn after dead).

Does somebody know how to change the script?

Thanks
N8hawk
Bumping thread as i would like this script too
 
The script works very well. Thanks!
I have heard that it's possible that you can use the music ONLY at the halo jump (freshspawn after dead).

Does somebody know how to change the script?

Thanks
N8hawk
Bumping thread as i would like this script too
Has anyone got the music working with just the para spawn instead of every time you log in?
http://opendayz.net/threads/blur-gaming-custom-spawn-tutorial.9785/page-10#post-92144
 
Is there a way to delay the start of the script? My player seems to be alive before I can see and play causing me to only see the last line.
 
Hi Everyone.

How do I get it to play multiple songs randomly as player enters server?

Meaning having 4 or 5 ogg files and the server plays 1 song on entry randomly from the 4 or 5 in there.

Anyone know how?

Cheers
 
Hi Everyone.

How do I get it to play multiple songs randomly as player enters server?

Meaning having 4 or 5 ogg files and the server plays 1 song on entry randomly from the 4 or 5 in there.

Anyone know how?

Cheers
replace your playerspawn.sqf code with this
Code:
waitUntil { alive player };
//BlurGaming Intro Script
//Random sound by Fallingsheep
sleep 4;

_random = floor (random 6); //will pick a random number between 0 and 5

if ( _random == 0 ) then {
playsound "Song1";
};
if ( _random == 1 ) then {
playsound "Song2";
};
if ( _random == 2 ) then {
playsound "Song3";
};
if ( _random == 3 ) then {
playsound "Song4";
};
if ( _random == 4 ) then {
playsound "Song5";
};
cutText ["You are playing on *ServerName*", "PLAIN DOWN"];
sleep 4;
cutText ["Second Editable Text", "PLAIN DOWN"];
sleep 4;
cutText ["Third Editable Text", "PLAIN DOWN"];

don forget to add your new songs to your description.ext

Example using the above sound names
Code:
class CfgSounds
{
    class Song1
    {
    name="Song1";
    sound[]={Song1.ogg,0.9,1};
    titles[] = {};
    };
    class Song2
    {
    name="Song2";
    sound[]={Song2.ogg,0.9,1};
    titles[] = {};
    };
    class Song3
    {
    name="Song3";
    sound[]={Song3.ogg,0.9,1};
    titles[] = {};
    };
    class Song4
    {
    name="Song4";
    sound[]={Song4.ogg,0.9,1};
    titles[] = {};
    };
    class Song5
    {
    name="Song5";
    sound[]={Song5.ogg,0.9,1};
    titles[] = {};
    };
};

enjoj random spawn music :p

NOTE ive never used the
Code:
sounds[] =
    {
    introSong
    };

and all my sounds work, not sure what its for or if its even needed :p
 
replace your playerspawn.sqf code with this
Code:
waitUntil { alive player };
//BlurGaming Intro Script
//Random sound by Fallingsheep
sleep 4;

_random = floor (random 6); //will pick a random number between 0 and 5

if ( _random == 0 ) then {
playsound "Song1";
};
if ( _random == 1 ) then {
playsound "Song2";
};
if ( _random == 2 ) then {
playsound "Song3";
};
if ( _random == 3 ) then {
playsound "Song4";
};
if ( _random == 4 ) then {
playsound "Song5";
};
cutText ["You are playing on *ServerName*", "PLAIN DOWN"];
sleep 4;
cutText ["Second Editable Text", "PLAIN DOWN"];
sleep 4;
cutText ["Third Editable Text", "PLAIN DOWN"];

don forget to add your new songs to your description.ext

Example using the above sound names
Code:
class CfgSounds
{
    class Song1
    {
    name="Song1";
    sound[]={Song1.ogg,0.9,1};
    titles[] = {};
    };
    class Song2
    {
    name="Song2";
    sound[]={Song2.ogg,0.9,1};
    titles[] = {};
    };
    class Song3
    {
    name="Song3";
    sound[]={Song3.ogg,0.9,1};
    titles[] = {};
    };
    class Song4
    {
    name="Song4";
    sound[]={Song4.ogg,0.9,1};
    titles[] = {};
    };
    class Song5
    {
    name="Song5";
    sound[]={Song5.ogg,0.9,1};
    titles[] = {};
    };
};

enjoj random spawn music :p

NOTE ive never used the
Code:
sounds[] =
    {
    introSong
    };

and all my sounds work, not sure what its for or if its even needed :p


thanks for the addition bro!

this is great!
 
Hey when i try add this to my server it hangs on " waiting for host ". I followed it exactly. When i remove it all the server is perfect again. Any ideas?
 
yep .. you done messed up
Obviously ... you may have followed it exactly .. or you might have missed a step .. or you might have placed something not quite where it needs to be ..
Errors in the description.ext result in wait for host, fortunately they almost are always easy fixes and will be the last line in your rpt log .. mostly

No matter what the reason, we can't help you unless you post your RPT log at the very least ...
 
Back
Top