Raised This Month: $51 Target: $400
 12% 

[CSS]Anti-BunnyHop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HolySinister
New Member
Join Date: Jun 2010
Old 07-13-2010 , 11:00   [CSS]Anti-BunnyHop
Reply With Quote #1

Hey Guys,
I'm having the same problem 80% of all of us are having with lua scripters.
I would like to know if anyone can make a anti-bunnyhop for me.

I tried this one
http://forums.alliedmods.net/showthread.php?p=753132

But it stops people from jump normal height, you can't even jump on boxes. Thanks guys ahead of time this is a huge problem on our servers, any help is beyond appreciated.
HolySinister is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 07-13-2010 , 16:13   Re: [CSS]Anti-BunnyHop
Reply With Quote #2

Couldn't you just disable clients from using plugins? Or is using LUA scripts necessary on your server?
GoD-Tony is offline
Darkthrone
Senior Member
Join Date: Jun 2009
Old 07-13-2010 , 20:18   Re: [CSS]Anti-BunnyHop
Reply With Quote #3

as far as i know, not all types of bunnyhop can be detected by kac
i have kac 1.2.1.1, but someone on my server still can use bunnyhop

try
http://forums.alliedmods.net/showthr...26#post1050726
__________________
all the best for your Zombie:Reloaded server
Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock


Last edited by Darkthrone; 07-15-2010 at 23:31.
Darkthrone is offline
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 07-14-2010 , 15:44   Re: [CSS]Anti-BunnyHop
Reply With Quote #4

is it the extra speed gained from bunny hopping you want to stop?
blodia is offline
Darkthrone
Senior Member
Join Date: Jun 2009
Old 07-14-2010 , 21:21   Re: [CSS]Anti-BunnyHop
Reply With Quote #5

we want to stop acceleration after jumping
try to jumping in real life, it not will give you acceleration
__________________
all the best for your Zombie:Reloaded server
Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock

Darkthrone is offline
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 07-15-2010 , 16:31   Re: [CSS]Anti-BunnyHop
Reply With Quote #6

comparing a game to real life doesn't work, anyway try this

PHP Code:
public Action:OnPlayerRunCmd(client, &buttons, &impulseFloat:vel[3], Float:angles[3], &weapon)
{
    static 
bool:IsOnGround[MAXPLAYERS 1];
    
    if (
IsPlayerAlive(client))
    {
        new 
ClientFlags GetEntityFlags(client);
        if (
ClientFlags FL_ONGROUND)
        {
            if (!
IsOnGround[client])
            {
                
IsOnGround[client] = true;
                
                new 
Float:CurVelVec[3];
                
GetEntPropVector(clientProp_Data"m_vecVelocity"CurVelVec);
                new 
Float:MaxSpeed GetEntPropFloat(clientProp_Data"m_flMaxspeed");
                
                if (
GetVectorLength(CurVelVec) > MaxSpeed)
                {
                    
NormalizeVector(CurVelVecCurVelVec);
                    
ScaleVector(CurVelVecMaxSpeed);
                    
TeleportEntity(clientNULL_VECTORNULL_VECTORCurVelVec);
                }
            }
        }
        else
        {
            
IsOnGround[client] = false;
        }
    }
    
    return 
Plugin_Continue;

this will clamp a players speed to the maximum allowed by their active weapon when they land from a jump so they gain no extra speed.

if its still not slow enough for you you can lower the value in MaxSpeed after its set.
blodia is offline
Darkthrone
Senior Member
Join Date: Jun 2009
Old 07-16-2010 , 09:02   Re: [CSS]Anti-BunnyHop
Reply With Quote #7

thx blodia, i will try it
__________________
all the best for your Zombie:Reloaded server
Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock

Darkthrone 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 10:27.


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