AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [CSGO] Change player collision hull (https://forums.alliedmods.net/showthread.php?t=305748)

NatsUpX 06-30-2022 05:50

Re: [CSGO] Change player collision hull
 
is it possible to change the hull as it is in css? if yes, what values do i need?

When i change this value (72) to a lower value like 60, then my model just shrinks smaller. When i do the same and go even lower its glitching into the chest.


float g_fNewHullValues[] =
{
0.0, 0.0, 64.0,

-16.0, -16.0, 0.0,
16.0, 16.0, 72.0,

-16.0, -16.0, 0.0,
16.0, 16.0, 36.0,
0.0, 0.0, 28.0,

-10.0, -10.0, -10.0,
10.0 , 10.0, 10.0,

0.0, 0.0, 14.0
};


How can i reduce the max hull without affecting my model?

SirDigby 02-06-2023 20:11

Re: [CSGO] Change player collision hull
 
Updated gamedata.

Haven't tested personally, but I'm told it works on linux.
The windows sig didnt need changing but I did anyway just to make it use the same easily found function as the linux sig.

Code:

"Games"
{
    "csgo"
    {
        "Addresses"
        {
            "g_CSViewVectors"
            {
                "windows"
                {
                    "signature" "g_pGameRules"
                    "read" "18"    // g_pGameRules
                    "read" "0"      // CCSGameRules object
                    "read" "0"      // CCSGameRules vtable
                    "read" "120"    // CCSGameRules::GetViewVectors()
                    "read" "1"      // g_CSViewVectors
                }
                "linux"
                {
                    "signature" "g_pGameRules"
                    "read" "13"
                    "read" "0"
                    "read" "0"
                    "read" "124"    // Offset found with VEC_DUCK_HULL_MIN in CBasePlayer::Restore
                    "read" "2"
                }
            }
        }
       
        "Signatures"
        {
            // CBaseEntity::TakeDamage -- "CBaseEntity::TakeDamage:  with inputInfo.GetDamageForce() == vec3_origin"
            "g_pGameRules"
            {
                "library"    "server"
                "windows"    "\x55\x8B\xEC\x83\xE4\xF8\x81\xEC\x90\x00\x00\x00\x56\x57\x8B\xF9\x8B\x0D\x2A\x2A\x2A\x2A"
                "linux"      "\x55\x89\xE5\x57\x56\x53\x81\xEC\x9C\x00\x00\x00\xA1\x2A\x2A\x2A\x2A\x8B\x75\x2A"
            }
        }
    }
}


k0mr4d3 03-10-2023 11:08

Re: [CSGO] Change player collision hull
 
Setting up this plugin for my server, but I notice that the 1st person view looks really laggy when changing hull (crouching). Is there any way to fix this other than disable client prediction?


All times are GMT -4. The time now is 22:34.

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