Inspired by Xonotic Competitive Edition. Thank you!
I wanted a melee hit sound for a shotgun. I found this implementation on XCE, but I wanted to have it in my own Xonotic client.
And instead of "Bonk" sound effect I use spank sound effect :)
Clone repo and move those files:
- Move sound effect file to your Xonotic data
/sound/weapons/
folder. Create if you don't have them.
Full path should look like this^: (~.xonotic/data/sound/weapons/shotgun_melee_impact.ogg
). Of course you can make your own.ogg
sound later. - Move prebuilt
*progs.*
files to the root of your Xonotic data folder.
Should look like this:~.xonotic/data/*progs.*
BUT these progs
files are precompiled from Xonotic Git version (I didn't tested it on 0.8.2) and I recomend you to build your own progs
like below.
- Clone and compile Xonotic Git from this offcial guide
- Replace files in
qcsrc
in Xonotic game files.../xonotic/data/xonotic-data.pk3dir/qcsrc
. You need to replace this:
qcsrc
└── common
├── sounds
│ └── all.inc
└── weapons
└── weapon
└── shotgun.qc
- Delete
csprogs-xonotic-*.pk3
file inqcsrc
folder AND all*progs.*
files in.../xonotic/data/xonotic-data.pk3dir/
folder - Recompile Xonotic changed files with
./all compile -r
- Run the game and test it