View Issue Details

IDProjectCategoryView StatusLast Update
0001037The Dark ModTweakingpublic08.01.2019 18:34
ReporterJdude Assigned ToSTiFU  
PrioritynormalSeveritynormalReproducibilityalways
Status resolvedResolutionfixed 
Product VersionSVN 
Target VersionTDM 2.07Fixed in VersionTDM 2.07 
Summary0001037: Player Mantles Underwater
DescriptionThe player mantles objects while swimming under water. Use jump to float up and you will notice the player mantles.
Additional InformationAlso here:
http://forums.thedarkmod.com/?showtopic=8130
TagsNo tags attached.

Activities

nbohr1more

nbohr1more

08.10.2017 22:05

developer   ~0009426

Last edited: 09.10.2017 02:34

Proposed fix:

    GetCurrentMantlingReachDistances
    (
        maxVerticalReachDistance,
        maxHorizontalReachDistance,
        maxMantleTraceDistance
);

if ( waterLevel > WATERLEVEL_HEAD + maxVerticalReachDistance + 1 )
    {
        return;
}

nbohr1more

nbohr1more

08.10.2017 22:52

developer   ~0009427

Last edited: 09.10.2017 02:32

Hmm

MoveUpEnd.x += -gravityNormal.x * in_mantleEndPoint.x;
MoveUpEnd.y += -gravityNormal.y * in_mantleEndPoint.y;
MoveUpEnd.z += -gravityNormal.z * in_mantleEndPoint.z;


if ( waterLevel > MoveUpEnd.y + 1 )
{
return false;
}

nbohr1more

nbohr1more

09.10.2017 16:19

developer   ~0009433

Last edited: 09.10.2017 17:50

Thus far none of my attempts, even simple "waterLevel > WATERLEVEL_HEAD" checks are stopping the mantle.

I'll try a few more times then defer to someone better at this...

STiFU

STiFU

28.12.2018 16:58

developer   ~0011164

I don't know what your problem was, but your proposed solution works perfectly.
I have added a simple
if (waterLevel >= WATERLEVEL_HEAD)
{ return; }
and it works as expected. As long as your head is below the water surface you cannot mantle. Probably there was some other bug back then, causing waterlevel to be incorrect or something like that.

Issue History

Date Modified Username Field Change
21.08.2008 20:38 Jdude New Issue
08.10.2017 21:55 nbohr1more Additional Information Updated
08.10.2017 22:05 nbohr1more Note Added: 0009426
08.10.2017 22:05 nbohr1more Assigned To => nbohr1more
08.10.2017 22:05 nbohr1more Status new => assigned
08.10.2017 22:10 nbohr1more Note Edited: 0009426
08.10.2017 22:33 nbohr1more Note Edited: 0009426
08.10.2017 22:34 nbohr1more Note Edited: 0009426
08.10.2017 22:52 nbohr1more Note Added: 0009427
09.10.2017 02:32 nbohr1more Note Edited: 0009427
09.10.2017 02:34 nbohr1more Note Edited: 0009426
09.10.2017 16:19 nbohr1more Note Added: 0009433
09.10.2017 17:50 nbohr1more Note Edited: 0009433
28.12.2018 16:49 STiFU Assigned To nbohr1more => STiFU
28.12.2018 16:58 STiFU Note Added: 0011164
28.12.2018 16:58 STiFU Status assigned => resolved
28.12.2018 16:58 STiFU Resolution open => fixed
29.12.2018 09:57 STiFU Fixed in Version => TDM 2.08
08.01.2019 18:34 nbohr1more Fixed in Version TDM 2.08 => TDM 2.07
08.01.2019 18:34 nbohr1more Target Version => TDM 2.07