Description:
This plugin was intended to play the "infect sound" in other immunity modes (see playerclasses.txt).
However, it's functionality has been extended to set "infect sounds" for each class as needed.
This can be useful when you have different models on the server, which you'd like to emit different sounds.
Also: Added to play sound to the attacker only (like in CS:GO Deathmatch).
Note: If you intent to use it with immunity_mode "none", you have to disable the zrs_infect_sound / zr_infect_sound .
Requirements:
SourceMod 1.11+
Zombie:Reloaded
[ZR] Tools
Installation:
- Put all files from the release folder in your game root folder ("csgo", "cstrike", ...).
- Reload map.
If the plugin(s) are not working as intended, check your logs in addons/sourcemod/logs and report here (if available).
If error logs are not available, report nevertheless.
Configuration:
This plugin, unlike plugins usually do, does not use any .cfg files and is purely configurable via playerclasses.txt.
This means you can change values per playerclass.
PHP Code:
"frag_sounds_mode" "0-2" // 1 = Sound to play from "frag_sound", 2 = Sound to play from "frag_sound" + sound to play to all from "frag_sounds_all", 0 = disabled.
"frag_sound" "bell.wav" // Sound to play to client (relative to the sound folder).
"frag_sound_all" "zr/scream_fz1.mp3" // Sound to play to all clients, [i]emitted from client[/i] (relative to the sound folder).
Add these values to
all playerclasses you have, anywhere you want.
Put any sounds you'd like to use in sound/zr folder, as well as the path in configs/zr/downloads.txt.
Changelog: