Engine sounds and weapon sounds
Moderator: JeremyaFr
Engine sounds and weapon sounds
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
As you might know, editing engine sounds was limited to the first 65 crafts. I've created a hook to break this limit. Now you can edit engine sounds for any craft.
Suppose that the craft is "FlightModels\[Model].opt".
To define which sound is played, create a file named "FlightModels\[Model]Sound.txt";
The format is:
EngineSoundInterior = interior sound type
EngineSoundFlyBy = flyby sound type
Use a value of 0 to not select a sound.
Add a line whith "EngineSoundInterior = value". The value is between 0 and 7:
- 0 means no sound
- 1 means EngineIntXW
- 2 means EngineIntYW
- 3 means EngineIntAW
- 4 means EngineIntTI
- 5 means EngineIntAG
- 6 means EngineIntCort
- 7 means EngineIntFalc
Add a line with "EngineSoundFlyBy = value". The value is between 0 and 7:
- 0 means no sound
- 1 means FlyByXW or FlyByXW3D
- 2 means FlyByYW or FlyByYW3D
- 3 means FlyByAW or FlyByAW3D
- 4 means FlyByTI or FlyByTI3D
- 5 means FlyByAG or FlyByAG3D
- 6 means FlyByCort or FlyByCort3D
- 7 means FlyByCort or FlyByCort3D
If the file does not exist, default values are used:
Interior sound:
type 1:
- ModelIndex_001_0_0_Xwing
- ModelIndex_004_0_3_Bwing
- ModelIndex_014_0_13_Z_95
- ModelIndex_015_0_14_R41
- ModelIndex_031_0_30_SlaveOne
type 2:
- ModelIndex_002_0_1_Ywing
- ModelIndex_011_0_10_ToscanFighter
- ModelIndex_023_0_22_CloakshapeFighter
type 3:
- ModelIndex_003_0_2_Awing
- ModelIndex_010_0_9_IrdFighter
- ModelIndex_013_0_12_Twing
- ModelIndex_027_0_26_Piggyback
type 4:
- ModelIndex_005_0_4_TieFighter
- ModelIndex_006_0_5_TieInterceptor
- ModelIndex_007_0_6_TieBomber
- ModelIndex_008_0_7_TieAdvanced
- ModelIndex_009_0_8_TieDefender
type 5:
- ModelIndex_012_0_11_MissileBoat
- ModelIndex_016_0_15_AssaultGunboat
- ModelIndex_024_0_23_RazorFighter
- ModelIndex_025_0_24_PlanetaryFighter
- ModelIndex_029_0_28_PreybirdFighter
type 6:
- ModelIndex_017_0_16_SkiprayBlastBoat
- ModelIndex_058_0_45_CorellianTransport2
- ModelIndex_065_0_52_FamilyTransport
type 7:
- ModelIndex_026_0_25_SupaFighter
- ModelIndex_032_0_31_SlaveTwo
- ModelIndex_059_0_46_MilleniumFalcon2
FlyBy sound:
type 1:
- ModelIndex_001_0_0_Xwing
- ModelIndex_004_0_3_Bwing
- ModelIndex_014_0_13_Z_95
- ModelIndex_015_0_14_R41
- ModelIndex_031_0_30_SlaveOne
type 2:
- ModelIndex_002_0_1_Ywing
- ModelIndex_011_0_10_ToscanFighter
- ModelIndex_023_0_22_CloakshapeFighter
type 3:
- ModelIndex_003_0_2_Awing
- ModelIndex_010_0_9_IrdFighter
- ModelIndex_013_0_12_Twing
- ModelIndex_027_0_26_Piggyback
type 4:
- ModelIndex_005_0_4_TieFighter
- ModelIndex_006_0_5_TieInterceptor
- ModelIndex_007_0_6_TieBomber
- ModelIndex_008_0_7_TieAdvanced
- ModelIndex_009_0_8_TieDefender
type 5:
- ModelIndex_012_0_11_MissileBoat
- ModelIndex_016_0_15_AssaultGunboat
- ModelIndex_024_0_23_RazorFighter
- ModelIndex_025_0_24_PlanetaryFighter
- ModelIndex_029_0_28_PreybirdFighter
- ModelIndex_043_0_32_Tug
- ModelIndex_044_0_33_CombatUtilityVehicle
- ModelIndex_045_0_34_HeavyLifter
- ModelIndex_050_0_37_Shuttle
- ModelIndex_051_0_38_EscortShuttle
- ModelIndex_052_0_39_StormtrooperTransport
- ModelIndex_053_0_40_AssaultTransport
- ModelIndex_054_0_41_EscortTransport
- ModelIndex_055_0_42_SystemPatrolCraft
- ModelIndex_056_0_43_ScoutCraft
type 6:
- ModelIndex_017_0_16_SkiprayBlastBoat
- ModelIndex_058_0_45_CorellianTransport2
- ModelIndex_065_0_52_FamilyTransport
type 7:
- ModelIndex_026_0_25_SupaFighter
- ModelIndex_032_0_31_SlaveTwo
- ModelIndex_059_0_46_MilleniumFalcon2
Download link:
xwa_hook_engine_sound.zip
As you might know, editing engine sounds was limited to the first 65 crafts. I've created a hook to break this limit. Now you can edit engine sounds for any craft.
Suppose that the craft is "FlightModels\[Model].opt".
To define which sound is played, create a file named "FlightModels\[Model]Sound.txt";
The format is:
EngineSoundInterior = interior sound type
EngineSoundFlyBy = flyby sound type
Use a value of 0 to not select a sound.
Add a line whith "EngineSoundInterior = value". The value is between 0 and 7:
- 0 means no sound
- 1 means EngineIntXW
- 2 means EngineIntYW
- 3 means EngineIntAW
- 4 means EngineIntTI
- 5 means EngineIntAG
- 6 means EngineIntCort
- 7 means EngineIntFalc
Add a line with "EngineSoundFlyBy = value". The value is between 0 and 7:
- 0 means no sound
- 1 means FlyByXW or FlyByXW3D
- 2 means FlyByYW or FlyByYW3D
- 3 means FlyByAW or FlyByAW3D
- 4 means FlyByTI or FlyByTI3D
- 5 means FlyByAG or FlyByAG3D
- 6 means FlyByCort or FlyByCort3D
- 7 means FlyByCort or FlyByCort3D
If the file does not exist, default values are used:
Interior sound:
type 1:
- ModelIndex_001_0_0_Xwing
- ModelIndex_004_0_3_Bwing
- ModelIndex_014_0_13_Z_95
- ModelIndex_015_0_14_R41
- ModelIndex_031_0_30_SlaveOne
type 2:
- ModelIndex_002_0_1_Ywing
- ModelIndex_011_0_10_ToscanFighter
- ModelIndex_023_0_22_CloakshapeFighter
type 3:
- ModelIndex_003_0_2_Awing
- ModelIndex_010_0_9_IrdFighter
- ModelIndex_013_0_12_Twing
- ModelIndex_027_0_26_Piggyback
type 4:
- ModelIndex_005_0_4_TieFighter
- ModelIndex_006_0_5_TieInterceptor
- ModelIndex_007_0_6_TieBomber
- ModelIndex_008_0_7_TieAdvanced
- ModelIndex_009_0_8_TieDefender
type 5:
- ModelIndex_012_0_11_MissileBoat
- ModelIndex_016_0_15_AssaultGunboat
- ModelIndex_024_0_23_RazorFighter
- ModelIndex_025_0_24_PlanetaryFighter
- ModelIndex_029_0_28_PreybirdFighter
type 6:
- ModelIndex_017_0_16_SkiprayBlastBoat
- ModelIndex_058_0_45_CorellianTransport2
- ModelIndex_065_0_52_FamilyTransport
type 7:
- ModelIndex_026_0_25_SupaFighter
- ModelIndex_032_0_31_SlaveTwo
- ModelIndex_059_0_46_MilleniumFalcon2
FlyBy sound:
type 1:
- ModelIndex_001_0_0_Xwing
- ModelIndex_004_0_3_Bwing
- ModelIndex_014_0_13_Z_95
- ModelIndex_015_0_14_R41
- ModelIndex_031_0_30_SlaveOne
type 2:
- ModelIndex_002_0_1_Ywing
- ModelIndex_011_0_10_ToscanFighter
- ModelIndex_023_0_22_CloakshapeFighter
type 3:
- ModelIndex_003_0_2_Awing
- ModelIndex_010_0_9_IrdFighter
- ModelIndex_013_0_12_Twing
- ModelIndex_027_0_26_Piggyback
type 4:
- ModelIndex_005_0_4_TieFighter
- ModelIndex_006_0_5_TieInterceptor
- ModelIndex_007_0_6_TieBomber
- ModelIndex_008_0_7_TieAdvanced
- ModelIndex_009_0_8_TieDefender
type 5:
- ModelIndex_012_0_11_MissileBoat
- ModelIndex_016_0_15_AssaultGunboat
- ModelIndex_024_0_23_RazorFighter
- ModelIndex_025_0_24_PlanetaryFighter
- ModelIndex_029_0_28_PreybirdFighter
- ModelIndex_043_0_32_Tug
- ModelIndex_044_0_33_CombatUtilityVehicle
- ModelIndex_045_0_34_HeavyLifter
- ModelIndex_050_0_37_Shuttle
- ModelIndex_051_0_38_EscortShuttle
- ModelIndex_052_0_39_StormtrooperTransport
- ModelIndex_053_0_40_AssaultTransport
- ModelIndex_054_0_41_EscortTransport
- ModelIndex_055_0_42_SystemPatrolCraft
- ModelIndex_056_0_43_ScoutCraft
type 6:
- ModelIndex_017_0_16_SkiprayBlastBoat
- ModelIndex_058_0_45_CorellianTransport2
- ModelIndex_065_0_52_FamilyTransport
type 7:
- ModelIndex_026_0_25_SupaFighter
- ModelIndex_032_0_31_SlaveTwo
- ModelIndex_059_0_46_MilleniumFalcon2
Download link:
xwa_hook_engine_sound.zip
Last edited by JeremyaFr on Fri Jul 07, 2017 4:44 pm, edited 1 time in total.
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
This is fantastic Jeremy, and so quick, really well done and thank you so much 

