[CSGO] Change player collision hull
Made this for a movement gametype and I thought might be helpful to some others.
Basic idea is that collision hull values are stored in a global variable named g_CSViewVectors (these values are a bit different in CS:GO), so all we have to do is change those values. To get the address of g_CSViewVectors on Windows, we need to offset 1 byte from CCSGameRules::GetViewVectors function, which has a virtual offset of 30 (120 bytes) from CCSGameRules vtable. I combined this with gamedata I had previously for g_pGameRules from a different project. So gamedata file ends up looking like this: Code:
"Games"PHP Code:
One of the obvious issues is prediction, since this value is also hardcoded in the client. This is especially obvious when you change height of hull and you hit something above you, due to the client prediction it spases out a bit. Other than that I've found that when there isn't any lag it works alright (although a little snappy in some cases). |
Re: [CSGO] Change player collision hull
Great job!
We can simulate collision hull like as CS:S |
Re: [CSGO] Change player collision hull
I tested it on my CS:GO Linux server and it just caused it to crash
|
Re: [CSGO] Change player collision hull
Yea the gamedata for linux is wrong, someone hooked me up with a test server recently though so I'll try to fix it up later.
|
Re: [CSGO] Change player collision hull
Fixed linux gamedata
|
Re: [CSGO] Change player collision hull
can update gamedata for linux?
|
Re: [CSGO] Change player collision hull
Yeah, update gamedata for linux please-and-thanks.
|
Re: [CSGO] Change player collision hull
Here's an updated linux signature. Untested.
Code:
\x2A\xA1\x2A\x2A\x2A\x2A\x8B\x5D\x08\x85\xC0\x74\x2A\x8B |
Re: [CSGO] Change player collision hull
edit: nvm, i just had it setup wrong..
|
Re: [CSGO] Change player collision hull
Cool plugin, but how to get hull values from models? e.g. i want change player to chicken so i need hull value from chicken model.
|
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? |
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" |
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.