AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Real Fake bHop (https://forums.alliedmods.net/showthread.php?t=138775)

thacursedpie 09-22-2010 14:24

[TF2] Real Fake bHop
 
3 Attachment(s)
Real Fake bHop
Bunnyhopping brought back to TF2

Video (old version)

ATM I'm too busy IRL so I can't support my mods. Mods: could you place it in 'unapproved'? Thanks.

Description

This mod simulates bunnyhopping in Team Fortress 2. (as you may or may not know, Valve blocked bunnyhopping).

What sets this mod apart from others (such as TFTurbo) is the fact that it more accurately simulates bunnyhopping. You need to jump at the right moment, for example, in stead of just holding the +jump key.

It is also easy for admins to set the plugin up for their liking. Fancy a little more 'arcade'? Increase the multiplier! Feel like I messed up when I configured the settings? Change them! :)

I would like to say that this is my first (released) sourcemod plugin. If you find any problems, please say so :).


Cvars
(for a better documentation of the cvars, read doc.txt)
Quote:

rfbhop_version
Plugin version

rfbhop_enabled
Turn the plugin on or off

rfbhop_multiplier
Multiplier to use for bunnyhopping. < 1: decrease in speed. 1: only speed increase is skill. > 1: more easy.

rfbhop_tolerance
Amount of frames a player is allowed to touch the ground before bhop expires

rfbhop_angleratio

Ratio between 'old' speedvector-direction and 'new' speedvector-direction


Client-side commands

Quote:

!speedo
Turn the speedometer on/off


Additional notes

In general, rfbhop_multiplier, rfbhop_angleratio and rfbhop_tolerance decide the difficulty-level.