“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
No, we can't have unlimited values.Bman wrote: * Could this list be expanded into additional unlimited values i.e. 8 - FlyByNewCraftA.wav, 9 FlyByNewCraftB.wav, 10, .... etc. ?
Or could those values be forked in your .dll and pointed to play any specific custom-made *.wav files defined in a text file ?
* Can new additional and unique flyby sounds be added to different starships and other non-flyable craft ?
But there are 2 slots marked as "unused" in 'SFXBLASTNEW.LST".
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
I've updated the hook.
Please redownload it.
You can now use the 2 unused slots (in SFXBLASTNEW.LST) to add a custom sound.
I've added "EngineSoundFlyBy = 8":
- 8 means custom (first unused) or custom3D (second unused)
I've updated the hook.
Please redownload it.
You can now use the 2 unused slots (in SFXBLASTNEW.LST) to add a custom sound.
I've added "EngineSoundFlyBy = 8":
- 8 means custom (first unused) or custom3D (second unused)
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- Rookie_One1
- Posts: 1656
- Joined: Thu Feb 26, 2004 12:01 am
hmm
I'm guessing that DS will include it in DSUCP
BTW, now that I think about it, any chances of doing the same for laser sound ? As it's not possible to have the empire laser sound with the "tch" sound on new craft added (such as the TIE Phantom on DSUCP website), instead we get without the tch
I'm guessing that DS will include it in DSUCP

