View Single Post
Author Message
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 07-14-2010 , 18:27   [ANY] Infinite-Jumping (3.0, 2014-Nov-29)
Reply With Quote #1

Infinite-Jumping
Bunny Hop, Double Jump & Initial Jump Height Modification
Index:

Description:
This plugin brings some useful jumping/movement functions to your server:
  • Lets a player automatically jump, when holding space (bunny hop).
  • Lets a player, when in midair, jump again (double jump/multi jump).
    • If multi jump is active you can set the perfect automatically jump for mid air jumps (hold space down and at the highest point you'll automatically jump again)
  • You can set how height a player can jump (the initial jump and/or the double/multi jump).
  • You can set a predefined forward push when a player jumps.
  • You can disable the slow down if a player is hurt.
  • You can disable the stamina slow down if a player lands (example in css).
Everything is fully configurable with the console variables!

This plugin should work for any games/mods.
Videos:
  1. YouTube
  2. YouTube
  3. YouTube
Requirements:
  • SourceMod 1.5 or higher.
  • ClientPrefs extension is optional. Its needed when you want that the switch '!autojump' is saved for each player even after server restart or you want the '!settings' menu.
Known Issues:
  • There is a issue that some game server provider (hoster) have a problem, with the SourceMod native function OnPlayerRunCmd is never called/executed. If your game server provider can't fix this problem, every plugin which needs OnPlayerRunCmd will not work. To test if your game server calls/executes OnPlayerRunCmd I've made a test plugin and a small instruction how to test it.
How to report issues:
Please, search what you'd like to report here first: https://github.com/chanz/infinite-ju...commits/master
You can't find it? Then continue to read the following guide lines:
  1. What game are you running the plugin on. (CSS, HL2DM, TF2, etc...)
  2. What is the problem:
    • The server is crashing, lagging, etc.
    • The plugin isn't loading.
    • The plugin isn't working as you expect it.
    • ...
  3. Optional: What the server console prints, when you type the following into it without "" (if you can't access the server console directly use HLSW):
    1. "plugin_print"
    2. "meta list"
    3. "sm plugins list"
    4. "sm exts list"
  4. Search the latest error log (<moddir>/addons/sourcemod/logs/error_xxxxxx.log) that contains an error about this plugin.
Changelog:
https://github.com/chanz/infinite-ju...commits/master
Spoiler
Console/Chat commands:
  • User/player:
    • sm_autojump
      • Enables and disables auto jump.
  • Admin (with ban flag):
    • sm_ban_autojump <target> <time in minutes>
      • Bans someone from using auto jump.
Console variables:
PHP Code:
// This file was auto-generated by SourceMod
// ConVars for plugin "infinite-jumping.smx"


// ####################################################################

// M A I N

// ####################################################################

// Enables or disables this plugin
// -
// Default: "1"
infinite-jumping_enable "1"

// ####################################################################

// A C C E S S   M A N A G E M E N T

// ####################################################################
// --------------------------------------------------------------------
// A C C E S S   N O R M A L   I N F I N I T E    J U M P S
// --------------------------------------------------------------------

// Automatic rejump.
// "1" = force on.
// "0" = force off.
// "<adminflag>" = admin with this flag can (a,b,c,d,...).
// See: addons/sourcemod/configs/admin_levels.cfg for more info.
// -
// Default: "0"
infinite-jumping_flags_infinite ""

// --------------------------------------------------------------------
// A C C E S S   F O R W A R D   B O O S T
// --------------------------------------------------------------------

// Automatic forward boost by each jump.
// "" = everyone can.
// "0" = noone can.
// "<adminflag>" = admin with this flag can (a,b,c,d,...).
// See: addons/sourcemod/configs/admin_levels.cfg for more info.
// -
// Default: "0"
infinite-jumping_flags_forwardboost "0"

// --------------------------------------------------------------------
// A C C E S S   S L O W   D O W N S
// --------------------------------------------------------------------

// Bypass game slow downs as stamina or slow down on hurt.
// "" = everyone can.
// "0" = noone can.
// "<adminflag>" = admin with this flag can (a,b,c,d,...).
// See: addons/sourcemod/configs/admin_levels.cfg for more info.
// -
// Default: ""
infinite-jumping_flags_gameslowdowns ""

// --------------------------------------------------------------------
// A C C E S S   M I D   A I R
// --------------------------------------------------------------------

// Rejump in mid air.
// "" = everyone can.
// "0" = noone can.
// "<adminflag>" = admin with this flag can (a,b,c,d,...).
// See: addons/sourcemod/configs/admin_levels.cfg for more info.
// -
// Default: "0"
infinite-jumping_flags_double "0"

// Jump automatic in mid air when jump is pressed.
// "" = everyone can.
// "0" = noone can.
// "<adminflag>" = admin with this flag can (a,b,c,d,...).
// See: addons/sourcemod/configs/admin_levels.cfg for more info.
// -
// Default: "0"
infinite-jumping_flags_perfectdouble "0"

// ####################################################################

// S L O W   D O W N ?

// ####################################################################

// This will override the speed ratio when hurt.
// 1.0 = no speed is lost.
// 0.5 = 50% slower.
// 0.0 = stops
// 2.0 = 100% faster.
// -1.0 = let the engine/game handle how much speed players loose.
// -
// Default: "1.0"
infinite-jumping_override_slowdownonhurt "1.0"

// This will be the new stamina value when you land.
// 0.0 = full stamina/no speed is lost.
// -1.0 = let the engine handle how much speed a player looses.
// Example: 1315.0 is the default value in css, but use -1.0 instead if you wish to disable.
// -
// Default: "0.0"
infinite-jumping_override_stamina "0.0"


// ####################################################################

// B O O S T I N G !

// ####################################################################

// Amount of boost per second to push the client forward when jumping.
// In units per second.
// Be careful this value adds ontop of the velocity at each jump.
// -
// Default: "50.0"
infinite-jumping_boost_forward "50.0"

// If this is 1 then players need to press W,S,A,D (movement keys) and jump, to receive a boost (adds basicly more control).
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
infinite-jumping_boost_forward_wsad "0"

// If you wish to jump higher or lower, then change this value.
// In units per second.
// negative values = players can't jump that high anymore
// 0.0 = normal jump height
// positive values = players can jump heigher.
// -
// Default: "0.0"
infinite-jumping_boost_initial "0.0"


// ####################################################################

// M I D   A I R

// ####################################################################

// The maximum number of re-jumps allowed while in mid air.
//  if you want to disable this, don't set it to 0 instead use the sm_infinitejumpging_flags_double console var.
// -
// Default: "1"
// Minimum: "0.000000"
infinite-jumping_max_doublejumps "1"

// The amount of vertical boost, to apply when mid air double jumping.
// In units per second.
// negative values = player are pushed down in mid air, when double/multi jump.
// 0.0 = only falling can be stopped, when jump is pressed in mid air.
// positive values = pl
// -
// Default: "290.0"
infinite-jumping_boost_double "290.0"


// ####################################################################

// C V A R S   Y O U   P R O B A B L Y   W A N T

// ####################################################################

// Thanks TUSK3N1337
sm_cvar sv_enablebunnyhopping 1
sm_cvar sv_staminamax 0
sm_cvar sv_staminajumpcost 0
sm_cvar sv_staminalandcost 0
sm_cvar sv_staminarecoveryrate 0
sm_cvar sv_airaccelerate 9999
sm_cvar sv_accelerate_use_weapon_speed 0
sm_cvar sv_maxvelocity 3500 

Important information:
  • When updating please backup and delete these files:
    • Version 3.XX and later:
      • /cfg/sourcemod/infinite-jumping.cfg
      • /addons/sourcemod/plugins/infinite-jumping.smx
      • /addons/sourcemod/translations/infinitejumping.phrases.txt
    • Version 2.XX:
      • /cfg/sourcemod/plugin.infinite-jumping.cfg
      • /addons/sourcemod/plugins/infinite-jumping.smx
      • /addons/sourcemod/translations/plugin.infinitejumping.phrases.txt
  • Additional console variables you might want to use:
    • sm_cvar sv_enablebunnyhopping 1 // Setting it to 1 won't clamp your max speed anymore
    • sv_airaccelerate 9999 // You can use A or D and your mouse to turn very fast without loosing speed or even when you do it right, you can gain speed
    • sv_enableboost 1 // You gain speed with every jump? I don't use it on my servers but I've got told that some server owners use this and like it.
    • // For CS:GO (Thanks TUSK3N1337):
      sm_cvar sv_staminamax 0
      sm_cvar sv_staminajumpcost 0
      sm_cvar sv_staminalandcost 0
      sm_cvar sv_staminarecoveryrate 0
      sm_cvar sv_accelerate_use_weapon_speed 0
      sm_cvar sv_maxvelocity 3500
Download:
The provided plugin.infinite-jumping.cfg file is configured to only allow automatically-jumping, for all players.

Download: https://github.com/chanz/infinite-jumping/releases
Index (back to top)
Installation:
  • Extract the zip into your mod folder.
Index (back to top)
Credits:
Thank you Berni, Manni, Mannis FUN House Community and SourceMod/AlliedModders-Team
Thank you Fredd for the BunnyHop plugin & idea. Visit http://forums.alliedmods.net/showthread.php?t=67988
Thank you NcB_Sav for the DoubleJump idea. Visit http://forums.alliedmods.net/showthread.php?t=99228
Thank you paegus for the DoubleJump plugin. Visit http://forums.alliedmods.net/showthread.php?t=99874
Thank you gtamike for the videos that show how this plugin can work.
Thank you Brotcrunsher for allowing public testing.
Versions:
Now on github.com !
https://github.com/chanz/infinite-jumping
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]

Last edited by Chanz; 11-30-2014 at 12:09.
Chanz is offline