diff --git a/source/server/utilities/math.qc b/source/server/utilities/math.qc index 6315e18..204e9a1 100644 --- a/source/server/utilities/math.qc +++ b/source/server/utilities/math.qc @@ -76,6 +76,18 @@ float(float x) sign = { return 0; }; +float exp(float x) { + float result = 1; + float term = 1; + + for (float i = 1; i < 50; i++) { + term *= x / i; + result += term; + } + + return result; +} + /* * wrap *