How do multiplayer shooter video games track bullets. In games like Battlefield thousands of “bullets” can be fired in a round. How does the game know who fired what and who hit/killed who?

558 views

How do multiplayer shooter video games track bullets. In games like Battlefield thousands of “bullets” can be fired in a round. How does the game know who fired what and who hit/killed who?

In: Technology

4 Answers

Anonymous 0 Comments

A bullet is an entity, storing the ID of the player who fired it and the direction of the bullet, maybe also what weapon fired it, the speed and the damage depending on the game

It’s programmed to move until it finds another player or the ground and if it hits a player, damage is applied and since it knows who fired it you can do What You need to do.

Another even simpler way that is used is to, when a player presses the trigger, look for all players in a straight line form the muzzle and damage the first one, since it’s instant, there is only one player that can shoot in that instant and you don’t need to store the player who shot it or anything, but this is falling out of use because it’s less accurate

You are viewing 1 out of 4 answers, click here to view all answers.