[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.
|
All times are GMT -4. The time now is 11:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.