#Knockback lag: Attacker seeing delay, but Victim sees perfectly smooth, instant knockback

1 messages · Page 1 of 1 (latest)

arctic widget
#

The Problem: I am building a minecraft-like combat system, and knockback is giving me trouble as it is laggy and a bit choppy, and when I hit an enemy, there is a slight delay (the enemy's arms move as if they are being knocked) before being knocked back

From the Victim's perspective: The movement is instant and smooth

From the Attacker's perspective: There is a noticeable ~150ms delay between the hit connecting and the enemy actually flying back

This makes the game feel floaty and unresponsive for the person doing the attacking

This is also apparently a very wide-spread issue from the countless reddit posts and devforum posts i've scoured through

I've read up and looked at SetNetworkOwner(). People have said setting the network owner of the enemy to the attacker fixes this, however i have played with this and that causes artifacts, let alone security risks

I am wondering if rollback netcode is needed, however I wont delve into that unless as a last resort

thank you fellas, I am going to bed, it is 3 in the morning :(

dark flicker
#

sorry if this is a bit late but its prob just ping