]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
physics: fix and refactor unsticking
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 26 Apr 2024 03:05:42 +0000 (13:05 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 26 Apr 2024 11:34:12 +0000 (21:34 +1000)
commita7f7a172b5822c21ac9c7c1805d3d24a427761f4
treefee49f24a5744d73aee698b1ffa2c90c701c30db
parent3848c33ee1e2f6e06afa17984d5f3d3c077fe131
physics: fix and refactor unsticking

Closes https://github.com/DarkPlacesEngine/darkplaces/issues/165

Bugs came from 270f020888c5a03b98cc7752957243e6123c1132 trying to use
NudgeOutOfSolid on Q1BSP which currently isn't possible, combined with
a map bug on alk_caustic, and unsticking unfortunately being an
essential part of Q1BSP player physics.

Adjusts cvar defaults to match Quake behaviour.
Improves documentation.

Merges SV_UnstickEntity() and SV_CheckStuck().

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
dpdefs/dpextensions.qc
server.h
sv_main.c
sv_phys.c