Skip to content

Custom Weapon Sounds

KaiQ edited this page Sep 2, 2024 · 3 revisions

Overview

The Custom Weapon Sound Loader system enhances the audio experience in GTA San Andreas by allowing to customize weapon sounds. This system loads sounds from the ModelExtras/audio/weapon directory and supports newly added weapons seamlessly.

Setup

  1. Directory Structure:

    • Navigate to ModelExtras/audio/weapon in your GTA SA directory.
    • Create a subdirectory for each weapon you wish to customize. The name of each subdirectory should match the name of the weapon present in WEAPON.DAT or in the .txt file if it was added without replacing via modloader..
  2. Supported Audio Formats:

    • Supported formats for audio files are .ogg and .wav.
  3. Sound Files:

    • Inside each weapon's subdirectory, place the following audio files:
      • shoot: Sound played when the weapon fires.
      • reload: Sound played when the weapon is being reloaded.
      • swing: Sound played when the weapon is swung (if applicable).
      • hit: Sound played when the weapon hits a target (if applicable).

Examples

  1. Suppose you have customized sounds for a weapon added without replacing named "sniper_rifle2":
  • Navigate to ModelExtras/audio/weapon and create a directory named sniper_rifle2.
  • Inside sniper_rifle2, place the following files:
├── sniper_rifle2
│ ├── shoot.ogg
│ ├── reload.wav
│ ├── swing.ogg
│ ├── hit.wav
  1. Suppose you have customized sounds for a "AK47" vanilla weapon:
  • Navigate to ModelExtras/audio/weapon and create a directory named AK47.
  • Inside AK47, place the following files:
├── AK47
│ ├── shoot.ogg
│ ├── reload.wav
│ ├── swing.ogg
│ ├── hit.wav