[Code sharing] My version of Modern Conflict Weapon sound fix

Hello everyone! Since the developers decided to break the sounds of SCAR-L, SPAS-12, etc., we need to do something to fix it ourselves.
Here I am going to share the codes of my version of the fix. This is for anyone who is working (or going to work) with modern conflict weapons. Add the code below to your entities.blk and the fixes will be applied

// Modern weapon sound fix originally by @Yopsius at https://forum.enlisted.net/en/t/map-ancient-canyon/148847/21
// Modified and updated by Gamer_Victorch

//hk_ump_45_gun////

hk_ump_45_gun{
_override:b=yes

  _group{
    _tags:t="sound"       
    gun_sound__forceOneshot:b=yes   
  }

  "gun_sound__shotPath:shared:object"{   
    _tags:t="sound"
    path:t="/weapon/mgun/ppsh_41_german"
  }

  "sound_irqs:shared:object"{
    _tags:t="sound"

    "reload1:object"{
      path:t="/weapon/mgun/pps_42/reload1/change_ammo"
    }

    "reload2:object"{
      path:t="/weapon/mgun/yazikov_smg/reload_mag_out"
    }
	
	"reload3:object"{
      path:t="/weapon/mgun/yazikov_smg/reload_mag_in"
    }

    "reload4:object"{
      path:t="/weapon/mgun/yazikov_smg/reload_shutter_in"
    }
  }
}

//hk_mp5n_gun////

hk_mp5n_gun{
_override:b=yes

  _group{
    _tags:t="sound"       
    gun_sound__forceOneshot:b=yes   
  }

  "gun_sound__shotPath:shared:object"{   
    _tags:t="sound"
    path:t="/weapon/mgun/mp18"
  }

  "sound_irqs:shared:object"{
    _tags:t="sound"

    "reload1:object"{
      path:t="/weapon/mgun/pps_42/reload1/change_ammo"
    }

    "reload2:object"{
      path:t="/weapon/mgun/yazikov_smg/reload_mag_out"
    }
	
	"reload3:object"{
      path:t="/weapon/mgun/yazikov_smg/reload_mag_in"
    }

    "reload4:object"{
      path:t="/weapon/mgun/yazikov_smg/reload_shutter_in"
    }
  }
}

//steyr_aug_a1_gun////

steyr_aug_a1_gun{
_override:b=yes

  _group{
    _tags:t="sound"       
    gun_sound__forceOneshot:b=yes   
  }

  "gun_sound__shotPath:shared:object"{   
    _tags:t="sound"
    path:t="/weapon/rifle/berthier_m16"
  }

  "sound_irqs:shared:object"{
    _tags:t="sound"

    "reload1:object"{
      path:t="/weapon/rifle/type_hei_automatic_rifle/reload_mag_shutter_out"
    }

    "reload2:object"{
      path:t="/weapon/rifle/type_hei_automatic_rifle/reload_mag_in"
    }

    "reload3:object"{
      path:t="/weapon/rifle/vstg_1_5/reload3/change_ammo"
    }
  }
}

//fn_scar_gun////

fn_scar_gun{
_override:b=yes

  _group{
    _tags:t="sound"       
    gun_sound__forceOneshot:b=yes   
  }

  "gun_sound__shotPath:shared:object"{   
    _tags:t="sound"
    path:t="/weapon/mgun/lahti_saloranta_m26"
  }

  "sound_irqs:shared:object"{
    _tags:t="sound"

    "reload1:object"{
      path:t="/weapon/rifle/t20_early_rifle/reload_mag_out"
    }

    "reload2:object"{
      path:t="/weapon/rifle/type_hei_automatic_rifle/reload_mag_in"
    }

    "reload3:object"{
      path:t="/weapon/mgun/mp18/reload3/change_ammo"
    }
  }
}

//spas_12_gun////

spas_12_gun{
_override:b=yes

  _group{
    _tags:t="sound"       
    gun_sound__forceOneshot:b=yes   
  }

  "gun_sound__shotPath:shared:object"{   
    _tags:t="sound"
    path:t="/weapon/rifle/ithaca_37"
  }

  "sound_irqs:shared:object"{
    _tags:t="sound"
	
	"boltAction:object"{
      path:t="/weapon/rifle/spas_12/bolt_action"
    }
	
    "reload1:object"{
      path:t="player/walker/ww2_soldier/foley_mov/common/riffle/aim_on"
    }

    "reload2:object"{
      path:t="/weapon/rifle/browning_auto_5/reload2/change_ammo"
    }
	
	"reload3:object"{
      path:t="/weapon/rifle/spas_12/bolt_action"
    }
  }
}
//

Here is the video for the sounds in mod editor (not all sounds are the same as the final version you see above though):

3 Likes

Hi! Could you tell me where to find the names of the sounds?

You have to get them from an existing gun.

Spawn in a gun entity without item_in_world. You can do that by finding the gun in the crate entity tab, then click on the ground after selecting it. The name should look like this:

m4_gun
mp40_gun
mg_42_handheld_gun

Then, find your gun in the search menu. Open it by pressing the TAB key on your keyboard. Open the properties tab of the entity. Then type “sound” in the search bar.
There you should see the 2 stuff mentioned on the above code, gun_sound__shotpath and sound_irqs.

@ArtuaDG like this

If you think this is slow, you can check out
Enlisted Datamine (Resource) - #11 by Bazsi37 where you can download decompiled game files of enlisted

1 Like