Other clients will experience a small delay between when another player shoots and a beam appears. This means the client shooting the weapon will see the laser beam instantly. To solve this issue, every client will create their own laser beams. This would mean the client shooting the weapon would see a delay between when they activate the weapon and when they see the laser beam the weapon would feel laggy as a result. However, there would be a small delay between the client shooting the weapon and the server receiving the information about the shot. If the laser beam was created on the server then everyone would be able to see it. When you shoot the other player, their health will decrease by the number assigned to LASER_DAMAGE.Ĭurrently, the laser beam is created by the client firing the weapon, so only they will be able to see the laser beam. Test the blaster with 2 players by starting a local server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |