ragdoll / physics Q

chriso20

Newbie
Joined
Jul 16, 2004
Messages
686
Reaction score
0
Ok i had a pretty gd idea of how ragdolls wud work on cs;s until i read something.

Basically i thought that things like bullet paths, player direction,movement, grenades etc... are server side so everyone's the same. Whilst bodies are client side, so u get shot by a bullet and you fall one way but on sum1 else's pc u fall this way.

But then i read that bodies locations are server side, so surely that means everyone's view of a body is the same?

so my q is, for example that drunk guy (other thread) if i said in the game, "hey look at steps blah blah...guy" can everyone else see the same and have a laugh?
 
chriso20 said:
Ok i had a pretty gd idea of how ragdolls wud work on cs;s until i read something.

Basically i thought that things like bullet paths, player direction,movement, grenades etc... are server side so everyone's the same. Whilst bodies are client side, so u get shot by a bullet and you fall one way but on sum1 else's pc u fall this way.

But then i read that bodies locations are server side, so surely that means everyone's view of a body is the same?

so my q is, for example that drunk guy (other thread) if i said in the game, "hey look at steps blah blah...guy" can everyone else see the same and have a laugh?

I'd assume the bodies location is only server-side when it's alive, if it goes into ragdoll mode (dead) it gets handled by the client. Seems efficient enough. Wouldn't have to send as much data to all the clients once a player died, only that "It died at x,y,z with bullets hitting him here, do the physics calculations"

EDIT: Perhaps an email to gabe to answer this up?
 
the zero point of the bodys physical simulation as a whole, is tracked server side, but the smaller points on there limbs and constraints are all client side, so although we see the body in the same place, it may be positioned differently, thats how i am lead to believe.
 
This situation happened to me earlier today! There was a pretty hilarious roagdoll effect of a guy who died upside down. I told a few other *dead* fellas that there was a funny ragdoll effect right above the bridge on the CT side. They all saw it and laughed. A friend of mine even took a picture and sent it too me via e-mail and when I saw it, it was the exact same thing I saw the round it happened.
 
hegele said:
This situation happened to me earlier today! There was a pretty hilarious roagdoll effect of a guy who died upside down. I told a few other *dead* fellas that there was a funny ragdoll effect right above the bridge on the CT side. They all saw it and laughed. A friend of mine even took a picture and sent it too me via e-mail and when I saw it, it was the exact same thing I saw the round it happened.

Yeah but since it's a math calculation, theres only so many outcomes. It was likely in that situation only one outcome was possible. But I tend to agree more with lobster's point of view.
 
As i've argued before tho, the physics and bullet energy etc.. is exactly the same so surely if should be the same outcome?

Apart from shooting limbs obviously.

What could be good is a bit of code to ensure the body falls the same way for everyone, but then that bodys limbs locations arent updated until sum1 shoots one, at which it send it to the server for everyone else, rather than sending packet after packet of "LARM: 20,150,50" because the arm doesnt move.... if u get what im saying...
 
Back
Top