Flavio Manna Posted April 25, 2020 Hi, i discovered a little while ago the Doom RNG thanks to this video where it says that zombiemans and imps use the RNG to determinate wich alert sound to use, how does this work? I mean, there are 255 numbers in the random table, based to what they chose a sound or another? 0 Share this post Link to post
Kut Posted April 25, 2020 Whenever something needs a random number, it's picked from the table in the same order, then the number is changed as needed. This is why demos work on Doom and don't break. This is also why you should choose PrBoom+ over GZDoom that screws up the RNG and detracts from vanilla experience. 0 Share this post Link to post
Flavio Manna Posted April 25, 2020 21 minutes ago, Kut said: Whenever something needs a random number, it's picked from the table in the same order, then the number is changed as needed. This is why demos work on Doom and don't break. This is also why you should choose PrBoom+ over GZDoom that screws up the RNG and detracts from vanilla experience. I think i got it, for example if i need a number between 1 and 8 i just pick the number from the random table and do random_number % 8, and then increment the index by 1. 0 Share this post Link to post
andrewj Posted April 25, 2020 I can't tell if the thread title is deliberate or not, but I dig it :) 3 Share this post Link to post