Merge pull request #9086 from Sishen1542/DYNAMIC-ENTRY

Ports dynamic gamemode from /vg/ + also normalizes head/antag restrictions
This commit is contained in:
BlackMajor
2019-09-12 18:37:56 +12:00
committed by GitHub
19 changed files with 2706 additions and 7 deletions
+6
View File
@@ -201,4 +201,10 @@
return list(region_x1 & region_x2, region_y1 & region_y2)
#define EXP_DISTRIBUTION(desired_mean) ( -(1/(1/desired_mean)) * log(rand(1, 1000) * 0.001) )
#define LORENTZ_DISTRIBUTION(x, s) ( s*TAN(TODEGREES(PI*(rand()-0.5))) + x )
#define LORENTZ_CUMULATIVE_DISTRIBUTION(x, y, s) ( (1/PI)*TORADIANS(arctan((x-y)/s)) + 1/2 )
#define RULE_OF_THREE(a, b, x) ((a*x)/b)
// )