ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.66k stars 616 forks source link

sv_clienttrace - how does it work? #1692

Open ghost opened 8 years ago

ghost commented 8 years ago

Can someone explain this svar to me? If I set it really high, everything on my server hits (even if my aim is way off). If I set it near 1.0 or even really low it seems to be about the same (only hits if I aim accurately).

I have some intuitive idea about what it does, but I want to know what the units are. What's the difference between 1.0 and 100.0?

I'm trying to understand how I can deal with awful hit registration issues in my mod. When I search google for this most of the results are useless..

SamVanheer commented 8 years ago

Looks like it's a scale multiplier for player hitboxes.

ghost commented 8 years ago

Ah, I see. Like in here, right?

So it has nothing to do with time or networking. Just the scale of the hull we trace against on the server.

Why is this locked away in hlds instead of being available to modders? Ugh. This is yet another thing I can only fix for my mod if I use reHLDS instead of the official hlds.

I guess a better question is why the game has (tiny pathetic) hitboxes baked into the player models instead of doing something you can modify years later...

SamVanheer commented 8 years ago

Yeah that looks to be it. You'd be surprised how much stuff is in the engine, locked away never to be used. I found a debug only cvar called sys_timescale that lets you control the game's overall speed, like Source's host_timescale. Then there's VGUI2 support, limited to just Valve's games. It's a pity they don't put some effort into open sourcing it, it could lead to some pretty nice updates coming from the community.

JoelTroch commented 8 years ago

@SamVanheer Assuming Gold Source is structured like Xash3D (client/server/engine/executable), they could release everything except the executable.

SamVanheer commented 8 years ago

It isn't. There's a bunch of Source stuff in there that was backported. Xash is more like the late 90's version of GoldSource.

JoelTroch commented 8 years ago

@SamVanheer : Hmm... I see, thanks for sharing this info