alliedmodders / hl2sdk

Half-Life 2 SDK Mirrors
https://github.com/valvesoftware
344 stars 165 forks source link

Update Collision_Group_t #157

Closed zer0k-z closed 12 months ago

zer0k-z commented 12 months ago

Got it from vphysics dll, collision group 0-3 doesn't seem to exist...? Everything else is shifted by 4, and COLLISION_GROUP_NONE is also called "Default" in the dll.

GAMMACASE commented 12 months ago

Are you sure about it starting from 4? seems weird?

zer0k-z commented 12 months ago

image I don't think it starts from 4 anymore, each value from 0 to 3 does different things, but they are not named in the dll.

xen-000 commented 12 months ago

This would explain why players have collision group 8 by default which is now COLLISION_GROUP_PLAYER, as CS:GO also used COLLISION_GROUP_PLAYER on players.

GAMMACASE commented 12 months ago

All I can say is that in my tests setting 1-3 collision group does differ from each other in its behavior, so it's definitely there, just probably wasn't exposed? Nvm, you've commented the same stuff