Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zabl_state = 0
- zabl_holdtime = 30 // time that character stalls in air before dash
- addHook("JumpSpecial", function(player)
- if not (player.pflags & PF_THOKKED)
- if(zabl_state = 0)
- player.mo.momx = 0
- player.mo.momz = 0
- player.mo.momy = 0
- if(zabl_holdtime = 0)
- zabl_state = 1
- end
- if(zabl_holdtime > 0)
- zabl_holdtime = $-1
- end
- end
- if(zabl_state = 1)
- if not(player.cmd.buttons & BT_USE)
- if not (player.pflags & PF_THOKKED)
- A_ZThrust(player.mo, 15)
- player.pflags = $1 + PF_THOKKED
- end
- end
- if (player.cmd.buttons & BT_USE)
- if not (player.pflags & PF_THOKKED)
- A_Thrust(player.mo, 5)
- player.pflags = $1 + PF_THOKKED
- end
- end
- end
- end
- end)
- addHook("JumpSpinSpecial", function(player)
- if not (player.pflags & PF_THOKKED)
- A_ZThrust(player.mo, 15)
- player.pflags = $1 + PF_THOKKED
- end
- end)
- //addHook("JumpSpinSpecial", function(player)
- // if not (player.pflags & PF_THOKKED)
- // A_Thrust(player.mo, 5)
- // player.pflags = $1 + PF_THOKKED
- // end
- //end)
- // FOR ME TO KNOW HOW TO CALL A FUNCTION
- //local function examplefunc()
- // -- stuff
- //end
- //
- //addHook("ThinkFrame", examplefunc)
- // Ability designed by Zwataketa. Thank you Monster Iestyn, amperbee, and HellHawkX for helping with programming the ability.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement