[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vr/ - Retro Games

Search:


View post   

>> No.10295218 [View]
File: 12 KB, 458x274, file.png [View same] [iqdb] [saucenao] [google]
10295218

this is from the quake3 source code.
these functions seem to turn a seed that is a random number from 0-255 into a number from -1 to 1. this number is then used to calculate the spread on each pellet of the shotgun.
thing i don't get is, the seed is calculated before it enters the for loop that calculates each pellet's trajectory. So all pallets should hit the same place since they all have the same seed. am I missing something here? what exactly are these 3 functions supposed to be doing?

Navigation
View posts[+24][+48][+96]