Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 20 Guests
Online:

LATEST FORUM THREADS

»
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Tutorials

»
CoD Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Adding Sounds to MP
Versions: You must be logged in to view history.
How to add sounds to your map

Thanks to Pharao_FS for the work put into this tutorial.

ok i will share my knowledge now for adding sound effects in ur mp maps .

I have figure out this and it works very well.

Make a normal brush ( size is not relevant but must be more then 16x16 units)
make this brush as a " trigger_multiple " then give it the " origin " texture .

Select this brush , press " N " and type ur own " targetname " inside
Example :
classname - trigger_multiple
Targetname - aircraft
-----------------------------------

ok thats all o­n ur map first ( u can build many different triggers for ur sounds ( like near a Radio model or something ) but alltime use different Targetnames or u get a problem !!

----------------------------------

now start scripting ......

make a new gsc file called what ever u want . i use now " the_sounds.gsc "
open it and write done this for example .

main()
{
    thread alert_sound();

}

alert_sound()
{
    alerts = getentarray ("german2", "targetname");
    while (1)
    {
              {
            for (i=1;i<alerts.size;i++)
                alerts[0] playsound("german2");

            alerts[0] playsound("german2");
            
            wait (56.0);

     self thread alert_sound();

     return;
        }
        }

}

The " wait (56.6); " is how long the trigger wait before he play again the sound effect .

thats all for the_sounds.gsc first ( u can add more threads here , if u like more sounds no problem )

The " german2 " name is my soundaliases .

ok now we make a new file called yourmapname_sound.csv
write inside this .

null,1,null.wav,,,,,,,,,,,,,

#yourmapname Sounds,,,,,,,,,,,,,,
german2,,misc/yourewav.wav,0.8,1,,,80,1000,auto,,,,,,

save it .
u c there is again the german2 aliases , now COD know what to do with " german2 "

( the settings about 0.8,1 and so o­n u can read in pak1.pk3/soundaliases/iw_sound.csv there are all info u need for volume .........)

ok now u need to cfg yourmapname.gsc file add this cmd line
mapsmp he_sounds::main();

now all is fine yet ..

put the yourmapnmae.gsc and the_sounds.gsc in maps/mp and the yourmapname_sound.csv in the soundaliases folder from ur pk3 file

save all and run youre map ...vollá u hear now a sound o­n this place where u have setup the trigger_multiple .

if u use ur own sound effects u need in ur pk3 file a folder " sound " where u need to put in ur wav file

i hope u enjoy ...and sorry for my english :) i hope u understand it :)

this is o­nly a basic script ..u can also add random sounds for all the trigger .
u can now make a cool fire fx or something and give it a sound

--------------------------------------------------------------------------------------------
German:

so hab mal ein bischen rumgebaut und nach 100 abstürzen von cod rausgefunden wie ihr ein sound effekt in eure mp map reinbekommt ...zum beispiel radio sound oder wind ..etc..

zuerst müßt ihr einen brush erstellen , den machen wir als trigger_multiple und versehen ihn mit einer origin texture .
selectiert den trigger nun und drücke " N " als targetname geben wir hier zum beispiel " aircraft " ein und bestätigen die änderung ... save ...

nun haben wir irgendwo schonmal ein soundeffect
was wir nun noch machen müssen ist , cod mitteilen was er machen muss mit diesem trigger .
dazu benötigen wir ein paar scripts ..

erstellt ein file mit namen " the_sounds.gsc " <- dient jetzt nur als beispiel ( kann verschiedene namen tragen "
öffnet diesen und kopiert einfach das , was ich oben schon geschrieben habe rein ab "

main() bis zu letzten Klammer }

speichern .

german2 ist mein soundaliases was cod mitteilt das ein sound gespielt wird .

erstellt mapname_sound.csv öffnet dieses file und schreibt rein

null,1,null.wav,,,,,,,,,,,,,

#mapname Sounds,,,,,,,,,,,,,,
german2,,misc/deinwav.wav,0.8,1,,,80,1000,auto,,,,,,

die variablen 8.1 und so weiter stehen für lautstärke , radius usw... das könnt ihr alles in der pak1.pk3/soundaliases/iw_sound.csv nachlesen , da ist soweit alles erklärt .
"speichern"

mapnmae.gsc und the_sounds.gsc kommen in maps/mp verzeichniss deiner pk3 ( dein bsp file heißt in unserem beispiel " mapname.bsp " ) somit sollte klar sein wie die namen zustande kommen ...wenn ihr ändert muss auch der soundaliases geändert werden .

mapname_sound.csv muss in den soundaliases verzeichniss von eurem pk3 file .

wenn du eigene sounds verwendest muss natürlich noch ein " sound" verzeichniss erstellt werden wo deine wav reinkommen muss .

das ist jetzt nur ein basis script , natürlich könnt ihr auch wechselnde sounds auf einen trigger legen " random " .

so das alles hoffe es hilft euch eine fette map zu bauen mit effekten . denn wer sieht schon gerne ein radio inner map ohne einen sound lol..

achso ..vergesst nicht mapname.gsc zu modifizieren
also die cmd line reinschreiben

mapsmp he_sounds::main();

damit teilt ihr cod mit , das er the_sounds.gsc beim starten eurer mapname.bsp einbinden soll ( ohne das hört ihr nüx )

Gruß/regards

Pharao_FS
www.pharao-fs.de.vu


-------------------------------------------------------------------------------------------
if u dont know what i write here hehe np download the example map ( pk3 ) and learn ( u can grab the example map @ http://www.iwnation.com/Forums/index.php?showtopic=3167

-
wenn du immer noch kein plan hast was ich meine , lad dir einfach mal die beispiel map runter und schau an was ich gemacht habe .. so schlimm isses nicht hehe..


---------------------

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»