Raised This Month: $ Target: $400
 0% 

[Any] Ninja Leap


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
2339
Plugin Version:
1.0.2
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Fly through the air like an eagle! .... Piloting a blimp.
    Old 05-16-2011 , 06:57   [Any] Ninja Leap
    Reply With Quote #1

    [Any] Ninja Leap
    Version 1.0.2



    Description:
    Leap around through the air like a Ninja! Or maybe a Hunter!
    ... Or a Ninja Hunter!

    Video:
    http://www.youtube.com/watch?v=1CgqWlwzleM

    Commands:
    • ninjaleap [Power] [Angle] - Leap through the air!
      Power and Angle are optional, and will use the default values that can be set in a cvar below.
    • leap - Same as above
    Examples:
    • leap 1500 -45
      Would launch the player upwards at a 45 degree angle with 1500 force.
    • ninjaleap 1000 -90
      Would launch the player straight up at 1000 force.


    Cvars:
    • sm_ninjaleap_version - Plugin Version
    • sm_ninjaleap_enable "1" - Enable/Disable the plugin
    • sm_ninjaleap_power "1000" -The default force to use if the player doesn't specify.
    • sm_ninjaleap_angle "-30" - The default angle to use if the player doesn't specify.
    • sm_ninjaleap_log "0" - Whether or not to log leap actions.
    • sm_ninjaleap_admin "0" - Set to 1 to make the plugin admin-only.

    Override:
    Use sm_ninjaleap_override in your overrides config to change the flag needed for admins when in admin-only mode.
    Default flag is Slay.

    Install Instructions:

    1. Drag and drop.

    Notes:
    -

    Version History:
    • V1.0.0
      • Initial Release
    • V1.0.1
      • Stupid typo with CheckCommandAccess
    • V1.0.2
    Total downloads as prior to last edit: 284
    Attached Files
    File Type: sp Get Plugin or Get Source (NinjaLeap.sp - 1606 views - 3.1 KB)
    __________________

    Last edited by DarthNinja; 08-11-2013 at 13:19.
    DarthNinja is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 05-16-2011 , 09:38   Re: [Any] Ninja Leap
    Reply With Quote #2

    Your plugins are fun. Nice work.
    Snaggle is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 05-16-2011 , 13:47   Re: [Any] Ninja Leap
    Reply With Quote #3

    Any chance of adding:
    Amount of leaps allowed per round?
    Cost per leap?
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 05-16-2011 , 17:05   Re: [Any] Ninja Leap
    Reply With Quote #4

    Quote:
    Originally Posted by sinblaster View Post
    Any chance of adding:
    Amount of leaps allowed per round?
    Cost per leap?
    I was thinking about a version that allows players to leap until they run out of energy. The energy would regen at a fixed rate when at less then 100%.
    Eg: Each leap costs 50%. Energy regens at 1% a second. Players can leap once every 50 seconds or twice every 100 seconds.

    Quote:
    Originally Posted by Snaggle View Post
    Your plugins are fun. Nice work.
    Glad you like it
    __________________
    DarthNinja is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 05-16-2011 , 17:40   Re: [Any] Ninja Leap
    Reply With Quote #5

    ~Video added
    __________________
    DarthNinja is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 05-16-2011 , 18:41   Re: [Any] Ninja Leap
    Reply With Quote #6

    Quote:
    Originally Posted by DarthNinja View Post
    I was thinking about a version that allows players to leap until they run out of energy. The energy would regen at a fixed rate when at less then 100%.
    Eg: Each leap costs 50%. Energy regens at 1% a second. Players can leap once every 50 seconds or twice every 100 seconds.


    Glad you like it
    Thats a great idea but in a 5min round thats 3 leaps x 48 slot server thats a bunch of fleas on a dog
    Its a great idea (the plug) I come across so many in here which means a crowded server of plugs
    So far I have throw knives, homing missiles an auto sniper vending machine, a magic deagle a magic awp. All of which cost money to use which basically restricts to much activity and forces at least some normal gameplay during the time it takes to refund themselves.
    I have fiinally set it up so that everyone gets to use most of the things available at least once every 5 min round. Hence wanting to see if I could persuade you to add a cost & limit cvar.

    EDIT

    lol at video
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 05-16-2011 , 23:38   Re: [Any] Ninja Leap
    Reply With Quote #7

    Adding a "cost" would make it CS:S only.
    Adding a hard cap per round just seems sloppy since round times vary wildly between servers/maps/games.

    If you really want a custom version done I could do that just for you though.
    __________________
    DarthNinja is offline
    Annihilator
    Senior Member
    Join Date: Nov 2006
    Location: Lithuania
    Old 05-17-2011 , 18:16   Re: [Any] Ninja Leap
    Reply With Quote #8

    Well, a simple check to see if the game uses money works quite fine

    PHP Code:
    new Money = -1;

    public 
    OnPluginStart()
    {
    Money FindSendPropOffs("CCSPlayer""m_iAccount");

    Then you just check if it exists and thats all

    PHP Code:
    if (Money == -1) return; 
    Annihilator is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 05-26-2011 , 11:39   Re: [Any] Ninja Leap
    Reply With Quote #9

    I've just finished a version that uses a charge meter to limit jumps.
    I'll most likely post it later today.
    __________________
    DarthNinja is offline
    EGood
    Member
    Join Date: Feb 2011
    Location: Israel
    Old 05-28-2011 , 14:15   Re: [Any] Ninja Leap
    Reply With Quote #10

    Nice work.
    EGood is offline
    Reply


    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 22:09.


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