Modifying audio/sound effect of a weapon

From AOW HT Wiki

For example, let's say you would like to modify the sound of the Sentry.


So, first open AOW/DataLight/TypeWarriorLasy/Bases/TF/AOW_TF_Sentry/Aow_TF_Sentry.ndf It where the sentry is defined.

AoW_TF_Sentry_EffetTir is where the fire effect is defined.

If you look at the conditions, you would see that the gatling is used in 2 cases, when none upgrade is done (and whatever the target is flying or not). The effect of Gatling fire is this one :

<ndf>
EffetSortilegeBFXParam_Tir0, 
Template_EffetTirSentry :
  Nom_Parametre_Semantique = AOW_TF_SENTRY_TIR_GATLING_SEMANTIQUE 
  PATH_DEPART_TIR = '£FX_TirGatling'
</ndf>

The Template do the real fire (launch bullets), and the EffetSortilegeBFXParam_Tir0 represents the FX of the fire. This is what you want to modify.

It is defined at the end of the file :

<ndf>
BinderBFXList = [
                      BinderBFX_Batiment_TF_Sentry, 
                      BinderBFX_Tir0_TF_Sentry, 
                      BinderBFX_Tir1_TF_Sentry, 
                      BinderBFX_Tir2_TF_Sentry
                   ]
</ndf>

And the first one, BinderBFX_Tir0_TF_Sentry, is defined in AOW/DataLight/Effet/BFX/TaskForce/BFX_Batiment_TF.ndf :

               
<ndf>
BinderBFX_Tir0_TF_Sentry is TemplateBinderBFX_Tir0
(
   VFX_Depart = AOW_VFX_US_Marine_Tir_Depart/FX 
   VFX_ProjectileEnVol = AOW_VFX_US_Marine_Projectile/FX 
   VFX_SonTir = EffetSonUnite_TF_SentryTurretMG_Tir 
   VFX_ImpactSol = SIMU with
                   [
                      EffetSonUnite_TF_SentryTurretMG_ImpactSol, 
                      AOW_VFX_generique_impact_sol_balles_lourd/FX
                   ] 
   VFX_ImpactBatiment = SIMU with
                        [
                           EffetSonUnite_TF_SentryTurretMG_ImpactBatiment, 
                           AOW_VFX_generique_impact_vehicules_obusmoyen/FX
                        ] 
   VFX_ImpactVehicule = SIMU with
                        [
                           EffetSonUnite_TF_SentryTurretMG_ImpactVehicule, 
                           AOW_VFX_generique_impact_sol_balles_lourd/FX
                        ] 
   VFX_ImpactHumain = SIMU with
                      [
                         EffetSonUnite_TF_SentryTurretMG_ImpactSol, 
                         AOW_VFX_generique_impact_sol_balles_lourd/FX
                      ]
)</ndf>

For example, the start sound effect : VFX_SonTir = EffetSonUnite_TF_SentryTurretMG_Tir is defined in DataLight/Effet/EffetSons/AOW_SonsUnites2_DoNotEdit.ndf (despite its name, do not hesitate to modify it :p)

<ndf>
EffetSonUnite_TF_SentryTurretMG_Tir is TemplateEffetSon_StandardPlaySound_NonInfini
(
   FileNameList = STRINGLIST[
                            'AOW\Data\ResSons\SFX\Tir\AOW_SFX_TF_SHIELD_Gatling_Tir_01.wav',
                            'AOW\Data\ResSons\SFX\Tir\AOW_SFX_TF_SHIELD_Gatling_Tir_02.wav',
                            'AOW\Data\ResSons\SFX\Tir\AOW_SFX_TF_SHIELD_Gatling_Tir_03.wav',
                            'AOW\Data\ResSons\SFX\Tir\AOW_SFX_TF_SHIELD_Gatling_Tir_04.wav',
                            ]
   Volume = 0.5
   Looping = false
   MaxSounds = 2
   MinDistance = 0
   MaxDistance = 0
   Priority = 3
   SoundGroup = soundgrouplist/Tir
)
</ndf>