BTW, now that I think about it, any chances of doing the same for laser sound ? As it's not possible to have the empire laser sound with the "tch" sound on new craft added (such as the TIE Phantom on DSUCP website), instead we get without the tch

Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death
Current Holder of the Frying Pan of Death
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
Laser sound is replaced with "EmpireLaserChChChhh.wav" for the tie fighters (TieFighter, TieInterceptor, TieBomber, TieAdvanced, TieDefender, TieBizarro, TieBigGun, TieWarheads, TieBomb, TieBooster).
For the Corellian transports (CorellianTransport2, FamilyTransport, MilleniumFalcon2), "LaserRebel" is
replaced with "FalconLaser.wav" and "LaserRebelTurbo" is replaced with "FalconLaserTurbo.wav".
I think I will write a hook to define which sound is played when a laser is fired, for any craft.
Laser sound is replaced with "EmpireLaserChChChhh.wav" for the tie fighters (TieFighter, TieInterceptor, TieBomber, TieAdvanced, TieDefender, TieBizarro, TieBigGun, TieWarheads, TieBomb, TieBooster).
For the Corellian transports (CorellianTransport2, FamilyTransport, MilleniumFalcon2), "LaserRebel" is
replaced with "FalconLaser.wav" and "LaserRebelTurbo" is replaced with "FalconLaserTurbo.wav".
I think I will write a hook to define which sound is played when a laser is fired, for any craft.
- Rookie_One1
- Posts: 1656
- Joined: Thu Feb 26, 2004 12:01 am
To be fair, you don't have to do it (although it would be nice
)
In any case, here is a nice cake as a thank you :
http://www.garnishandglaze.com/wp-conte ... .com-9.jpg

