Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Difference between revisions of "DP QC RANDOMVEC"
From Quake Wiki
(New page: Builtin definitions: <pre> vector() randomvec = #91; </pre> Returns a vector of length < 1, much quicker version of this QC: do {v_x = random()*2-1;v_y = random()*2-1;v_z = random()*2-1;}...) |
|||
Line 5: | Line 5: | ||
Returns a vector of length < 1, much quicker version of this QC: do {v_x = random()*2-1;v_y = random()*2-1;v_z = random()*2-1;} while(vlen(v) > 1) | Returns a vector of length < 1, much quicker version of this QC: do {v_x = random()*2-1;v_y = random()*2-1;v_z = random()*2-1;} while(vlen(v) > 1) | ||
+ | [[Category:DarkPlaces]] |
Latest revision as of 02:16, 25 March 2013
Builtin definitions:
vector() randomvec = #91;
Returns a vector of length < 1, much quicker version of this QC: do {v_x = random()*2-1;v_y = random()*2-1;v_z = random()*2-1;} while(vlen(v) > 1)