X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Frandom.qh;h=e3900697b7d1a54b29f30a75e592abe9fc426b01;hb=c3e3dd71484d563af474cb4b9e8624b6093e0b0f;hp=b2fc53f0cac4edaaa3ef964c25b7b6093ac2ae2c;hpb=ac9fba402abf745436adf0ecaa8f90347708ff53;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/random.qh b/qcsrc/lib/random.qh index b2fc53f0c..e3900697b 100644 --- a/qcsrc/lib/random.qh +++ b/qcsrc/lib/random.qh @@ -7,7 +7,9 @@ float RandomSelection_chosen_float; string RandomSelection_chosen_string; vector RandomSelection_chosen_vec; +ERASEABLE void RandomSelection_Init(); +ERASEABLE void RandomSelection_Add(entity e, float f, string s, vector v, float weight, float priority); #define RandomSelection_AddEnt(e, weight, priority) RandomSelection_Add(e, 0, string_null, '0 0 0', weight, priority) #define RandomSelection_AddFloat(f, weight, priority) RandomSelection_Add(NULL, f, string_null, '0 0 0', weight, priority)