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

Members Online

»
0 Active | 116 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: thunder sound
utdfederation
General Member
Since: Jan 11, 2007
Posts: 142
Last: Nov 13, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Thursday, Mar. 29, 2007 12:39 am
well for the life of me i can't get the thunder to work in my map at all every tutorial i have read i have tried with no luck.

can anyone please detail what the script procedure is please and what i got to put in ones map
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Thursday, Mar. 29, 2007 06:14 pm
There is a tutorial in the CoDUO section which works. "Custom sounds" or something it's called.
Share |
DarthBrooks
General Member
Since: Nov 24, 2005
Posts: 76
Last: Jun 14, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Apr. 15, 2007 09:34 pm
This is what works for me.


Code:

main()
{
thread thunder_MAPNAME();
thread thunder_MAPNAME2();
}

thunder_MAPNAME()
{
    wait 120 + randomint(120); 

      boom = spawn("script_origin", (-8442, 7018, 1854));
       boom playsound("elm_thunder_MAPNAME");
}
thunder_MAPNAME2()
{
    wait 120 + randomint(120); 

      boom2 = spawn("script_origin", (-8548, -209, 1854));
      boom2 playsound("elm_thunder_MAPNAME2");


It's in it's own little .gsc file that the main gcs refers to. It plays two thunder sounds at random. You will need add all the little niceties of fixing names and making sure the soundaliases are right.

Cut it in half for one sound
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»