In any case, here is a nice cake as a thank you :
http://www.garnishandglaze.com/wp-conte ... .com-9.jpg
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death
Current Holder of the Frying Pan of Death
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
Here's the hook.
This hook enables setting weapon sound behavior for any craft.
Suppose that the craft is "FlightModels\[Model].opt".
To define which sound is played, create a file named "FlightModels\[Model]Sound.txt";
The format is:
WeaponSoundBehavior = value
Use CorellianTransport or TieFighter to defines the behavior.
Use a value of 0 to not select a sound.
If the file does not exist, default values are used:
For the tie fighters (TieFighter, TieInterceptor, TieBomber, TieAdvanced, TieDefender, TieBizarro, TieBigGun, TieWarheads, TieBomb, TieBooster), laser sounds are replaced with "EmpireLaserChChChhh.wav".
For the Corellian transports (CorellianTransport2, FamilyTransport, MilleniumFalcon2), "LaserRebel" is replaced with "FalconLaser.wav" and "LaserRebelTurbo" is replaced with "FalconLaserTurbo.wav".
Download link:
EDIT: this hook is included in xwa_hook_engine_sound.
Here's the hook.
This hook enables setting weapon sound behavior for any craft.
Suppose that the craft is "FlightModels\[Model].opt".
To define which sound is played, create a file named "FlightModels\[Model]Sound.txt";
The format is:
WeaponSoundBehavior = value
Use CorellianTransport or TieFighter to defines the behavior.
Use a value of 0 to not select a sound.
If the file does not exist, default values are used:
For the tie fighters (TieFighter, TieInterceptor, TieBomber, TieAdvanced, TieDefender, TieBizarro, TieBigGun, TieWarheads, TieBomb, TieBooster), laser sounds are replaced with "EmpireLaserChChChhh.wav".
For the Corellian transports (CorellianTransport2, FamilyTransport, MilleniumFalcon2), "LaserRebel" is replaced with "FalconLaser.wav" and "LaserRebelTurbo" is replaced with "FalconLaserTurbo.wav".
Download link:
EDIT: this hook is included in xwa_hook_engine_sound.
Last edited by JeremyaFr on Fri Jul 07, 2017 7:04 pm, edited 1 time in total.
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
Hold on a minute, the Engine Sound text file are called "[Model]Sound.txt
How can the Weapon Sound text files be called the same "[Model]Sound.txt" should they be called [Model]WeaponSound.txt or something??
How can the Weapon Sound text files be called the same "[Model]Sound.txt" should they be called [Model]WeaponSound.txt or something??
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
For engine and weapon sounds, it's the same file ([Model]Sound.txt).
In this file, there are 2 entries for engine sounds (EngineSoundInterior and EngineSoundFlyBy) and 1 entry for weapon sound (WeaponSoundBehavior).
So a file that defines both engine and weapon sounds looks like this:
If this looks too confusing, I can separate the entries in 2 distinct files.
In this file, there are 2 entries for engine sounds (EngineSoundInterior and EngineSoundFlyBy) and 1 entry for weapon sound (WeaponSoundBehavior).
So a file that defines both engine and weapon sounds looks like this:
Code: Select all
; [Model]Sound.txt
EngineSoundInterior = 0
EngineSoundFlyBy = 0
WeaponSoundBehavior = 0
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
No don't separate them, I understand now, It just didn't explain that in the readme
Wouldn't it just be easier if you combined the Hooks so you didn't have two separate dll files or isn't this possible?
Just wondering as your using the same [Model]Sound.txt file
Wouldn't it just be easier if you combined the Hooks so you didn't have two separate dll files or isn't this possible?
Just wondering as your using the same [Model]Sound.txt file
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
I've included the weapon sounds hook to the engine sounds hook.
Please redownload xwa_hook_engine_sound.zip.
I've also merged the examples files to include both engine and weapon entries in the same [Model]Sound.txt.
I've included the weapon sounds hook to the engine sounds hook.
Please redownload xwa_hook_engine_sound.zip.
I've also merged the examples files to include both engine and weapon entries in the same [Model]Sound.txt.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- Rookie_One1
- Posts: 1656
- Joined: Thu Feb 26, 2004 12:01 am
I guess DS gonna have a field day with that hook for DSUCP 

Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death
Current Holder of the Frying Pan of Death
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
Jeremy is there any chance you could add the RebelLaser.wav, RebelLaserTurbo.wav and EmpireLaser.wav, EmpireLaserTurbo.wav
Is it possible to add
WeaponSoundRebelBehavior = Rebel (sounds for RebelLaser.wav and RebelLaserTurbo.wav)
WeaponSoundEmpireBehavior = Empire (sounds for EmpireLaser.wav and EmpireLaserTurbo.wav)
or
WeaponSoundRebelBehavior = Rebel (sound for RebelLaser.wav)
WeaponSoundRebelTurboBehavior = RebelTurbo (sound RebelLaserTurbo.wav)
WeaponSoundEmpireBehavior = Empire (sound for EmpireLaser.wav)
WeaponSoundEmpireTurboBehavior = EmpireTurbo (sound EmpireLaserTurbo.wav)
I only ask as I have a slight problem concerning laser sounds, and what if a laser slot doesn't have a sound associated with it
In my DSUCP there are 3 options for the Slave one,
the 1st option uses Green lasers,
the 2nd option uses Red Lasers,
the 3rd option uses Yellow lasers,
In BHE if you look in one of the weapons option (Weapons - Power, Speed, Type and so on) right at the bottom is says Open Weapon, this is disabled by default, but it can be enabled to use the laser, but it doesn't have a laser sound associated with it.
I thought at first that the hook was associated with the laser type, for example green laser opt = empire laser sound ans the same for red laser opt and rebel laser sound, and your replacing the sound type EmpireLaser.wav with EmpireLaserChChChhh.wav and so on for the CorellianTransport sounds
But I just tested the Y-wing with the Tie fighter sound, the Y-wing fired it's red lasers and I got the chchchchhh sound of the tie fighter, I also tested with the CorellianTransport sound and I got the Falcon laser sounds so it has nothing to do with the laser colour, it looks like your hook is associated with the craft name.
Anyhow thanks in advance, and sorry for wasting your time if it's not possible
________________________________________________________________________________________________________________
EDIT: I don't think it will work, tested the Slave1 with the Yellow lasers and SlaveOneSound.txt with either of the TieFighter or CorellianTransport and no sound was heard for the lasers
Is it possible to add
WeaponSoundRebelBehavior = Rebel (sounds for RebelLaser.wav and RebelLaserTurbo.wav)
WeaponSoundEmpireBehavior = Empire (sounds for EmpireLaser.wav and EmpireLaserTurbo.wav)
or
WeaponSoundRebelBehavior = Rebel (sound for RebelLaser.wav)
WeaponSoundRebelTurboBehavior = RebelTurbo (sound RebelLaserTurbo.wav)
WeaponSoundEmpireBehavior = Empire (sound for EmpireLaser.wav)
WeaponSoundEmpireTurboBehavior = EmpireTurbo (sound EmpireLaserTurbo.wav)
I only ask as I have a slight problem concerning laser sounds, and what if a laser slot doesn't have a sound associated with it
In my DSUCP there are 3 options for the Slave one,
the 1st option uses Green lasers,
the 2nd option uses Red Lasers,
the 3rd option uses Yellow lasers,
In BHE if you look in one of the weapons option (Weapons - Power, Speed, Type and so on) right at the bottom is says Open Weapon, this is disabled by default, but it can be enabled to use the laser, but it doesn't have a laser sound associated with it.
I thought at first that the hook was associated with the laser type, for example green laser opt = empire laser sound ans the same for red laser opt and rebel laser sound, and your replacing the sound type EmpireLaser.wav with EmpireLaserChChChhh.wav and so on for the CorellianTransport sounds
But I just tested the Y-wing with the Tie fighter sound, the Y-wing fired it's red lasers and I got the chchchchhh sound of the tie fighter, I also tested with the CorellianTransport sound and I got the Falcon laser sounds so it has nothing to do with the laser colour, it looks like your hook is associated with the craft name.
Anyhow thanks in advance, and sorry for wasting your time if it's not possible

