Forum

Please or Register to create posts and topics.

Add a Siren to the Fire Engine from the AW2 Mod

While doing sounds, someone asked me how to add a siren to the Fire Engine from the AW2 Mod.

Open the sndprof.def
This time we will use the SP_FuelTruck as our base.
Again create a new Sound Profile called SP_FireTruck

This time we will only change the

soundloop_2 V_HEMTT_DLP

To

soundloop_2 V_FIRETK
begin "SP_FireTruck"	Drivable Fire Truck
	enginestart			V_HEMTT_START
	soundloop_1			V_HEMTT_ILP		.8 1.2
	soundloop_2			V_FIRETK		.7 1.1
	soundloop_3			V_HEMTT_REVSE	.8 1.2
	enginereverse		V_HEMTT_SHIFT	// gearshift oneshot
	enginehighrev //		V_ATV_HORN // Paul place airborne high-rev here
	enginestop			V_HEMTT_STOP
	sounddeath			EXPLO_HEMTT
	sound_impact		IMP_HUSK_H_GRND		//Husk impact sound
	sound_impactwater	IMP_DEBLRG_WATER	//Husk impact sound
	//SSAudio1			V_TRUCK_HORN // horn
	SSAudio2			TIRE_SKID	// Skid
	SSAudio3			IMP_V_TRUCK		// alive Collision
	warning				V_CRITICAL_ALARM
	sound_impactorganic	IMP_V_ORGANIC
	sound_rollover		IMP_V_SUV_ROLL
	sound_land			IMP_V_SUV_LAND
	tumble_hithard      IMP_TMBL_LG	// new Tumble sounds
	tumble_hitmed       IMP_TMBL_MED
	tumble_hitsoft      IMP_TMBL_SM
	tumble_skid			IMP_TMBL_DSKID
end

You might notice the horn has been edited out to it doesn't work, just delete the 2 // from the front of SSAudio1 line, now the horn works (spacebar button)

SSAudio1			V_TRUCK_HORN // horn

Save and close

Open the game.lwf
At the bottom of the first section add a new sound

 

sound "firetk1"	120	firetk1.wav

Now add the varname

begin multi
  varname "V_FIRETK"
  playlist 1028
  target 10000
end

Next add the playlist

begin playlist
  listid 1028
  distance 300 
  value 15
  sndparm	"firetk1"	65535 0 9830 205 255 0 0
end

Open the ITEMS.def find the Fire Truck entry change the SP_FuelTruck to SP_FireTruck
Save and close
Encrypt the file
Pack the files and your new firetk1.wav sound

So what we did was delete the truck driving sound and replaced it with a siren. When the Fire Truck moves the siren will come on automatically