A simple subplugin to change a boss's move speed, or a victim's movespeed within a specific range, for a timed duration.
COMPATIBLE WITH ABILITY MANAGEMENT SYSTEM & DYNAMIC SPEED MANAGEMENT
Spoiler
REQUIRES
ff2_ams.inc TO COMPILE!
If using abilities under Ability Management System, add this to your boss CFG:
Code:
"abilityX"
{
"name" "ability_management_system"
"arg1" "0" // activation key. 0=E, 1=R, 2=MIDDLE MOUSE, 3=USE(not bound by default)
"arg2" "1" // selection key. 0=not usable, 1=R, 2=MIDDLE MOUSE, 3=USE(not bound by default)
"arg3" "3" // reverse selection key. 0=not usable, 1=R, 2=MIDDLE MOUSE, 3=USE(not bound by default) [note: hidden feature, keeping this standard going]
"arg4" "0xc00000" // HUD color (unavailable)
"arg5" "%s (%.0f rage) [RELOAD (R) to change]\n%s\nAbility is currently unavailable." // HUD text format (unavailable)
"arg6" "0xffffff" // HUD color (available)
"arg7" "%s (%.0f rage) [RELOAD (R) to change]\n%s\nAbility is available. (press E)" // HUD text format (available)
"arg8" "0.68" // HUD Y
"arg9" "RAGE Meter: %.0f%%\nHP: %d / %d" // HUD replacement text
"arg10" "0.80" // HUD replacement Y
"plugin_name" "ff2_sarysapub3"
}
REQUIRES
EPIC SCOUT'S SUBPLUGIN TO USE ABILITY MANAGEMENT SYSTEM!
PHP Code:
"abilityX"
{
"name" "rage_movespeed"
"arg1" "520" // Boss Move Speed
"arg2" "10" // Boss Move Speed Duration (seconds)
"arg3" "500" // Victim Range (to enable victim move speed)
"arg4" "150" // Victim Move Speed
"arg5" "10" //Victim Move Speed duration (seconds)
// args reserved for the ability management system
"arg1001" "0.0" // delay before first use
"arg1002" "10.0" // cooldown
"arg1003" "The Soviet Chase" // name
"arg1004" "Run like no tomorrow." // description
"arg1005" "75" // rage cost
"arg1006" "2" // index for ability in the AMS menu
"plugin_name" "ff2_movespeed"
}
Max move speed is 520, and minimum move speed is 1.
Sounds
Code:
"sound_movespeed_start" // when rage activates via AMS
{
"1" "saxton_hale/miku/miku_awesome.mp3"
"2" "saxton_hale/miku/miku_come_here.mp3"
}
"sound_tfcondition_finish" // when rage is over (AMS or normal RAGE)
{
"1" "saxton_hale/miku/miku_awesome.mp3"
"2" "saxton_hale/miku/miku_come_here.mp3"
}
Installation:
- ff2_movespeed.smx: rename to ff2_movespeed.ff2, then place in plugins>freaks folder
- ff2_movespeed.sp: place in scripting>freaks folder
Changelog:
- v1.0:
- v1.1:
- Now uses PreThink instead of OnGameFrame
- Floats or whole integers can be specified for movespeed / duration
- v1.2:
- Added support for use in Ability Management System
- v1.3:
- No longer conflicts with 'dynamic_speed_management'
- Now requires 'ff2_dynamic_defaults.inc' to compile
- v1.3.1:
- Hopefully fixed
frogs errors related to initializing AMS_InitSubAbility()
- v1.3.2
- Fixed AMS errors (thanks sarysa)
- v1.3.3
- Hopefully fixed invalid client errors.
- v1.3.4
- Now autodetects if AMS is present on boss CFG, and now uses "sound_movespeed_start" and "sound_movespeed_finish" for sounds.