Speaker function

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

XKA Murdock
Sergeant
Posts: 59
Joined: Wed Mar 12, 2003 7:28 pm

Post by XKA Murdock »

do i have to put my wavs ina certain format like 8 bit mono? can i use mp3s? (this would be great for map distrubution :D)
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post by panTera »

well, the original sounds are in: PCM 44,100 kHz; 16 Bit; Mono, but an 8bit mono wav can also be used.
And yes you can use mp3;) But note that a mp3 cannot be called from your pk3. You'll have to distribute it along with your map's pk3 and zip them together.
Now go make some noise! 8)
XKA Murdock
Sergeant
Posts: 59
Joined: Wed Mar 12, 2003 7:28 pm

Post by XKA Murdock »

thnx a lot, i converted my wav to 44100 kjhz moo 16 bit and now it works :D

do the mp3's files have to be 441100khz 16 bit mono to play?
XKA Murdock
Sergeant
Posts: 59
Joined: Wed Mar 12, 2003 7:28 pm

Post by XKA Murdock »

this map u made for "The Storm" i understod it and was able to create an equal one, but how do i get the sound to be playing from the begginin (it's bad write..) and to hear only when the player is close to it?
I love when a plan comes toghether!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Just use a loopsound command in your script. 8)
Image
XKA Murdock
Sergeant
Posts: 59
Joined: Wed Mar 12, 2003 7:28 pm

Post by XKA Murdock »

jv_map i'm kinda dumb... can you convert your map so that it is always playng that heli sound? only when the player gets close of course... i'd apreciate that... but there's no rush... convert it when you have time! thnx
I love when a plan comes toghether!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You only need some modifications in the script. Post the script here and I'll show you what to change! :D
Image
XKA Murdock
Sergeant
Posts: 59
Joined: Wed Mar 12, 2003 7:28 pm

Post by XKA Murdock »

k this is what i got in g2.scr:

Code: Select all

start:
	level waittill spawn

	while(1)
	{
		$soundtrigger triggerable
		$soundtrigger waittill trigger
		$speaker playsound ateam
		$soundtrigger nottriggerable
		wait 7
	}
end
this is what i got in the g2.tik

Code: Select all

TIKI

setup
{
	path models/fx/dummy
	skelmodel dummy3.skd
}

init
{
	server
	{
	   classname ScriptModel
		rendereffects +dontdraw
		notsolid
	}
	client
	{
		settiki none
		aliascache ts_heli_main sound/ateam.mp3 soundparms 1.5 0.0 0.92 0.15 500 9000 item loaded maps "dm"
	}
}

animations
{
	idle     dummy3.skc
}
you might notice some equalness to your map :D it's basically copy, past...
I love when a plan comes toghether!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Code: Select all

start: 
   level waittill spawn 

   $speaker loopsound ateam 
end
Note that the ubersound work-around doesn't seem to work on dedicated servers :cry:
Image
XKA Murdock
Sergeant
Posts: 59
Joined: Wed Mar 12, 2003 7:28 pm

Post by XKA Murdock »

in my map it didn't work, i tryed to modify your's and it didn't work either... i'd prefer the demo map... with the always looping mp3... would it be askin too much?
I love when a plan comes toghether!
XKA Murdock
Sergeant
Posts: 59
Joined: Wed Mar 12, 2003 7:28 pm

Post by XKA Murdock »

jv_map i know i'm annoying... bu tplease take in consieration some n00b's n00bness and help him out to make his damn map... please convert your map to an always looping sound only in that ringbell area, like if it was a speaker.

thnx and sorry to bother my friend!
I love when a plan comes toghether!
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Hmm,

$speaker loopsound ts_heli_main //where ts_heli_main is your tiki sound name

Later. Cheers.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Post Reply