Alternative End Round Sounds

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Alternative End Round Sounds

Post by greenie »

Introduction :
- - - - - - - - - -
Original idea and plugin by PaintLancer.
Orignal thread : http://forums.alliedmods.net/showthread.php?t=6784

This plugin is intented to replace End Round Sounds plugin.
Its author did not give news since 2005.

Description :

- - - - - - - - - -
Plays random music at the end of a round according to who wins,
instead of just "Terrorists Win" or "Counter-Terrorists Win".

Features :
- - - - - - - -
* Support mp3 and wav files
* Using a file for the sounds
* Per-map files supported
* Per-map prefix files supported
* Sounds can be toggle on/off by players
* Ability to choose x sounds to be precache per map
* Multilingual support
* And more...

Requirements :
- - - - - - - - - -
* CS 1.6 / CZ.
* AMXX 1.7x or higher.

Cvars :

- - - - -
* ers_enabled <iNum>
<0|1> Disable/Enable this plugin. (default: 1)

* ers_player_toggle <iNum>
<0|1> Disable/Enable the client command /roundsound (default: 1)

* erc_time_ads <iTime>
Times in seconds between 2 ads messages. 0 disable ads. (default: 120)

* erc_random_precache <iMaxTeam or iMax_T-iMax_CT>
Specify how many sounds by team you want to precache randomly among all sounds.
This means that x sounds will be choosen randomly among all sounds of each team so to be precache at each map. ( 0 = disable feature )
/!\ Map change on cvar change required !

e.g :
erc_random_precache "2" :
2 sounds will be choosen among all CTs sounds and all Ts sounds
erc_random_precache "2-3" :
2 Ts sounds will be choosen randomly among all Ts sounds
3 CT sound will be choosen randomly among all CTs sounds.
/!\ Don't forget to insert '-' .

Client command :
- - - - - - - - - - - - -
* say /roundsound :
Give to players the ability to turn on/off the end round sounds

Installation :
- - - - - - - - - -
Files locations:
./game_mod/addons/amxmodx/plugins/alt_end_round_sounds.amxx ( compiled under Amxx 1.8.x )
./game_mod/addons/amxmodx/plugins/alt_end_round_sounds[old].amxx ( compiled under Amxx 1.7x )
./game_mod/addons/amxmodx/data/lang/end_roundsound.txt
./game_mod/addons/amxmodx/configs/roundsound.ini (if using default file 'roundsound.ini')
./game_mod/addons/amxmodx/configs/round_sound/mapname.ini (if using per-map config file)
./game_mod/addons/amxmodx/configs/round_sound/prefix-TYPE.ini (if using per-map config file by prefix)

Configuration :
- - - - - - - - - - - -
About ' roundsound.ini ' file :
This one have to be put in configs/ directory.
It's the default file. It supposed to be load on all maps if no files are found in /configs/round_sound/ directory.


About ' per-map prefix-based configuration files ' :
You have to create a folder ' round_sound ' in the configs/ folder.
It will automatically load any sounds listed in files having the following name :
<mapname>.ini
prefix-<map_prefix>.ini

Example: You want to load some sounds on de_dust map
You have to create a file de_dust.ini in configs/round_sound/ directory.
Exemple: You want to load some sounds on all maps beginning by 'de_'
You have to create a file prefix-de.ini in configs/round_sound/ directory.



About ' the syntax in file ' :
Syntax: "sound file" "team"
e.g. : "sound/my_folder/my_sound.wav" "T"
e.g. : "sound/my_folder/my_sound.mp3" "CT"
Firstly, prefix-xxx.ini file is read. If not found, it searches for mapname.ini file. If not found, it tries the file by default : roundsound.ini .
You have to specify a team name. "T" for Terrorists wins, or "CT" for Couter-terrorists wins.
If you are using Amxx 1.7x, MAX_SOUNDS per team is defined in the .sma file. ( 25 by default )

.zip
Post Reply

Return to “Event Related”