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

[CS:GO] Bhop view bounce fix (9/16/2016)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheWho
AlliedModders Donor
Join Date: Jul 2012
Old 09-18-2016 , 00:43   [CS:GO] Bhop view bounce fix (9/16/2016)
Reply With Quote #1

Hey,

I don't like posting plugins where I have to give support.

Here is a snippet which will temporary fix the bug in csgo:
Keep nonstop bhoping with your autobhop plugin of course and spam crouch,
then it would adjust your view camera very weird.
You can see it if you touch the floor and keep bhoping.

Draw a line on the floor and check out yourself.

I'm bad at describing things:
PHP Code:
#pragma semicolon 1
#include <sourcemod>

public Plugin:myinfo 
{
    
name "[CS:GO] Temporary bhop view bounce fix",
    
author "TheWho",
    
description "",
    
version "1.0",
    
url "http://www.sourcemod.net/"
};

public 
Action:OnPlayerRunCmd(client, &buttons, &impulseFloat:vel[3], Float:angles[3], &weapon, &subtype, &cmdnum, &tickcount, &seedmouse[2])
{
    if (
IsValidNoFakeClient(clienttrue))
    {
        if(!(
buttons IN_DUCK) && !(GetEntityFlags(client) & FL_ONGROUND))
        {
            new 
gDucking GetEntProp(clientProp_Data"m_bDucking");

            if (
gDucking != 0)
            {
                
SetEntProp(clientProp_Data"m_bDucking"0);
            }
        }
    }
}

stock bool:IsValidNoFakeClient(clientbool:isAlive false){
    if(
client >= && client <= MaxClients && IsClientConnected(client) && IsClientInGame(client) && !IsFakeClient(client) && (isAlive == false || IsPlayerAlive(client)))
    {
        return 
true;
    }
    return 
false;

nor I like the new syntax

BTW: I noticed the bug has something to do with step size of 18 units. Valve knows it already that they messed up again so I won't put it into the mailing list.
TheWho is offline
decl_mev
Member
Join Date: Dec 2015
Old 09-18-2016 , 11:28   Re: [CS:GO] Bhop view bounce fix (9/16/2016)
Reply With Quote #2

settings "m_bHasWalkMovedSinceLastJump" to true all the time seems to have the same effect
__________________
If it isn't automated you aren't doing it right.

High quality servers with custom plugins @ http://sourcecode.community
Github @ https://github.com/meev
Steam @ http://steamcommunity.com/id/mevv

Last edited by decl_mev; 09-18-2016 at 11:30.
decl_mev is offline
TheWho
AlliedModders Donor
Join Date: Jul 2012
Old 09-18-2016 , 12:27   Re: [CS:GO] Bhop view bounce fix (9/16/2016)
Reply With Quote #3

You're wrong but thanks for this bool ^^
TheWho is offline
TheWho
AlliedModders Donor
Join Date: Jul 2012
Old 09-22-2016 , 00:01   Re: [CS:GO] Bhop view bounce fix (9/16/2016)
Reply With Quote #4

CSGO Update Changelog:
"– Fixed a bug where players could double crouch jump higher than designed height."
"– Fixed a bug where players would not be able to uncrouch in the air."

Thread can be closed.
TheWho is offline
rsg
Member
Join Date: Apr 2011
Old 09-24-2016 , 17:43   Re: [CS:GO] Bhop view bounce fix (9/16/2016)
Reply With Quote #5

not work
rsg is offline
Send a message via Skype™ to rsg
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:50.


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