mirror of
https://github.com/ENSL/NS.git
synced 2024-11-22 12:41:33 +00:00
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:
parent
c6f697161b
commit
198de4b075
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue