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

Members Online

»
0 Active | 7 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: Sound FX not working...
BillNye
General Member
Since: Dec 9, 2004
Posts: 38
Last: Jan 28, 2008
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Saturday, Jul. 22, 2006 10:01 pm
I followed this tutorial here; http://www.modsonline.com/Tutorials-read-155.html and that did not work... the sound just doesn't play...

for the entity;targetname/music1
sound file;music1.wav

here is mymap.gsc,
Quote:
main()
{
setCullFog (0, 8000, 0.8, 0.8, 0.8, 0);
ambientPlay("ambient_dawnville");

maps\mp\_load::main();
maps\mp\sound1::main();


game["allies"] = "american";
game["axis"] = "german";

game["american_soldiertype"] = "airborne";
game["american_soldiervariation"] = "normal";
game["german_soldiertype"] = "wehrmacht";
game["german_soldiervariation"] = "normal";

game["attackers"] = "allies";
game["defenders"] = "axis";

game["layoutimage"] = "none";

}


here is the sound1.gsc
Quote:
main()
{
thread alert_sound();

}

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

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

alerts[0] playsound("jimmysoul");

wait (3);

self thread alert_sound();

return;
}
}
}

and here is the jimmysoul.csv(don't ask)
Quote:
name,sequence,file,vol_min,vol_max,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle

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

#yourmapname Sounds,,,,,,,,,,,,,,
music1,,music/music1.wav,1.5,,,,,,local,streamed,,,,all_mp
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD Mapping
Posted: Saturday, Jul. 22, 2006 10:35 pm
Well you .csv should have the same name as your .d3dbsp so lets say your .d3dbsp is called 'mp_map'

.D3DBSP = mp_map
.CSV = mp_map
.GSC = mp_map

ok also in your .csv you need to change:
music1,,music/music1.wav,1.5,,,,,,local,streamed,,,,all_mp

to:
music1,,music/music1.wav,1.5,,,,,,local,streamed,,,,mp_map
Share |
BillNye
General Member
Since: Dec 9, 2004
Posts: 38
Last: Jan 28, 2008
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Saturday, Jul. 22, 2006 11:09 pm
I did that... and still doesn't work [confused]
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD Mapping
Posted: Saturday, Jul. 22, 2006 11:14 pm
Right so you have a script_model with a targetname of 'music1'? This explains this line of the script:
Code:
 alerts = getentarray ("music1", "targetname");


You are then using that ent to play the sound called 'jimmysoul'
Code:
 alerts[0] playsound("jimmysoul");


Yet in your soundallias you do not have a sound called 'jimmysoul'. Therefore you need to either create it or add a new line. Something like:
Code:
jimmysoul,,music/music1.wav,1.5,,,,,,local,streamed,,,,all_mp
Share |
BillNye
General Member
Since: Dec 9, 2004
Posts: 38
Last: Jan 28, 2008
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Saturday, Jul. 22, 2006 11:32 pm
ah, 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

»