Raised This Month: $60 Target: $400
 15% 

FF2 Boss Custom Attribute Adapter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NoloZero01
Junior Member
Join Date: May 2020
Location: Helios Station
Old 06-02-2020 , 07:01   Boss Custom Attribute Adapter
Reply With Quote #1

This plugin allows Freak Fortress bosses to have custom attributes applied to their weapons via configuration files.

Usually you would need to write boss abilities to change how weapons behave. This simplifies the process and instead applies custom attributes.

Installation:

Code:
  1. - Install TF2 Custom Attribute Framework . Wiki about installation and usage can be found here: Applying Custom Attributes.
  2. - Put the plugin into your addons/sourcemod/plugins/ folder and load it. There is no need to rename it into .ff2.
  3. - Install your desired custom attributes. You can write your own or use the ones that come with the Custom Attribute Starter Pack.

Now you can open a boss configuration file and edit your boss weapon(s). Go to the "weaponX" that you wish to edit, and add a new section called "customattributes". In that section you can add your custom attributes. Example weapon below:

Code:
              	"weapon1"
	{	//Main settings
		"name"		"tf_weapon_sapper"
		"index"		"1080"
		"show"		"1"
		"attributes"	"425 ; 1.2 ; 428 ; 1.2"
		
		//Custom Attribute section.
		"customattributes"
		{
			"sapper reprograms buildings" "sap_time=5.0 self_destruct_time=15.0"
		} 
	}

If you wish to see debug information from this plugin whenever it applies custom attributes to a boss, turn FF2's ff2_debug ConVar on. Debug comes in the following format: [Boss Name] [Attribute Name] [Attribute Value].

ConVars
  • "ff2_custom_attribute_delay" - Determines the delay between the boss spawning in and this plugin starting to apply custom attributes. Please do not set to values below 1.0 to ensure that FF2 and other plugins perform all manipulations with weapons before this plugin. Defaults to 1.5.

Known issues:
  • Abilities that replace the weapons that FF2 spawns the boss with will remove the custom attributes completely. Christian Brutal Sniper's multimelee ability is an example of that.


Credits:
  • Artvin for testing this plugin on his server because mine was not available at that moment.
  • nosoop for creating a truly amazing custom attribute framework that is very easy to use.

This is my first public release so something may be wrong, sorry.

I am open to any requests and bug reports.
Attached Files
File Type: sp Get Plugin or Get Source (ff2_custom_attribute_adapter.sp - 27 views - 5.6 KB)
File Type: smx ff2_custom_attribute_adapter.smx (11.7 KB, 19 views)
NoloZero01 is offline
BaconPlague
Junior Member
Join Date: Sep 2017
Old 06-07-2020 , 18:41   Re: Boss Custom Attribute Adapter
Reply With Quote #2

Hey there NoloZero01! Thanks for making this excellent plugin! Everything works smoothly for the most part, through I am here to report a bug on the plugin. I am currently running freak fortress 2 version 1.19.9 (Batfox's Fork) and the server seems to crash if the hale takes shield bash damage. I am not sure if it is a compatibility issue between this plugin and freak fortress ver. 1.19.9, unfortunately the server did not provide any error/crash details in the server logs or console. Removing the specific custom attribute plugin that a hale uses or removing the adapter itself seems to fix the issue. Overall, really nice work with the plugin and I hope to use it more in the future.
BaconPlague is offline
BaconPlague
Junior Member
Join Date: Sep 2017
Old 06-07-2020 , 20:29   Re: Boss Custom Attribute Adapter
Reply With Quote #3

After doing some further testing, it might be a problem with weapon_overheat instead of the plugin. Sorry for the confusion!
BaconPlague is offline
NoloZero01
Junior Member
Join Date: May 2020
Location: Helios Station
Old 06-08-2020 , 10:40   Re: Boss Custom Attribute Adapter
Reply With Quote #4

Yeah, some of the custom attributes are not "ideal", some may be missing validity checks or similar. I've had a few cases where certain ones spam errors. One day Ill get everything I've encountered into a list and open an issue on GitHub. If you're interested, I could send my version of overheat that seems stable.
NoloZero01 is offline
BaconPlague
Junior Member
Join Date: Sep 2017
Old 06-08-2020 , 12:34   Re: Boss Custom Attribute Adapter
Reply With Quote #5

Quote:
Originally Posted by NoloZero01 View Post
Yeah, some of the custom attributes are not "ideal", some may be missing validity checks or similar. I've had a few cases where certain ones spam errors. One day Ill get everything I've encountered into a list and open an issue on GitHub. If you're interested, I could send my version of overheat that seems stable.
I would definitely be interested in that, thank you very much in advance! ^^
BaconPlague is offline
Reply


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


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