This plugin allows Freak Fortress bosses to have custom attributes applied to their weapons via configuration files.
Works with spawn-in weapons (specified with weaponX) and weapons received at any point in the game (for example with rages). Weapon Index sections can contain multiple attributes.
Usually you would need to write boss abilities to change how weapons behave. This simplifies the process and instead applies custom attributes that use the Custom Attributes Framework by nosoop.
Installation:
Now you can open your boss configuration file and add your desired custom attributes. Add the following structure inside the root "characters" section (alongside weaponX, abilityX etc).
Code:
"Custom Attributes"
{
"Weapon Index" //weapon index that the boss might get
{
"custom attribute" "value"
}
"Weapon Index" //weapon index that the boss might get
{
"custom attribute" "value"
}
...
}
Now whenever the boss receives a weapon with the corresponding index, all specified custom attributes will be added to it.
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.
Changelog:
- 02-06-2020 - Initial release
- 22.01.2022 - Version 2.0 released, (almost) full code rewrite, now can apply custom attrubutes to any weapons, not only ones that the boss spawns in with.
GitHub:
https://github.com/Nolo001-Aha/ff2_c...ribute_adapter
Updated because I felt reponsible for making the mess that was ver. 1.0 public.
Plugin compiled and tested under SourceMod 1.10.0.6528 for Windows.