Thread: Double Jump
View Single Post
paegus
Senior Member
Join Date: Nov 2004
Location: Extreme low earth orbit
Old 08-10-2009 , 17:48   Re: Double Jump
Reply With Quote #10

Quote:
Originally Posted by bl4nk View Post
Once 1.3 lands, you could rewrite this to use OnPlayerRunCmd, making it so you're not having to constantly check every player inside of OnGameFrame.
is there a similar function (OnPlayerStateChange?) to catch flag changes for say FL_ONGROUND?

otherwise there would need to be a scan to find when that state changes to catch the 1st jump. even if OnPlayerRunCmd() fires before the player's flags change you still need to detect the landing again to reset the jump count properly.
__________________
Live and learn or die and teach by example.
Plugins Mine | Hidden:SourceMod

Last edited by paegus; 08-10-2009 at 17:58.
paegus is offline