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

FF2 [Subplugin] Boss Client Music Modifier


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 02-10-2016 , 10:35   [Subplugin] Boss Client Music Modifier
Reply With Quote #1

A simple ability that changes the BGM that's played when a specific player becomes a specific boss.



This checks the boss client's Steam ID (via checking SteamID32), and if it matches whatever is defined on the CFG config, it will play the BGM set that's specified on the boss's CFG.

Ability Config:
Code:
	"abilityX" // Replace X with the next available number.
	{
		"name" "special_changebgm_onclientmatch"
		"arg1"	"<steamID32> ; <steamID32>" // Add as many Steam ID's as desired, separated by semicolons, make sure "sound_bgm_<steamID32>" is also present for that particular Steam ID.
		"plugin_name"	"ff2_client_musicmod"
	}
BGM config:
Code:
	"sound_bgm_<steamID32>" // Each Steam ID specified on arg1 must have its own "sound_bgm_<steamID32>" section. Replace <steamID32> with the specified SteamID
	{
		"path1" "<path to BGM>" // path to BGM file
		"time1"	"<BGM duration (float)>" // duration for BGM (seconds)
	}
Example Usage:
Code:
	"ability1"
	{
		"name" "special_changebgm_onclientmatch"
		"arg1"	"STEAM_0:0:00000000"
		"plugin_name"	"ff2_client_musicmod"
	}

	"sound_bgm_STEAM_0:0:00000000"
	{
		"path1" "freak_fortress_2/koishi/shadow_nine_tr3s.mp3"
		"time1"	"410.0"
	}


Known bugs:
  • If running FF2 v1.10.8 or older, the sound *MAY* be unable to be stopped correctly. There is a workaround included to overcome this issue. This bug is NOT present on v1.10.9
  • FF2 versions prior to v1.10.9 may sometimes throw a corrupted string which would prevent the new BGM from playing correctly.
  • During first round ONLY, it may or may not throw an invalid handle error

TO-DO:
  • Allow minutes & seconds to be specified for timeX, instead of having to specify seconds only.

A formally private plugin of mine now made public.
Attached Files
File Type: sp Get Plugin or Get Source (ff2_client_musicmod.sp - 436 views - 4.3 KB)
File Type: smx ff2_client_musicmod.smx (8.1 KB, 498 views)
__________________

Last edited by 93SHADoW; 02-10-2016 at 11:09.
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
Reply



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 16:51.


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