Jump to content
Sign in to follow this  
r.flagg

Adding another script w/sounds to revive mission

Recommended Posts

I've tried to figure this out on my own, but so far with no luck.

Let's say for example, I wanted to add the gaurd dogs script found in this thread

http://forums.bistudio.com/showthread.php?t=87080&highlight=evil+dogs

to a mission that already has norrin's revive.

Page 3 in the Revive readme states;

"If custom sounds are to be used in your mission a config file, config.cpp, for custom sounds is located in the dialogs subfolder of the revive_sqf folder and this will need to be changed."

And I have tried to figure it out, but so far no luck.

I can disable the calls sounds from Revive by following his instructions to delete or comment out this line

#include "revive_sqf\dialogs\config.cpp"

But I'd rather keep the call sounds, and add the dog sounds too.

In the sample mission for the dogs I find this in the description.ext file

class CfgSounds

{

sounds[] = {

scream,dog_maul01,dog_yelp

};

class scream {name="scream";sound[]={\sounds\scream.ogg, 0.5, 1.0};titles[] = {};};

class dog_maul01 {name="dog_maul01";sound[]={\sounds\dog_maul01.ogg,0.5,1};titles[] = {};};

class dog_yelp {name="dog_yelp01";sound[]={\sounds\dog_yelp,0.5,1};titles[] = {};};

};

And I see that "Cfg Sounds" are what's listed in the config.cpp for Revive, so I thought maybe I could just add those lines and get away with it. But that didn't work, or I did it wrong.

The dogs script is just an example. I'm sure there are more. Plus I've seen other examples when I try to add revive to other missions I've downloaded (just for my own personal use - I wouldn't alter someones mission and release it).

I'll keep trying to figure it out on my own, but at the same time I'm asking for help, in case it's not a big deal, and someone in the know doesn't mind sharing knowledge.

Thanks!

Share this post


Link to post
Share on other sites

Easy Way:

revive_sqf\dialogs\config.cpp

Open that with Notepad or some script editor and simply add your new defines.

Not As Easy Way:

Delete the above file and just define all of the sounds in description.ext

If none of this works, I'll be back home in a bit and can give a step by step.

Share this post


Link to post
Share on other sites

Well, I had already tried to open the config.cpp, and add those lines, but I had failed. But... when you replied saying that was in fact the way to go, it game me inspiration to try again. And this time, success! :bounce3:

Thank you Mr. Grimes.

Turns out I just needed to pay a lot more attention to things like

"

and

}

and so on. And the stuff in the description file for the sample mission of the dogs didn't have some quotation marks, that were needed in the config.cpp. Whether that's a mistake on his part, or just some weird way these things work, I dunno.

But anyway, even though your reply wasn't in detail, it was enough to encourage me towards success, so thanks again.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×