The higher rfbhop_multiplier, the more speed the user gains (which means airstrafing isn't as needed).
Higher = easier.

The higher rfbhop_tolerance, the longer the user can 'wait' (= the slower his reaction time can be), before his next jump.
Higher = easier, but also more 'laggy'

The higher rfbhop_angleratio, the more 'curvy' the bhop. The lower, the more 'straight'.
Higher = easier, but also more 'laggy'

I suggest you play a little with the settings to find out what suits you best. You can also read the (quite lenghty - I was bored :P) doc.txt file.


Dependencies
The very awesome SDK hooks


Installation

Place rfbhop.smx in your plugins folder.

(The plugin might also work for other games, but I haven't tested. Besides - which games?)

Chris-_- 02-05-2011 18:50

Re: [TF2] Real Fake bHop
 
Can you replicate some of the effects of TF2Turbo (Optional, of course)?

1. Doublejump as scout in air will give you an extra bhop.
2. Allowed to bhop while crouching.

thacursedpie 02-06-2011 08:27

Re: [TF2] Real Fake bHop
 
2 Attachment(s)
Wow, long time since I posted this mod! I'd have to take a look at the source, but I think both will be pretty easy to do.
You're in luck: I'm sick, it's weekend, I haven't got anything to do, so I think I'll be able to add your requests today (no promises though!).

By the way, what was the time limit on approving / disapproving plugins again? Wasn't it 3 months? Whilst this may not be a very popular mod, I'm still interested to see if it has what it takes to be approved.

EDIT:
Added your suggestions. I haven't been able to test it out, so I don't know if it'll work as expected. I'll add the new version to the first post when it's been tested.

Changelog v0.2:

Added cvars:
Quote:

rfbhop_allowcrouch Whether or not to allow bunnyhopping while crouched
rfbhop_djump_bhop Whether or not to give scouts a bhop upon doublejumping

Chris-_- 02-06-2011 11:39

Re: [TF2] Real Fake bHop
 
Okay, I didn't realize that the scout part would just not work, it's quite connected with TF2Turbo, the way you just need to hold space and when in air, you can literally just change the direction of the double bhop. So unless you almost entirely replicate TF2Turbo's feature where you can just hold space to bhop, this is a lost cause :P

The crouch bhop doesn't work either. If you hold crouch and then try to jump, I think you'll get the clue.

thacursedpie 02-06-2011 15:54

Re: [TF2] Real Fake bHop
 
About the double-jump:
I now see what you mean (I think). This would be easy to implement, since I've already got a function which boosts players. So no biggy. (really, the main difference between my mod and TFTurbo is that I detect when a player jumps, instead of that 'magically' bhopping by just holding the spacebar)

About crouching:
TF2 doesn't let you jump while crouching, does it? Hah :P. I haven't played TF2 in a while, so I didn't think of that. Would be a tad harder, but there might be a way around that.

Unreal1 02-12-2011 23:38

Re: [TF2] Real Fake bHop
 
I can't get the v2 of the plugin to compile can you re-post the .smx and source?

thacursedpie 02-13-2011 06:41

Re: [TF2] Real Fake bHop
 
What kind of errors are you getting? Do you have SDK hooks?

It would be a bit useless to re-post the .smx and source, since it would be no different than my last post (#3 in this thread).

I haven't been able to work on Chris' requests since my computer broke down (damn PSU or videocard) and I was busy. Maybe today.

snowyiet 02-17-2011 01:58

Re: [TF2] Real Fake bHop
 
This would be perfect if you could bunnyhop while crouched.

Reconunit415 02-18-2011 20:09

Re: [TF2] Real Fake bHop
 
Hey, this plugin turned out to be the sole culprit in crashing our TF2 surf server, even with it being the only script running.

Might be a bit selfish of me to ask, but is there anything you can think of that would do this? Or possibly fix the plugin a little?

Chris-_- 02-19-2011 09:08

Re: [TF2] Real Fake bHop
 
I get this as well, same with TF2Turbo. The crash lies deep inside the engine at most times (There are several 'types' of crashes), but the stack is usually traced back to SM's TeleportEntity function.

thacursedpie 04-26-2011 17:36

Re: [TF2] Real Fake bHop
 
Hey lads, sorry for the very late reply.

At the moment I'm not capable of supporting my mods, I'm far too busy in real life. Sorry!

Chris:
Thanks for having a look. I guess it lies within the engine then? Or maybe a bug within sourcemod?

Reconunit:
I'm not very experienced with Sourcemod - I really only scripted a couple of small mods - so I'm not sure what is causing these crashes. It's not selfish of you at all :). But I'm afraid I'm going to have to disappoint you - see the beginning of this post. See also my reply to Chris; I don't think it's easily fixable.
Then again if you have a tiny bit of coding/scripting knowledge you can have a look at the source, it's pretty densely commented :)

shaneod 05-08-2011 16:36

Re: [TF2] Real Fake bHop
 
http://www.youtube.com/watch?v=5FfsxghJmOA
Had fun messing around with it. Thanks :)

danne2 06-21-2012 12:03

Re: [TF2] Real Fake bHop
 
Can anyone that knows how to script patch this mod up? I'd love to have it on my Deathrun server but it's causing crashes.

AeroAcrobat 08-15-2012 08:52

Re: [TF2] Real Fake bHop
 
spams the error logs:
Code:

L 08/10/2012 - 23:30:23: [SM]  [0]  Line 381, D:\Games\srcds\orangebox\tf\addons\sourcemod\scripting\rfbhop.sp::OnPostThink()
L 08/10/2012 - 23:30:23: [SM] Plugin encountered error 15: Array index is out of bounds
L 08/10/2012 - 23:30:23: [SM] Displaying call stack trace for plugin "rfbhop.smx":

could anyone please fix it ? would be very nice.

thacursedpie 08-16-2012 04:06

Re: [TF2] Real Fake bHop
 
Hey all!

Regarding the crashes: I don't have a clue. Could be something in SDKhooks or just something in the source engine.

Regarding the 'index is out of bounds': that's bad coding on my part, sorry. Without looking at the code (and without remembering it, it has been a while), my guess is the problem lies in the amount of max players you allow on your server (which is either too high or too low). That's just a guess though.

Anyways, a few weeks ago I rewrote the mod because it is ugly as all hell at the moment. The rewrite isn't done yet, but when it is I'll release it. It has most of the current functionality, minus the speedometer (I didn't really like it anyway. If you really really like it I can put it back in.) There are also a few new features, which are fun to play around with ^^.

Sadly I'm busy IRL and I have other mods to support as well. I won't be updating the current version of the mod, I'll just release the new version (when it's done).

Cheers.

AeroAcrobat 08-16-2012 04:57

Re: [TF2] Real Fake bHop
 
Quote:

Originally Posted by thacursedpie (Post 1772746)
Hey all!

Regarding the crashes: I don't have a clue. Could be something in SDKhooks or just something in the source engine.

Regarding the 'index is out of bounds': that's bad coding on my part, sorry. Without looking at the code (and without remembering it, it has been a while), my guess is the problem lies in the amount of max players you allow on your server (which is either too high or too low). That's just a guess though.

Anyways, a few weeks ago I rewrote the mod because it is ugly as all hell at the moment. The rewrite isn't done yet, but when it is I'll release it. It has most of the current functionality, minus the speedometer (I didn't really like it anyway. If you really really like it I can put it back in.) There are also a few new features, which are fun to play around with ^^.

Sadly I'm busy IRL and I have other mods to support as well. I won't be updating the current version of the mod, I'll just release the new version (when it's done).

Cheers.

that are very good news!
I personaly had no issues before the chinese update (koth_king + new wep.). I'm running a 32 slot surf server. it would be also nice if you could do a ON/OFF cvar for speedometer and at which speed the speedometer should be displayed e.g. diplay speedometer only if player is 120% fast.
Thanks for the info!

thacursedpie 08-19-2012 11:16

Re: [TF2] Real Fake bHop
 
Fysics Control now supersedes this plugin. See topic at https://forums.alliedmods.net/showth...79#post1776179 :)

Dr. Killer 05-09-2013 06:54

Re: [TF2] Real Fake bHop
 
Anyone can help me?
I installed the plugin like they said but it doesn't work

Minekratt 12-14-2013 02:34

Re: [TF2] Real Fake bHop
 
Hey, can u allow this plugin to jump while crouch. Thank you!

thacursedpie 12-18-2013 05:06

Re: [TF2] Real Fake bHop
 
This plugin is superseded by Fysics Control, see the thread here: https://forums.alliedmods.net/showthread.php?t=193453 . I no longer support Real Fake bHop.


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

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