]> git.xonotic.org Git - xonotic/darkplaces.git/commit
tiny behaviour changes to MOVETYPE_WALK (players) that need thorough testing:
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 31 Jul 2009 11:45:28 +0000 (11:45 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 31 Jul 2009 11:45:28 +0000 (11:45 +0000)
commiteefb3cb82ae04982d6193576a93a0d87574834f6
tree1d836bb00ced7da69deb980bbb9f0a5a5db4f31b
parent81e521fb09d47cb4080b356bd77f5ca8bb5a244d
tiny behaviour changes to MOVETYPE_WALK (players) that need thorough testing:

- SV_LinkEntity gets called before calling touch handlers so findradius works in impact-caused touch function calls. However, area grid touching is only performed at the end of the move.
- the onground flag and the groundentity are updated after, not before, calling the touch functions (PLEASE TELL ME if this was a bad change!)
- the correct MOVE_ type is used for the touch (so spectators that have not gotten their MOVETYPE changed cannot cause projectiles to explode)
- a walk-moving SOLID_NOT therefore never causes touch functions to be called
- in case the touch function modifies the origin field, the move is aborted and a teleport is assumed; this should enable mods to make solid teleporters/portals that work at any impact velocity and are not bound by the area grid limitations of not working for big velocities

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9078 d7cf8633-e32d-0410-b094-e92efae38249
sv_phys.c