AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [CS:GO] Bhop view bounce fix (9/16/2016) (https://forums.alliedmods.net/showthread.php?t=287908)

TheWho 09-18-2016 00:43

[CS:GO] Bhop view bounce fix (9/16/2016)
 
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 :crab:

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.

decl_mev 09-18-2016 11:28

Re: [CS:GO] Bhop view bounce fix (9/16/2016)
 
settings "m_bHasWalkMovedSinceLastJump" to true all the time seems to have the same effect

TheWho 09-18-2016 12:27

Re: [CS:GO] Bhop view bounce fix (9/16/2016)
 
You're wrong but thanks for this bool ^^

TheWho 09-22-2016 00:01

Re: [CS:GO] Bhop view bounce fix (9/16/2016)
 
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.

rsg 09-24-2016 17:43

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


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

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