________________________________________________________________________________________________________________
EDIT: I don't think it will work, tested the Slave1 with the Yellow lasers and SlaveOneSound.txt with either of the TieFighter or CorellianTransport and no sound was heard for the lasers

“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
I've added setting which sound is played for the open weapon (307).
Please redownload xwa_hook_engine_sound.zip.
This is what is added:
https://github.com/JeremyAnsel/xwa_hook ... _sound.cpp
I've added setting which sound is played for the open weapon (307).
Please redownload xwa_hook_engine_sound.zip.
This is what is added:
BTW, if you want to see how the hook works, the source code is here:Add a line with "WeaponSoundBehavior = value". The value is 0, CorellianTransport, TieFighter, Rebel, RebelTurbo, Empire or EmpireTurbo.
0 means that a default sound is played.
CorellianTransport means that Laser and LaserTurbo are replaced with FalconLaser or FalconLaserTurbo.
TieFighter means that laser sounds (RebelLaser, RebelLaserTurbo, EmpireLaser, EmpireLaserTurbo, IonCannon, IonCannonTurbo) are replaced with EmpireLaserChChChhh.
Rebel means that the open weapon (307) sound is RebelLaser.
RebelTurbo means that the open weapon (307) sound is RebelLaserTurbo.
Empire means that the open weapon (307) sound is EmpireLaser.
EmpireTurbo means that the open weapon (307) sound is EmpireLaserTurbo.
https://github.com/JeremyAnsel/xwa_hook ... _sound.cpp
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
Thanks Jeremy that's absolutely brilliant and works like a charm
Quick Question can you have both
WeaponSoundBehavior = Empire
WeaponSoundBehavior = EmpireTurbo
in the same sound text file or just the one option ?
Quick Question can you have both
WeaponSoundBehavior = Empire
WeaponSoundBehavior = EmpireTurbo
in the same sound text file or just the one option ?
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
If WeaponSoundBehavior is defined multiple times, the first one is used.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station