Facepunch / garrysmod-issues

Garry's Mod issue tracker
147 stars 56 forks source link

cl_ragdoll_collide doesn't affect anything #3678

Open DanilaFoxPro opened 5 years ago

DanilaFoxPro commented 5 years ago

Details

Console command "cl_ragdoll_collide" doesn't have any effect on ragdolls, and I mean with "keep corpses" disabled, otherwise they collide anyway. Also tested in Half-Life 2, doesn't work either.

Steps to reproduce

"cl_ragdoll_collide 1" and shoot some NPCs.

robotboy655 commented 5 years ago

If it doesn't have any effect in Half Life 2, why should it have any effect in GMod?

What "Effect" are you even expecting

DanilaFoxPro commented 5 years ago

It should enable collisions between ragdolls, as described here: cl_ragdoll_collide.

thegrb93 commented 5 years ago

Maybe it's due to clientside props not having clientside physobjects? Try using the adv-resizer tool on a prop (this makes it create a clientside physobj) and see if the ragdoll collides after that.

DanilaFoxPro commented 5 years ago

But toolgun can't do anything with "non-Keep Corpses" ragdolls, even "ent_text" trace doesn't hit them.

thegrb93 commented 5 years ago

I said use it on a prop, then see if the ragdoll collides with the prop.

DanilaFoxPro commented 5 years ago

Tested, doesn't collide.

thegrb93 commented 5 years ago

https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/game/client/physics.cpp#L242

Looks like it needs FVPHYSICS_PART_OF_RAGDOLL flag. So it only controls if ragdoll collides with other ragdolls.

thegrb93 commented 5 years ago

Would be nice if it was 1 by default and also collided with props. But such is hl2mp_ragdoll

DanilaFoxPro commented 5 years ago

But ragdolls don't collide if this cvar is true, that's the issue.

DanilaFoxPro commented 5 years ago

Looking at its Valve Developer Community page's talk it's implied that it was working before.

DanilaFoxPro commented 5 years ago

Tested in retail version of Half-Life 2, it works!

DanilaFoxPro commented 5 years ago

ragdolls Ragdolls collide with each other, but not with the player or props.

weaponcubemap commented 2 years ago

Seems like cl_ragdoll_collide doesn't work after Source SDK 2007 update, but sometimes if you use it, it can cause floating physics bug, if using it in later engine versions like 2006. I tested this command in engine versions like 2006, 2007, and in retail half-life 2 2004, and at steam version of half-life 2. In newer versions this command does nothing. If it's 2006 engine version, it can cause sometimes physics mayhem bug.