MantisBT - Zandronum
View Issue Details
0000024Zandronum[All Projects] Bugpublic2010-09-13 03:102018-09-30 19:48
unknownna 
Torr Samaho 
lowtweakN/A
closedfixed 
MicrosoftWindowsXP/Vista/7
98c 
98d 
0000024: client-side prediction of the viewpoint when transitioning from standing to crouching and vice versa
Right now, the viewpoint transitions instantly from standing level to crouching level if you play with a ping of around 100ms+. And it also has some shakiness to it if you're running around while doing it. The higher your ping is, the more shaky your viewpoint will be.
 
From a practical in-game POV perspective, this can actually be quite disorienting when you're aiming while constantly ducking and running.

Imagine not having jumping interpolated/predicted. They're probably not related to each other in terms of code and behavior, but they definitely are in terms of gameplay.
No tags attached.
Issue History
2010-09-13 03:10unknownnaNew Issue
2010-09-13 06:24unknownnaNote Added: 0000052
2010-09-13 08:04unknownnaNote Edited: 0000052bug_revision_view_page.php?bugnote_id=52#r27
2010-09-13 18:10unknownnaDescription Updatedbug_revision_view_page.php?rev_id=29#r29
2010-09-14 19:56Torr SamahoNote Added: 0000058
2010-09-14 19:56Torr SamahoStatusnew => acknowledged
2010-09-19 12:49Torr SamahoStatusacknowledged => confirmed
2010-09-19 12:49Torr SamahoCategorySuggestion => Bugs
2010-09-19 12:51Torr SamahoNote Added: 0000088
2010-09-19 13:11Torr SamahoNote Added: 0000089
2010-09-19 13:11Torr SamahoAssigned To => Torr Samaho
2010-09-19 13:11Torr SamahoStatusconfirmed => feedback
2010-09-19 14:38unknownnaNote Added: 0000093
2010-09-19 14:38unknownnaStatusfeedback => assigned
2010-09-19 19:24Torr SamahoNote Added: 0000099
2010-09-19 19:24Torr SamahoStatusassigned => feedback
2010-09-19 20:15unknownnaNote Added: 0000100
2010-09-19 20:15unknownnaStatusfeedback => assigned
2010-09-19 20:28unknownnaNote Edited: 0000100bug_revision_view_page.php?bugnote_id=100#r54
2010-09-19 21:03Torr SamahoNote Added: 0000101
2010-09-19 21:03Torr SamahoStatusassigned => resolved
2010-09-19 21:03Torr SamahoFixed in Version => 98d
2010-09-19 21:03Torr SamahoResolutionopen => fixed
2010-09-19 21:03Torr SamahoNote Edited: 0000101bug_revision_view_page.php?bugnote_id=101#r56
2012-06-09 13:22Torr SamahoCategoryGeneral => Bug
2018-09-30 19:48Blzut3Statusresolved => closed

Notes
(0000052)
unknownna   
2010-09-13 06:24   
(edited on: 2010-09-13 08:04)
While we're at it, it'd be very nice to have client-side prediction for action special 128: 'ThrustThingZ', as well. Jump-pads inside a room in D2DM2 and Arch-Vile attacks comes to mind.

With a ping of 300ms+, you don't visually see any thrusting at all, just lots of disorienting earthquake-like shaking.

Requested here:'http://www.skulltag.com/forum/viewtopic.php?f=33&t=14961 [^]'

Edit:

'http://www.sendspace.com/file/mqkoa2 [^]' - A demo demonstrating how it currently is.

(0000058)
Torr Samaho   
2010-09-14 19:56   
Sounds like a reasonable request to me.
(0000088)
Torr Samaho   
2010-09-19 12:51   
I looked into this and found out that it's a bug and not a missing feature: Crouching is predicted (you begin to crouch immediately after pressing the crouch key regardless of your ping), but the client reduces the view height too quickly.
(0000089)
Torr Samaho   
2010-09-19 13:11   
I fixed some problems of the crouch prediction. Please test how well it works now:'http://www.dailydoomer.com/tsst/misc/SkullDev98dCrouchPredictionFixTest.7z [^]'
(0000093)
unknownna   
2010-09-19 14:38   
Yes, it works now. The viewpoint transitions smoothly from standing height to crouching height and vice versa.

But the movement, not the view, still seems to shake/lag when you crouch down or stand up from crouching while running compared to jumping at the same ping (300ms+). The movement while jumping is always smooth regardless of the ping.

Tapping the crouch button with an emulated ping of 500ms will definitely have you notice it.
(0000099)
Torr Samaho   
2010-09-19 19:24   
Alright, took me most of the afternoon to figure out, but hopefully the crouch prediction works pretty well now. Please test:'http://www.dailydoomer.com/tsst/misc/SkullDev98d-2933windows.7z [^]'
(0000100)
unknownna   
2010-09-19 20:15   
(edited on: 2010-09-19 20:28)
Very nice. Even with a ping of 600ms it now feels local. Good job on this one, Torr.

But, as usual I noticed another thing, but it's not related to this since it happens in 98c as well. The higher your ping is, the more your viewpoint will "sink down" to the floor when you jump and land from a higher floor to a lower one. There has to be at least 16 map units+ difference between the two floors to get the effect.

(0000101)
Torr Samaho   
2010-09-19 21:03   
Yeah, now that you mention it, I can confirm this floor sinking. Since this is a completely separate issue, it deserves a new report. Can you do me a favor and create one?