I want to ask how are made replays for this and other games... in my opinion is easy to store player units moves and every command and then render scene.... but if are weapons in spring with spread which include random trajectory how can it be every time the same?
thx
How are made replays...
Moderator: Moderators
Re: How are made replays...
bad question ... if all the players see the same "weapons in spring with spread which include random trajectory", it means the random generated numbers are the same for everyone ... the replays just store the network trafficMasterZH wrote:I want to ask how are made replays for this and other games... in my opinion is easy to store player units moves and every command and then render scene.... but if are weapons in spring with spread which include random trajectory how can it be every time the same?
thx
Re: How are made replays...
my guess is that the "random" numbers are seeded from the game clock... so they are pseudo-random, and since the clock is a constant for all players, the "random" spread should be identical across the simulation because it was calculated in the exact same way over each instance of simulation