Raised This Month: $32 Target: $400
 8% 

Double Jump


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
paegus
Senior Member
Join Date: Nov 2004
Location: Extreme low earth orbit
Plugin ID:
1080
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    611 
    Plugin Description:
    Allows players to jump again while airborne from a previous jump.
    Old 08-10-2009 , 08:50   Double Jump
    Reply With Quote #1

    Code:
    /*
     * Double Jump
     *
     * Description:
     *  Allows players to double-jump
     *  Original idea: NcB_Sav
     *
     * Convars:
     *  sm_doublejump_enabled [bool] : Enables or disable double-jumping. Default: 1
     *  sm_doublejump_boost [amount] : Amount to boost the player. Default: 250
     *  sm_doublejump_max [jumps]    : Maximum number of re-jumps while airborne. Default: 1
     *
     * Changelog:
     *  v1.0.1
     *   Minor code optimization.
     *  v1.0.0
     *   Initial release.
     *
     * Known issues:
     *  Doesn't register all mouse-wheel triggered +jumps
     *
     * Todo:
     *  Employ upcoming OnPlayerRunCmd function to remove excess OnGameFrame-age.
     *
     * Contact:
     *  Paegus: paegus(at)gmail(dot)com
     *  SourceMod: http://www.sourcemod.net
     *  NcB_Sav: http://forums.alliedmods.net/showthread.php?t=99228
     */
    Original Thread

    Get an updated version with less OnGameFrame and more updated syntax down here courtesy of Grey83
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_doublejump.sp - 18840 views - 4.6 KB)
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod

    Last edited by paegus; 10-04-2021 at 01:41.
    paegus is offline
     


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 08:08.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode