Results 1 to 4 of 4

Thread: Noise Gun

  1. #1
    Hunter
    Join Date
    Feb 2016
    Posts
    121
    Rep Power
    0

    Noise Gun

    I'd love to see a simple, craftable gun that doesn't shoot projectiles but gives off an extreme amount of noise when it's fired. It would be similar to the Anti-Gadoid gun from Dying Light, such that it's purpose is to draw in infected from a large area.

    Looking forward to your replies

  2. #2
    Refugee ArMaReZ's Avatar
    Join Date
    Jun 2017
    Location
    Paris
    Posts
    24
    Rep Power
    0
    you just have to take this sound

    sawed_off_shotgun_fire

    it's the loudest in volume

  3. #3
    Colony Founder Xtrakicking's Avatar
    Join Date
    Nov 2013
    Location
    Behind your fridge
    Posts
    4,118
    Rep Power
    1
    I believe the amount of noise a gun makes is determined in the xmls. Can't remember exactly what the specific name of the property is, but you can modify the range of the noise and its effect on the heat map, I believe.

  4. #4
    Survivor
    Join Date
    Jul 2019
    Location
    USA
    Posts
    67
    Rep Power
    0
    You'll want to create a new pistol by copying and renaming the pistol in items.xml. You'll also want to create a custom sound that mimics the Pistol_Fire sound found in the sound.xml.

    Code:
    <SoundDataNode name="Pistol_Fire"> <AudioSource name="Sounds/AudioSource_WeaponFire"/> <NetworkAudioSource name="Sounds/AudioSource_WeaponFire_Network"/>
    	<Noise ID="0" volume="52" time="2" muffled_when_crouched="0.8" heat_map_strength="0.65" heat_map_time="180"/>
    	<distantfadestart name="10"/><distantfadeend name="20"/>
    	<AudioClip ClipName="Sounds/Weapons/Ranged/Pistol/Pistol_Fire1" DistantClip="Sounds/Weapons/Ranged/Pistol/pistol_d_fire1" DistantSource="Sounds/AudioSource_WeaponFire"/>
    	<AudioClip ClipName="Sounds/Weapons/Ranged/Pistol/Pistol_Fire2" DistantClip="Sounds/Weapons/Ranged/Pistol/pistol_d_fire2" DistantSource="Sounds/AudioSource_WeaponFire"/>
    	<AudioClip ClipName="Sounds/Weapons/Ranged/Pistol/Pistol_Fire3" DistantClip="Sounds/Weapons/Ranged/Pistol/pistol_d_fire3" DistantSource="Sounds/AudioSource_WeaponFire"/>
    	<AudioClip ClipName="Sounds/Weapons/Ranged/Pistol/Pistol_Fire4" DistantClip="Sounds/Weapons/Ranged/Pistol/pistol_d_fire4" DistantSource="Sounds/AudioSource_WeaponFire"/>
    	<LocalCrouchVolumeScale value="1"/> <CrouchNoiseScale value="1"/> <NoiseScale value="1"/> <MaxVoices value="30"/> <MaxVoicesPerEntity value="10"/> <MaxRepeatRate value="0.001"/> </SoundDataNode>
    You'll want to adjust the red fields above to add more heat for longer and at much higher range.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •