Page 1 of 1
How are made replays...
Posted: 31 Jul 2010, 21:31
by MasterZH
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...
Posted: 31 Jul 2010, 22:11
by Satirik
MasterZH 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
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 traffic
Re: How are made replays...
Posted: 31 Jul 2010, 22:13
by KaiserJ
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