Raised This Month: $208 Target: $400

FF2 [Subplugin] Boss Client Music Modifier

Post New Thread Reply   
Thread Tools Display Modes
Author Message
AlliedModders Donor
Join Date: Jul 2014
Location: Nepu Nepu?
Old 02-10-2016 , 11: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:
	"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:
	"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:
		"name" "special_changebgm_onclientmatch"
		"arg1"	"STEAM_0:0:00000000"
		"plugin_name"	"ff2_client_musicmod"

		"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

  • 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 - 304 views - 4.3 KB)
File Type: smx ff2_client_musicmod.smx (8.1 KB, 367 views)

Last edited by SHADoW NiNE TR3S; 02-10-2016 at 12:09.
SHADoW NiNE TR3S is offline
Send a message via AIM to SHADoW NiNE TR3S Send a message via Skype™ to SHADoW NiNE TR3S

Thread Tools
Display Modes

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 08:17.

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