Mapping/Sound Replacement Guide
< Mapping
Jump to navigation
Jump to search
1 What is Sound Replacement?
Sven Co-op features coding that allows for the mapper (and server-side) replacement of sounds in monsters and global entities. This works by using a file that overrides the default sound file paths and directs the game to use one sound instead of another. Sounds can be replaced globally and locally.
2 How to set up Global Sound Replacement?
1. Create a GSR file in the "maps" folder matching your maps name (eg. mymap.gsr).
2. Type the desired sounds into the file. In this example I've replaced the crowbar model with a knife model and I want to replace the crowbar sounds with their knife counterparts.
- "weapons/cbe/cbe_hit1.wav" "weapons/knife_hit_wall1.wav"
- "weapons/cbe/cbe_hit2.wav" "weapons/knife_hit_wall2.wav"
- "weapons/cbe/cbe_miss1.wav" "weapons/knife1.wav"
- "weapons/cbe/cbe_miss2.wav" "weapons/knife2.wav"
- "weapons/cbar_miss1.wav" "weapons/knife3.wav"
- "weapons/cbar_hitbod1.wav" "weapons/knife_hit_flesh1.wav"
- "weapons/cbar_hitbod2.wav" "weapons/knife_hit_flesh2.wav"
- "weapons/cbar_hitbod3.wav" "weapons/knife_hit_flesh1.wav"
- "weapons/cbar_hit1.wav" "weapons/knife_hit_wall1.wav"
- "weapons/cbar_hit2.wav" "weapons/knife_hit_wall2.wav"
3. Open or create the map CFG file (eg. mymap.cfg) in the "maps" folder and add this line to the end for your map:
- globalsoundlist ../../maps/mymap.gsr
4. Save both the GMR and CFG file and load up your map.