Raised This Month: $ Target: $400
 0% 

need script to slow down bhop speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danli
Member
Join Date: Mar 2009
Old 04-24-2009 , 11:59   need script to slow down bhop speed
Reply With Quote #1

Steam update broke Sparky's--a metamod pluing I used for years to slow down bhop speed on team fortress classic. Sparky's allowed speed settings from 1 to 5, and I had it set at 1.4. None of the bhop plugins here work for me, but they detect or stop bhop for CS anyway. If you can get me one that works for Half Life/team fortress classic, I will send you a paypal donation.

Thanks!
danli is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-24-2009 , 16:05   Re: need script to slow down bhop speed
Reply With Quote #2

Can you link this plugin ?

You want to restrict gained speed by slowing down players when they land right ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
gevo
Senior Member
Join Date: Jun 2007
Old 04-24-2009 , 16:11   Re: need script to slow down bhop speed
Reply With Quote #3

maybe you can just useThis Plugin and just control the longjump speed?
gevo is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-24-2009 , 16:13   Re: need script to slow down bhop speed
Reply With Quote #4

Longjump speed is the item_longjump from Half-Life, not a player repetitively jumping.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
danli
Member
Join Date: Mar 2009
Old 04-24-2009 , 20:25   Re: need script to slow down bhop speed
Reply With Quote #5

Hey guys. Sparky's was a .dll file. I don't think it will do any good to link to it. You guys never heard of that metamod plugin? Man I'm old. Anyway, I already dabbled with several longjump plugins but this really isn't a feasible solution for me. Peeps will stop playing on my server if I don't let them bhop. But now we got guys coming here and going so fast no one can kill them. So yes, just slow them down. I think alot of them strafe to build up speed, but yes, if you can get them to slow down when they land from at least the third jump that would be great. But I wouldn't stop them on the first or second jump at all. These guys are using some serious bhop scripts. Would be nice if their scripts still worked, but kept all of them at the same speed no matter what.

Last edited by danli; 04-24-2009 at 20:31.
danli is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-24-2009 , 20:50   Re: need script to slow down bhop speed
Reply With Quote #6

Code:
#include <amxmodx> #include <amxmisc> #include <engine> #include <hamsandwich> // the minimum bhops for a player to do in a row before being slowed down #define MIN_BHOPS_BEFORE_SLOWDOWN 3 // the percentage of a player's speed to be reduced by when slowed down #define SLOWDOWN_PERCENTAGE 50 // -- Don't edit beyond here -- #define MAX_BHOP_FRAMES 5 #define FL_ONGROUND2 (FL_ONGROUND|FL_PARTIALGROUND|FL_INWATER|FL_CONVEYOR|FL_FLOAT) #define IsOnGround(%1) !!(get_entity_flags(%1) & FL_ONGROUND2) new g_is_alive[33]; new g_was_on_ground[33]; new g_ground_frames[33]; new g_bhop_counter[33]; public plugin_init() {     register_plugin("Bhop Slow Down", "0.1", "Exolent");         RegisterHam(Ham_Spawn, "player", "FwdPlayerSpawn", 1);     RegisterHam(Ham_Killed, "player", "FwdPlayerKilled", 1); } public client_disconnect(client) {     g_is_alive[client] = 0; } public client_PreThink(client) {     if( !g_is_alive[client] ) return;         new on_ground = IsOnGround(client);         if( !on_ground     && g_was_on_ground[client]     && (get_user_oldbutton(client) & IN_JUMP)     && g_ground_frames[client] < MAX_BHOP_FRAMES )     {         if( ++g_bhop_counter[client] >= MIN_BHOPS_BEFORE_SLOWDOWN )         {             static Float:velocity[3];             entity_get_vector(client, EV_VEC_velocity, velocity);                         velocity[0] = velocity[0] * SLOWDOWN_PERCENTAGE / 100.0;             velocity[1] = velocity[1] * SLOWDOWN_PERCENTAGE / 100.0;                         entity_set_vector(client, EV_VEC_velocity, velocity);         }     }     else if( on_ground && g_ground_frames[client] >= MAX_BHOP_FRAMES )     {         g_bhop_counter[client] = 0;     }         if( on_ground )     {         g_ground_frames[client]++;     }     else     {         g_ground_frames[client] = 0;     }         g_was_on_ground[client] = on_ground; } public FwdPlayerSpawn(client) {     if( is_user_alive(client) )     {         g_is_alive[client] = 1;         g_was_on_ground[client] = 0;         g_ground_frames[client] = 0;         g_bhop_counter[client] = 0;     } } public FwdPlayerKilled(client, killer, shouldgib) {     g_is_alive[client] = 0; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-25-2009 , 04:58   Re: need script to slow down bhop speed
Reply With Quote #7

This one is based on my bhop plugin (based on HL source code).
Use cvar bhop_speed_factor to set the max speed factor, default 1.7 in half-life, don't know if it's the same in tfc, if with 1.7 you don't see any differences, decrease the value.
Attached Files
File Type: sma Get Plugin or Get Source (tfc_bhop.sma - 811 views - 2.3 KB)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
danli
Member
Join Date: Mar 2009
Old 04-25-2009 , 10:22   Re: need script to slow down bhop speed
Reply With Quote #8

@ exolent: I sent you a PM

@ Connor:
Thanks for trying to help. That plugin won't compile for me...doesn't give any errors when I try, but it definitely won't compile. The actual plugin that you attached crashes my server within 30 seconds. I turned off all other plugins and have hamsandwich enabled, but it still crashes. I am using the very latetest version of amxmodx.
danli is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-25-2009 , 12:39   Re: need script to slow down bhop speed
Reply With Quote #9

@Connor
Code:
fVelocity[2] = 268.328157
What if player bhopped? The Z speed is less than that.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-25-2009 , 13:01   Re: need script to slow down bhop speed
Reply With Quote #10

I don't think so, but i don't think you can catch this velocity, only the next frame velocity.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 14:33.


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