MantisBT - Zandronum
View Issue Details
0001170Zandronum[All Projects] Bugpublic2012-11-05 17:442014-06-08 13:20
one_Two 
Torr Samaho 
normaltrivialalways
assignedopen 
MicrosoftWindowsXP/Vista/7
1.0 
 
0001170: Incorrect move_bob value showen in spy mode.
When you spy/f12 another player in a multiplayer game there weapon always seems to show the same move_bob amount, and not the correct one they have. Not 100% sure if this is a bug as I know some HUD things like the cross hair show what you have rather than the opponent, though this doesn't replicate your move_bob either.
Spy/f12 on any player, tried in a lot of game modes and asked people what move_bob value they have, not sure if it effects still_bob as well.
I have only tried on Windows 7 64 bit, and can only evidence this by people telling me they have a move_bob of 0 and it happens.
No tags attached.
Issue History
2012-11-05 17:44one_TwoNew Issue
2013-08-25 17:34Torr SamahoNote Added: 0007064
2013-08-25 17:37Konar6Note Added: 0007065
2013-09-17 19:08WatermelonNote Added: 0007203
2013-09-18 16:54WatermelonAssigned To => Watermelon
2013-09-18 16:54WatermelonStatusnew => confirmed
2013-09-18 17:39Edward-sanNote Added: 0007224
2014-05-05 22:29WatermelonNote Added: 0008707
2014-05-06 06:32Torr SamahoNote Added: 0008719
2014-05-07 17:27WatermelonStatusconfirmed => assigned
2014-05-07 19:14WatermelonNote Added: 0008734
2014-05-07 19:14WatermelonStatusassigned => needs review
2014-05-08 00:51Konar6Note Added: 0008736
2014-06-01 15:28Torr SamahoNote Added: 0008830
2014-06-01 15:28Torr SamahoNote Edited: 0008830bug_revision_view_page.php?bugnote_id=8830#r4781
2014-06-01 15:29Torr SamahoNote Revision Dropped: 8830: 0004780
2014-06-01 15:29Torr SamahoStatusneeds review => feedback
2014-06-01 15:54DuskNote Added: 0008831
2014-06-01 17:09WatermelonNote Added: 0008833
2014-06-07 18:10WatermelonAssigned ToWatermelon =>
2014-06-07 18:11WatermelonNote Added: 0008875
2014-06-07 18:11WatermelonAssigned To => Watermelon
2014-06-07 18:11WatermelonStatusfeedback => needs review
2014-06-07 18:11WatermelonAssigned ToWatermelon =>
2014-06-07 18:37WatermelonAssigned To => Torr Samaho
2014-06-07 18:37WatermelonStatusneeds review => assigned
2014-06-08 13:20Torr SamahoNote Added: 0008915

Notes
(0007064)
Torr Samaho   
2013-08-25 17:34   
That's because the clients don't report their movebob value to the server (and the server then of course can't pass the movebob values to the other clients).
(0007065)
Konar6   
2013-08-25 17:37   
It should probably replicate own movebob setting, as with the crosshair etc.
I know people who turn off movebob because their head hurts from it. I used to do it as well.
(0007203)
Watermelon   
2013-09-17 19:08   
Movebob that's non zero gives me nausea... I have to avoid spectating people if I'm not feeling well because of it. If it could do what Konar said that'd be very nice. If I get some other tickets out of the way I will probably try to fix this.
(0007224)
Edward-san   
2013-09-18 17:39   
yeah, the client should be able to calculate his own movebob with the actual player data from the server.
(0008707)
Watermelon   
2014-05-05 22:29   
Any issues with making it use the clients value?
(0008719)
Torr Samaho   
2014-05-06 06:32   
Using the client's move_bob instead of the default move_bob for spied players sounds fine to me.
(0008734)
Watermelon   
2014-05-07 19:14   
This works for me:
'https://bitbucket.org/ChrisKOmg/zandronum/commits/ee1b461197b4afb627d62f1d788eb3ce1f3cd7ca [^]'
(0008736)
Konar6   
2014-05-08 00:51   
Does it need a cvar?
(0008830)
Torr Samaho   
2014-06-01 15:28   
Quote from Watermelon
https://bitbucket.org/ChrisKOmg/zandronum/commits/ee1b461197b4afb627d62f1d788eb3ce1f3cd7ca

This looks too complicated to me. If you want to override a player's MoveBob value with the one of the console player, shouldn't it be sufficient to simply do so in the only line in the code that uses userinfo.MoveBob for something, i.e.

                player->bob = FixedMul (player->bob, player->userinfo.MoveBob);

in p_user.cpp?

(0008831)
Dusk   
2014-06-01 15:54   
I'm thinking that this shouldn't need a cvar. While using the player's actual movebob would be most accurate and I'd dare a guess that is what ZDoom does as well, but using local movebob would certainly be an improvement over just using default movebob.
(0008833)
Watermelon   
2014-06-01 17:09   
I'm fine with that. One line fixes are better than a ton IMO. I figure most people just want their own movebob most likely anyways.
(0008875)
Watermelon   
2014-06-07 18:11   
Changed to 'needs review' because if Torr's line solves it, then might as well just add that and be done with this ticket.
(0008915)
Torr Samaho   
2014-06-08 13:20   
I just highlighted the line that needs to be changed, not what it needs to be changed to. You'll have to add a cvar so that either player->userinfo.MoveBob is used or the corresponding value of the console player.