o Fixed bug where skulks could not scale walls that were aligned 45 degrees in the x-y plane. It is also easier to walk around corners now.

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@61 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
tankefugl 2005-04-11 02:48:44 +00:00
parent c6f697161b
commit 198de4b075

View file

@ -1438,6 +1438,13 @@ void NS_UpdateWallsticking()
bool wallsticking = false;
// tankefugl: fix to allow skulks to climb walls oriented 45 degrees in the x-y plane
// it also allows for easier climbing around courners
wallsticking |= NS_CheckOffsetFromOrigin(pmove->forward[0], pmove->forward[1], pmove->forward[2], theSurfaceNormal);
if (wallsticking)
VectorScale(theSurfaceNormal, 5, theSurfaceNormal);
// :tankefugl
wallsticking |= NS_CheckOffsetFromOrigin(theMinPoint[0], theMinPoint[1], theMinPoint[2], theSurfaceNormal);
wallsticking |= NS_CheckOffsetFromOrigin(theMinPoint[0], theMaxPoint[1], theMinPoint[2], theSurfaceNormal);
wallsticking |= NS_CheckOffsetFromOrigin(theMaxPoint[0], theMinPoint[1], theMinPoint[2], theSurfaceNormal);