Tomash667 / carpg

Combination of action rpg with roguelike.
https://carpg.pl
MIT License
16 stars 15 forks source link

MP Client looses collider (partial ghostification) and has broken animations from other's perspective after getting drunked #427

Closed BottledByte closed 4 years ago

BottledByte commented 4 years ago

Custom build, last commit: ccf35716f00065f686494d5121ea63ce2e266b5f I was not able to replicate this in version 0.13.

@Lemiczek helped with this

Lots of weird behaviour happens when drinking a passing away due to alchohol and standing back up in MP as Client.

Character looses its collider from Unit's perspective, while character is still affected by other Unit physics on his side. (Client can not pass through other players/NPCs/monsters, while they can walk through the character freely). Character is unable to shoot arrows, damage others in any way or cast spells on other Units. The animation can be seen on client side and respective player statistics changed (stamina, mana), but it has no effect (arrow is not shot, heal ability does not create sparks). Other units can damage the client character freely.

Character animation / visual state seen at client does not matches to that observed at server. Items such as Spirit, ladle or arrow remained in character's hand. When server saved and reload the game, client was able to observe the state in which server saw it at save time. All these things can happen to client only.

Steps to reproduce: 1) Play in MP as a client 2) Get some amount of Spirit or other alchohol 3) Drink until passing away 4) Stand back up 5) Observe above-mentioned behaviour

This bug allowed us to take following screenshots: Siameese twins and Laddle shot unknown

Spirit Shot unknown1

Spirit-enhanced club unknown2

Tomash667 commented 4 years ago

Fixed, thanks!

If you want unit to fall on ground you can use "fall" command, it will be a little faster than drinking spirit :)