Home   Help Search Login Register  

Author Topic: 'r' is for ruff tuff.......  (Read 1209 times)

0 Members and 1 Guest are viewing this topic.

LimeCordial

  • Guest
'r' is for ruff tuff.......
« on: 01 Sep 2002, 16:40:49 »
you know on the first training mission of the main campaign the soldiers are running around and they are chanting a song? how can i make them do that in a mission?

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:'r' is for ruff tuff.......
« Reply #1 on: 01 Sep 2002, 16:46:53 »
they are? - hmmmm, missed that.

its all done with sound descriptions in the description.ext. Basiccally you add the chant (.ogg music file) to the missions folder (in its own folder name 'sound') and then u refer to it in the descrip.ext

// Define sounds in the game.
class CfgSounds
{
// Contains a list of all the .ogg files (without the .ogg extension) which are
// in all of the CfgSounds class instances below.
sounds[] =
{
S02v01, S02v02, S02v03, S02v05, S02v06, S02v07, S02v08, S02v12, S02v13, S02v14,
S02v50
};


// Define a specific sound
// The class name is referenced in the mission.sqm file. (e.g. say ""S02v61"")
class S02v61
{
// Name. Why do some have names and others don't? How is this used?
name = "";

// Sound file to use
// First entry is sound file to use (from sounds directory)
// Second field?
// Third field? Pitch maybe?
sound[] = {"S02v61.ogg", db-10, 1.0};


// Text String to accompany the sound. Found in stringtable.csv file
// What does multiple entries mean?
titles[] =
{
0, $STRM_S02v61
};
};


(taken from the command reference)

then you make the sound appear in game using either the effetc part of the trigger or making a soldier 'say' the sound.
Proud Member of the Volunteer Commando Battalion

LimeCordial

  • Guest
Re:'r' is for ruff tuff.......
« Reply #2 on: 01 Sep 2002, 16:49:26 »
woah, sounds a bit complicated for just a piece of 'scenery'. i think i'll forget about it unless there is an easier way...... :-\

Cedaie

  • Guest
Re:'r' is for ruff tuff.......
« Reply #3 on: 02 Sep 2002, 02:06:09 »
hehe I asked this question a while back, the file is Song.wss which is under the Training00 or 00training in the 1985 campaign, just un-pbo the 1985 and nab it from there.

Then, just put in these lines into your users/missions/missionname/Description.ext (make a new text file called description.ext)

[sub
class CfgSounds
{
  sounds[] = {Song};

  class Song
  {
      name = "neermind";
      sound[] = {"song.wss", db+30, 1.0};
      titles[] = {};
  };


};
[/sub]
basically you just make a folder called 'sound' (w/o quotes) into the mission folder and in the init field of the person you want it to come from, type 'this say "Song"

easiest way to do it that I know.
« Last Edit: 02 Sep 2002, 02:08:25 by Cedaie »