logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Issue #63. Jumping from mid-air when returning from Fly/Ghost mode in a network game (Read 157 times)
Masterkent
Developer Team
Offline



Posts: 1109
Location: Russia
Joined: Apr 5th, 2013
Gender: Male
Issue #63. Jumping from mid-air when returning from Fly/Ghost mode in a network game
Apr 12th, 2018 at 2:38pm
Print Post  
When a player executes "Walk" while using Fly/Ghost mode in a network game, returning to the PlayerWalking state may lead to an involuntary jump. This may be annoying, especially when the player has activated JumpBoots.

Technically this happens due to previous uses of a Jump button. After pressing such a button, client-side value of bPressedJump becomes true. State CheatFlying does not reset this property to false and transfers its value to the server by means of ServerMove. Although Walk resets bPressedJump to false server-side, the server may change bPressedJump to true when processing saved moves. The combination bPressedJump == true && Physics == PHYS_Walking leads to jumping.

Suggested resolution: insert

Code
Select All
bPressedJump = false; 


in the end of functions PlayerPawn.CheatFlying.PlayerMove and PlayerPawn.CheatFlying.BeginState.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo