Raised This Month: $168 Target: $400
 42% 

Slow Hop - Jump Velocity Limiter - Speed Hacker Reducer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
LumiStance
AlliedModders Donor
Join Date: Jan 2009
Location: Northern California
Plugin ID:
1802
Plugin Version:
0.2
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Limits player's horizontal speed after every jump
    Old 07-14-2010 , 07:09   Slow Hop - Jump Velocity Limiter - Speed Hacker Reducer
    Reply With Quote #1

    Description:
    Limits player's horizontal speed after every jump. The objective is to reduce the number of 'speed hacker' complaints you receive. This plugin evaluates a player's velocity one tenth of a second after every jump. If the magnitude of the x and y velocity vectors exceeds the configurable limit, then the x and y velocity vectors are scaled down to the limit.

    Servers using this mod: http://www.game-monitor.com/search.p...lowhop_version

    Suggested limits:
    250 First Jump Speed stock CS:S
    375 First Jump Speed with sumguy14 Bunny Hop Plugin
    400 to allow fun speeds

    Background:
    See http://en.wikipedia.org/wiki/Bunny_h...c_engine_games
    Inspired by players complaining about 'Speed Hackers'
    Uses different method than BunnyStopper by Bullet.
    BunnyStopper temporarily modifies players gravity.
    See http://forums.alliedmods.net/showthread.php?t=84735
    Uses TeleportEntity, as noted in Bunny Hop by Fredd (suggested by bl4nk).
    See http://forums.alliedmods.net/showthread.php?t=67988
    Tested with BunnyHop [V1.0.1] by sumguy14
    See http://forums.alliedmods.net/showthread.php?t=57900

    ToDo:
    Option to limit Z axis velocity

    Files:
    cstrike/addons/sourcemod/plugins/sm_slowhop.smx
    cstrike/cfg/sourcemod/slowhop.cfg

    Configuration Variables (Change in slowhop.cfg):
    sm_slowhop_limit - Maximum velocity a play is allowed when jumping. 0 Disables limiting. (Default: "250.0")

    Changelog:
    0.2 <-> 2010 - 07/15 LumiStance
    Updated code to scale speed only if it needs scaled down
    Change default limit
    0.1 <-> 2010 - 07/14 LumiStance
    Public Beta Release
    Added Plugin Info and Version Cvar
    null <-> 2010 - 07/09 LumiStance
    Initial Coding and Testing
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_slowhop.sp - 1084 views - 4.5 KB)
    __________________

    Last edited by LumiStance; 07-17-2010 at 02:00. Reason: Correct typo's
    LumiStance is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 07-14-2010 , 18:43   Re: Slow Hop - Beta - Speed Hacker Reducer
    Reply With Quote #2

    Seems to work well mate, now all I need is a script to stop my players complaining because they cant jump around like annoying gits.

    cheers
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 07-16-2010 , 10:18   Re: Slow Hop - Beta - Speed Hacker Reducer
    Reply With Quote #3

    nice updates thanks lumiStance
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    LumiStance
    AlliedModders Donor
    Join Date: Jan 2009
    Location: Northern California
    Old 07-17-2010 , 02:01   Re: Slow Hop - Jump Velocity Limiter - Speed Hacker Reducer
    Reply With Quote #4

    Updated plugin after additional testing.
    Added configuration variable and file.
    Added documentation and credits.
    __________________
    LumiStance is offline
    Mister_Magotchi
    SourceMod Donor
    Join Date: Dec 2006
    Location: Nampa, Idaho
    Old 07-31-2010 , 17:58   Re: Slow Hop - Jump Velocity Limiter - Speed Hacker Reducer
    Reply With Quote #5

    I'm having pretty good luck with the plugin, but I noticed an area where it could use improvement.

    Even though this plugin slows people down to the maximum jump speed (which I had initially set at 250 for CS:S), it still leaves in part of the advantage bunnyhopping normally brings. Normally the game slows you down a bit when you land from a jump, so it's not advantageous to jump 24/7. With this, while they're limited to a top speed, they can still continually jump over and over again.

    What I did to counter this was to adjust your code as follows:

    From:
    Code:
      if (scale < 1.0)
        {
    To:
    Code:
      if (scale < 1.0)
        {
          SlapPlayer(client_index, 0, false);
    What this does: Before the player is slowed down to the maximum jump speed set in the cvar, they are first slapped silently and with no health loss. This has the effect of mildly disrupting the jump before the speed adjustment takes place. This virtually removes any advantage of bhopping.

    In testing it, however, by using "PrintToChatAll("Slapped at %i", GetTime());" in a line after the slap, I noticed the speed adjustment (and slapping) was occuring on almost every jump in CS:S when I had a threshold of 250 set. I ended up raising it to 265, and it seems to eliminate most of the false-positives.

    I'm still in the testing phase of this, and I'm not sure if my addon to your plugin makes it foolproof, but I'll let you know.

    Also, somebody in the server said that they're able to bunnyhop backwards even with this plugin enabled. I don't see that as too big of a problem since it gives little or no advantage, but I thought I'd note it.

    Thanks very much for taking the time to make this plugin and attempting to tackle this problem.

    Last edited by Mister_Magotchi; 07-31-2010 at 18:03.
    Mister_Magotchi is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 08-01-2010 , 05:52   Re: Slow Hop - Jump Velocity Limiter - Speed Hacker Reducer
    Reply With Quote #6

    Thats interesting Mister_Magotchi, I like the slap idea lol, but in regards to bunny hopping backwards, if they do it well (and I would assume if you can bunny backward you must be pretty good) it's still really hard or near impossible to shoot them so I would personally consider it a problem.

    cheers
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    Mister_Magotchi
    SourceMod Donor
    Join Date: Dec 2006
    Location: Nampa, Idaho
    Old 08-01-2010 , 06:19   Re: Slow Hop - Jump Velocity Limiter - Speed Hacker Reducer
    Reply With Quote #7

    After more review and watching the effect of my version of the plugin, the slap doesn't actually do much more than the plugin already did, and people can still jump like crazy without the standard slowdown the game is meant to give. I think I may modify it so that when they are slowed for going too fast, they are slowed to less than 100% of the threshold, as a minor penalty for a fast jump.

    EDIT:
    Attached is my new idea, and I'm currently using this in my server. This time the only difference from the LumiStance's original version is that right before the plugin scales down the player's velocity to equal the threshold set in the cvar, I first multiply that scale by .75 . This has the effect of giving a 25% speed penalty (their speed is set to 75% of the threshold) to anyone who makes a jump that goes over the threshold. This of course doesn't affect future jumps, unless they again go over the speed limit set in the cvar.

    Also, the plugin seems to work identically for backward jumps as it does for forward jumps. I think the guy in my server might have been incorrect.

    I realize the original intention of LumiStance's plugin was not to entirely stop bunnyhopping, but to only prevent crazy high-speed bunnyhopping. His plugin works great for the purpose he made it for. For my server, though, I want to eliminate bunnyhopping altogether.
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_slowhop.sp - 376 views - 4.6 KB)

    Last edited by Mister_Magotchi; 08-01-2010 at 06:44.
    Mister_Magotchi is offline
    blodia
    Veteran Member
    Join Date: Sep 2009
    Location: UK
    Old 08-02-2010 , 17:01   Re: Slow Hop - Jump Velocity Limiter - Speed Hacker Reducer
    Reply With Quote #8

    if you want to stop any extra speed gain try what i posted in http://forums.alliedmods.net/showthread.php?t=132262, when i tested it i couldn't gain any extra speed and just ended up jumping up and down like an idiot.
    blodia is offline
    Mister_Magotchi
    SourceMod Donor
    Join Date: Dec 2006
    Location: Nampa, Idaho
    Old 08-02-2010 , 17:13   Re: Slow Hop - Jump Velocity Limiter - Speed Hacker Reducer
    Reply With Quote #9

    blodia, I like your idea of limiting the speed based on he carried weapon instead of setting an arbitrary limit. If I use your code, I'll probably still further limit their speed to penalize them for even trying to hop. Normally CS:S has a speed penalty from jumping, so I'd prefer that to apply even to those trying to bhop. Currently my edited version of this thread's plugin is doing pretty well to prevent bhopping though.
    Mister_Magotchi is offline
    blodia
    Veteran Member
    Join Date: Sep 2009
    Location: UK
    Old 08-02-2010 , 17:43   Re: Slow Hop - Jump Velocity Limiter - Speed Hacker Reducer
    Reply With Quote #10

    the speed penalty is caused by the prop "m_flStamina", i think the default value when you jump is 1600, so increasing this when a player jumps will slow them down even more once they land.
    blodia 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 21:16.


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