Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

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 18:54.


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