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

Members Online

»
0 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: [TUTORIAL] Sound effects MP
Pharao_FS
General Member
Since: Jan 10, 2004
Posts: 2
Last: Jan 10, 2004
[view latest posts]
Level 0
Category: CoD Mapping
Posted: Saturday, Jan. 10, 2004 12:54 pm
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 on 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 .


{
thread alert_sound();

}

alert_sound()
{
alerts = getentarray ("aircraft", "targetname");
while (1)
{

{
for (i=1;i alerts[0] playsound("german2");

alerts[0] playsound("german2");

wait (56.6);

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 on 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
maps\mp\the_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 on 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 only 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

maps\mp\the_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..


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



Share |
foyleman
Preferred PLUS Member
Since: Nov 7, 2001
Posts: 95762
Last: Apr 13, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: CoD Mapping
Posted: Saturday, Jan. 10, 2004 01:37 pm
thanks.. I added it to our tutorials.
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
Pharao_FS
General Member
Since: Jan 10, 2004
Posts: 2
Last: Jan 10, 2004
[view latest posts]
Level 0
Category: CoD Mapping
Posted: Saturday, Jan. 10, 2004 01:39 pm
cool .. i hope all need this to make a map realisitc..coz what is a radio or fire or something without a sound hehe ..enjoy and happy mapping
Share |
Shoot
General Member
Since: Jun 22, 2002
Posts: 260
Last: Mar 22, 2008
[view latest posts]
Level 5
Category: CoD Mapping
Posted: Saturday, Jan. 10, 2004 03:51 pm
You sir are a GOD - I only wish I could try it out - only access to PC's currently are friends and the public library - dont think they would mind me setting up COD on that!!!

I can't wait to do this.
Thank You Thank You
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD Mapping

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

»