plane sound / custom tik

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

plane sound / custom tik

Post by General Death »

I followed the tut on Nemesis site on how to add flying planes to your map and everything worked fine but there is no sound to the plane. Whats wrong with his script?

http://users.1st.net/kimberly/Tutorial/plane.htm

When I dl his bsp and scr and run it in mohaa there is no sound also.
Last edited by General Death on Sat Jul 12, 2003 12:54 am, edited 1 time in total.
Image
Desert Eagle
Captain
Posts: 237
Joined: Mon Jan 13, 2003 1:05 am
Location: Mapping Bunker
Contact:

Post by Desert Eagle »

For AA or Spearhead? Some of the sounds do not load (tiki) from AA to Spearhead or are overwritten.

Spearhead ubersounds:

// Airplanes
alias plane1 sound/vehicle/M1_PlaneBy.wav soundparms 1.5 0.2 1.0 0.3 600 10000 weapon streamed maps "t dm obj "
alias plane2 sound/vehicle/M1_PlaneBy.wav soundparms 1.5 0.2 1.2 0.3 600 10000 weapon streamed maps "t dm obj "
alias plane3 sound/vehicle/M1_PlaneBy.wav soundparms 1.5 0.2 0.9 0.2 600 10000 weapon streamed maps "t dm obj "
alias plane4 sound/vehicle/M1_PlaneBy.wav soundparms 1.5 0.2 0.8 0.2 500 10000 weapon streamed maps "t dm obj "

AA ubersounds:


alias airplane3 sound/vehicle/M1_PlaneBy.wav soundparms 1.3 0.2 1.0 0.3 600 5000 weapon streamed maps "m5 train"
alias airplane4 sound/vehicle/M1_PlaneBy.wav soundparms 1.3 0.2 1.0 0.3 600 5000 weapon streamed maps "m5 train"
alias airplane5 sound/vehicle/M1_PlaneBy.wav soundparms 1.3 0.2 0.9 0.2 600 5000 weapon streamed maps "dm moh obj train"
alias airplane6 sound/vehicle/M1_PlaneBy.wav soundparms 1.3 0.2 0.9 0.2 500 5000 weapon streamed maps "dm moh obj train"
Desert-Eagle
....The Eagle Has Landed...
User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

Post by General Death »

For AA...Spearhead mapping, blah...lol

So what does this mean?

Code: Select all

alias airplane3 sound/vehicle/M1_PlaneBy.wav soundparms 1.3 0.2 1.0 0.3 600 5000 weapon streamed maps "m5 train" 
alias airplane4 sound/vehicle/M1_PlaneBy.wav soundparms 1.3 0.2 1.0 0.3 600 5000 weapon streamed maps "m5 train" 
alias airplane5 sound/vehicle/M1_PlaneBy.wav soundparms 1.3 0.2 0.9 0.2 600 5000 weapon streamed maps "dm moh obj train" 
alias airplane6 sound/vehicle/M1_PlaneBy.wav soundparms 1.3 0.2 0.9 0.2 500 5000 weapon streamed maps "dm moh obj train"
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

See my ubersound tut ;) It features a short explanation of the above.
Image
User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

Post by General Death »

will do....now to get lost in ubersound...lol
Image
Desert Eagle
Captain
Posts: 237
Joined: Mon Jan 13, 2003 1:05 am
Location: Mapping Bunker
Contact:

Post by Desert Eagle »

Yes get very lost....LOL

In my case, my plane's targetname was fighter

for aa:

$fighter playsound airplane5

for sp:

$fighter playsound plane1
Desert-Eagle
....The Eagle Has Landed...
User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

Post by General Death »

So am I to edit the models tiki and add the info to direct it to the sound I want or create a seperate tiki? If I create a seperate one how does it know when to start when the plane flys in and then stop when the plane is gone?
Image
User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

Post by General Death »

ok....what do I have wrong???

Code: Select all

/*
Vehicle sounds + weapons
========================
	-King Tiger Tank
	-Tiger Tank
	-Sherman Tank
	-Halftrack
	-Jeep
	-Opel Truck
	-Planes
	-Trains
	-King Tiger Cannon
	-Tiger Cannon
	-Flak 88
================================
Ubersound TIKI fix method element
by jv_map 10-12-2002 v1.0
=================================
Unknown - compartimented
*/

TIKI

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

init
{
	server
	{
	    classname ScriptModel
		rendereffects +dontdraw
		notsolid
	}
	client
	{
		settiki none
		//================================================================================
		// VEHICLES
		//================================================================================
		
		/*
		//planes
		alias Zeroflyby sound/Zeroflyby.wav soundparms 1.3 0.2 1.0 0.3 600 5000 weapon streamed maps "midway"
		alias corsairflyby sound/corsairflyby.wav soundparms 1.3 0.2 1.0 0.3 600 5000 weapon streamed maps "midway"
		*/
	}
}

animations
{
	idle     dummy3.skc
}
with this error:

Code: Select all

 ERROR:Entity:sound: Zeroflyby Alias does not exist in ubersound or uberdialog error

ERROR:Entity:sound: corsairflyby Alias does not exist in ubersound or uberdialog error
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

the /* before the lines and the */ after the lines comment everything in between. remove those.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

plane

Post by tltrude »

You did not read the tutorial very well. The plane does not play the sound.

1. You need to add a script_origin near the plane's path and give it a targetname "bomberspeaker" and it must have the same #set number as first node in the the path.

2. Add the following key/value:
Key: sound
Value: airplane5

3. Place it near the path where players are most likely to be and the bomber script will set it off when the plane goes by it.

4. You can also set a #pause number to delay the sound in the bomberspeaker's entity properties.

So, you don't need an ubersound workaround, or anything in your script for the sound. Another good sound is "m1l3b_stuka_strafing_run".

Image

Here is the URL to download the above tutorial map:
http://pages.sbcglobal.net/tltrude/Temp/test_bomber.zip
Tom Trude,

Image
User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

Post by General Death »

I did do that tltrude :)

I need custom sounds therefor I thought custom tik was the way to go.

Alcoholic, ill try that next :)
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

Desert Eagle wrote:Yes get very lost....LOL

In my case, my plane's targetname was fighter

for aa:

$fighter playsound airplane5

for sp:

$fighter playsound plane1
Sorry, I was looking at the above post. After you take out those /* things around the aliascache lines, you should be able to put key: sound and value: Zeroflyby for the sound entity.
Tom Trude,

Image
User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

Post by General Death »

:(

New tik:

Code: Select all

TIKI

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

init
{
	server
	{
	    classname ScriptModel
		rendereffects +dontdraw
		notsolid
	}
	client
	{
		settiki none
		//================================================================================
		// VEHICLES
		//================================================================================
		
		//planes
		alias Zeroflyby sound/Zeroflyby.wav soundparms 1.3 0.2 1.0 0.3 600 5000 weapon streamed maps "midway"
		alias corsairflyby sound/corsairflyby.wav soundparms 1.3 0.2 1.0 0.3 600 5000 weapon streamed maps "midway"
		
	}
}

animations
{
	idle     dummy3.skc
}
error:
Image
Image
User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

Post by General Death »

I even tried replaceing alias with aliascache....with same error :(

This is turning into a nightmare :evil:
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

If your map is a multiplayer map, the part behind 'maps' should read "obj dm".

I think the ubersound system was designed to give us nightmares :?
Image
Post Reply