Raised This Month: $51 Target: $400
 12% 

Loading Music II v1.2.9


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   VEN (29)
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 03-01-2007 , 09:38   Loading Music II v1.2.9
Reply With Quote #1

This is the most downloadable plugin of my collection in my country. Why not to release it right here? Here it is. Hope, you'll like its stability & new features.

Preamble:
* this plugin is intended to completely replace all the following
plugins: Loading Song (by Torch), Loading Song Advanced (by eFrigid) &
Loading Sound (by [OSA]Odin). This plugin will never replace
Loading Music (by Andrax2000) cause i don't like that concept.

Info:
* plugin for playing sound file or music track during connection to the
server, first team selection (under CS only) or during spectator mode.

Features:
* support for mp3/wav files
* playlist support ($AMXMODX/config/loading_music.ini or hardcoded by
g_sDefaultPlaylist array)
* support for separate playlist for each map (usage: just create
a playlist $AMXMODX/config/loading_music/<mapname>.ini)
* support for separate playlist for each group of maps (usage: just
create a playlist $AMXMODX/config/loading_music/<prefix>_.ini)
* up to 30 filenames (can be changed by MAX_TRACKS macro within the script
file)
* playlist-random/playlist-single-file/single-file playback modes
* precaching of any file within $AMXMODX/sound/ folder (in playlist
playback mode only)
* fadeout effect for mp3 tracks
* and more...

Notes:
* mp3/wav files can be placed anywhere within $MODDIR/, but only under
$MODDIR/sound/ folder they will be precached
* external playlist editing rules see inside .ini file supplied
with plugin

Installation:
* read install.txt inside .zip file

Requirements:
* any mod (preferably HLDM/CS/CZ)
* AMX/X 1.7x (or higher)
* Fakemeta module

New cvars:
* amx_loading_track <number|filename> (default=-1)
sets playback mode:
-1 - random order
0 - play nothing (disable plugin)
N - play single file from playlist (N=1..30)
filename - name of file to play ignoring the playlist (it's
a single-file playback mode); if this is a file under precache dir
it won't be precached
* amx_loading_loop <0|1|2> (default=0)
customizes loop mode playback:
0 - play mp3/wav until a player starts to play
1 - play mp3 once till the end; play wav as described above
2 - play mp3/wav forever (strongly do not recommend
if 'amx_loading_flags' cvar has no flag 'a')
* amx_loading_delay <float> (default=0.0)
if your clients often complain about silence while connecting to your
server try to set this cvar to non-zero number to delay (in sec)
playback after connection event has been triggered
* amx_loading_flags <flags> (default=abc)
a - play mp3 files only on player connection/spectating; otherwise
wav files are possible (strongly do not recommend to turn this flag
OFF because you may get an unstoppable ambient cyclic sound during
the game)
b - play mp3 on spectate; otherwise stop playing track when player
goes to spectator
c - (CS specific) play wav files only on team select; otherwise
connection track will continue playing (under CS it can be turned off
by the game; try using flag 'd' to fix this issue)
d - (CS specific) restart a track on team select to fix a CS bug;
has minor priority than flag 'c'
e - don't play a spectator track on dead players (consider to use it
if you enabled flag 'b')

Known issues:
* mp3 track will continue playing if player disconnects before
he is spawned for the first time; in such a case client should manually
execute 'mp3 stop' or 'stopsound' command in console to stop playing a
track (impossible to fix)
* on loading you may notice a short gap while music is playing;
it's a client related problem (impossible to fix)

TODO:
* apply fadeout effect for wav files

Credits:
* White Panther for the idea

History:
1.2.9 [2007-05-05]
! fixed a bug when the last player in team was dead
and a new round was started, a track was played on him till the end; this bug occasionally occured under CS when flag 'b' was active
+ added new flag 'e' to not play a track on dead players when they
temporarily become a spectators
* Fakemeta module is required now
1.2.8 [2007-03-31]
! fixed improper storing of file extension
! fixed a potential bug when mp3 files under 'sound' folder were not precached
1.2.7 [2007-03-23]
+ added support for separate config files for maps by prefix
(again req. by arkshine)
... (see .sma file for full changelog)
Attached Files
File Type: zip loading_music2-1.2.7.zip (176.1 KB, 17395 views)
File Type: zip loading_music2-1.2.8.zip (176.1 KB, 11209 views)
File Type: zip loading_music2-1.2.9.zip (177.9 KB, 30485 views)
File Type: sma Get Plugin or Get Source (loading_music2.sma - 23855 views - 24.8 KB)
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm

Last edited by Simon Logic; 05-08-2007 at 09:18. Reason: updated
Simon Logic is offline
Send a message via Skype™ to Simon Logic
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode