Shooting: shots are mutliplied by the number of players #51

Closed
opened 2021-08-25 01:34:07 +02:00 by unfa · 1 comment

If you move your aim quickly and shoot, you'll see holes i nthe wall that are exactly the same as the number of current network peers.

If you shoot someone, the damage is multiplied the same way, as the damage() function is effectively called three times - eventhough it's made to only run from the SERVER (PID == 1).

It seems like all instances of a player's avatar are shooting in sync, and each of them tell server to evaluate damage.

If you move your aim quickly and shoot, you'll see holes i nthe wall that are exactly the same as the number of current network peers. If you shoot someone, the damage is multiplied the same way, as the `damage()` function is effectively called three times - eventhough it's made to only run from the SERVER (PID == 1). It seems like all instances of a player's avatar are shooting in sync, and each of them tell server to evaluate damage.
Poster
Owner

Fixed!

Fixed!
unfa closed this issue 2021-08-25 12:04:36 +02:00
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: unfa/liblast#51
There is no content yet.