rjtngit/unet-steamworks

SyncVars run multiple times

Opened this issue · 1 comments

From Jman's comment on the blog post:

I've got a really weird bug after switching to this system but it's not awful, it is technically gamebreaking but I can work around it.

Basically all SyncVars run multiple times, which means SyncVar hooks run multiple times, I was using these for toggling an ability on/off and it would add/remove some attack speed depending on the ability state. After switching to this it was removing the attack speed 5x causing the player to get slower and slower as they used it.

The call stack showed the SyncVar hook being run locally as I was hosting but then it showed it changing again from UNetStaticUpdate and running multiple times.

Anyways I just moved all my hooks to Rpc and it's fine now but yeah none of them worked after swapping to SteamP2P for whatever reason.