(info) Most of the information here is for Warzone 3.1 and above.

weaponsounds.txt

Overview

This file defines the sounds played when weapons are fired and, optionally, the sound their projectiles make when they hit a target.

(warning) You must first define your audio files in audio.wrf and audio.cfg before adding them to weaponsounds.txt.

Availability

The weaponsounds.txt file is used by Warzone 3.1 and earlier.

For Warzone 3.2 and above, use ??? instead. Your mod can include both the .txt and .ini files if you want it to work on all versions.

File location

The "weaponsounds.txt" file should be placed in the "stats" folder:

 <your mod>

 stats

File format

The file is a simple comma-separated values (CSV) format. You can open it in any plain text editor (like Notepad or TextEdit), but it's often easier to edit using Microsoft Excel (just be sure to open it as a CSV file).

An example of the file contents is shown below:

MG4ROTARYMk1,asltmg.ogg,-1,164
BaBaCannon,smlcan.ogg,smlexpl.ogg,165

Properties

Each line in the file defines the sound effects for a specific weapon. There's 4 fields, separated by commas, per line:

  • Weapon ID – this is the weapon's ID as defined in weapons.txt
  • Fire sound – the .ogg file to play when the weapon is fired
  • Hit sound – the .ogg file to play when the projectile hits the target (-1 means no sound)
  • ??? – no idea what the number at the end is (might be volume?)

See also