View Single Post
Plugin Info:     Modification:          Category:          Approver:   Orangutanz (13)
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-07-2007 , 03:17   Alternative End Round Sounds v2.3b - [ Updated : 22 dec 2007 ]
Reply With Quote #1

Alternative End Round Sounds
( v2.3b - Last update: 22 dec 2007 )

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 )


N.B : Default sounds are from original thread. You can find anothers sounds posted by people.
- 20 sounds by kilatz : here
- 6 sounds by DoGi : here
- 2 sounds by Striker : here
- 2 sounds by v3x : here



EDIT :A new version is coming very soon with a lot of changes/features. (really a huge update)

EDIT2 : When online compiler will be up-to-date ( for Amxx 1.8.x ) and if you are running under Amxx 1.7x, you will have to compile plugin locally under an Amxx 1.7x compiler. Anyway, compiled plugins for both versions are included in the package.


Enjoy.

*.zip : ( from 2.1a : ~5127 dl ) )
*sma : ( from 2.1a : ~3059 dl )


It's recommended to use the beta. I've just changed the method to precache the sounds, and so removing the tricky way because of ers_random_precache cvar.
Attached Files
File Type: zip alt_end_round_sounds.zip (1.31 MB, 54265 views)
File Type: sma Get Plugin or Get Source (alt_end_round_sounds.sma - 52748 views - 23.9 KB)
File Type: sma Get Plugin or Get Source (alt_end_round_sounds(beta).sma - 17948 views - 23.8 KB)
__________________

Last edited by Arkshine; 09-20-2008 at 07:02. Reason: Updated.
Arkshine is offline