View Single Post
Blinx
Senior Member
Join Date: Oct 2013
Old 03-12-2017 , 21:30   [Boss Subplugin] Air Dash (possible replacement for Super Jump)
Reply With Quote

FF2: AIR DASH



Air dash is a highly customizable, potential replacement for default Super Jump. The premise is simple: when you are off the ground, pressing jump will dash you in the direction you are looking.

Usage:

PHP Code:
"abilityX"
{
         
"name"            "ff2_airdash"
        "arg1"            "3" 
//Max dash charges
        
"arg2"            "2.5" //Dash recharge time
        
"arg3"            "750.0" //Dash velocity
        
"arg4"            "0" //Velocity override. 1 = yes, 0 = relative.
        
"arg5"            "0.0" //Rage cost per dash, leave as 0 to keep ability cooldown based
        
"arg6"            "0.2" //Cooldown between dashes to prevent spam
        
"arg7"            "20" //Time in ticks after player has left the ground before they can dash. setting to 0 will let you dash from the ground, but the player will lose the ability to jump normally.
        
"arg8"            "1" //Which slot to take sounds from when dashing, set to -1 to make dashes silent
        
"arg9"            "0" //Allow player to glide after a dash
        
"arg10"            "-100.0" //Minimum glide speed
        
"arg11"            "15" //Time in ticks since dash until player can glide. I'd not recommend setting to 0 as glides can be easily lost
        
"arg12"            "3.0" //Max glide time
        
"plugin_name"    "ff2_airdash"

The way glide works is as follows: once you have dashed, you can then hold jump to glide, if you glide and then release, that glide is used. Until you have used the glide or touched the ground, you cannot dash again.

Installation: ff2_airdash.sp into scripting folder. Rename ff2_airdash.smx to ff2_airdash.ff2 and put in plugins/freaks folder.
Attached Files
File Type: sp Get Plugin or Get Source (ff2_airdash.sp - 519 views - 9.2 KB)
File Type: smx ff2_airdash.smx (9.7 KB, 494 views)
Blinx is offline