Why does the Weapon fire do this?

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Why does the Weapon fire do this?

Postby ScottS » Mon Jun 30, 2008 3:24 pm

why is it that when you strafe and fire in Nexuiz the projectile doesn't come out of the gun but comes from the side instead like it is firing from the players previous position?
Does this have to do with the projectile being spawned from the very center of the players bounding box instead of slightly in front of it or is it something else?
Also are their any plans to fix this? I mean it doesn't ruin my enjoyment of nexuiz but it doesn't look very good either
ScottS
Newbie
 
Posts: 7
Joined: Tue Jun 20, 2006 9:14 am

Postby SavageX » Mon Jun 30, 2008 5:39 pm

The projectile position is the unaltered position where it really spawned on the server. Thanks to the time delay between you pressing the fire button and the server receiving that event it's always a bit behind. The player view is updated on the client without that delay (otherwise people may get sick or feel like scating on ice) while the projectiles are 100% controlled by the server. While not exactly beautiful it gives direct feedback on how laggy your connection is and makes sure all players see projectiles move the same.
SavageX
Site Admin
 
Posts: 442
Joined: Wed Mar 01, 2006 9:34 am

Postby ScottS » Tue Jul 01, 2008 9:52 am

Ahh ok makes sense then.
ScottS
Newbie
 
Posts: 7
Joined: Tue Jun 20, 2006 9:14 am


Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron