]> icculus.org git repositories - divverent/nexuiz.git/blob - data/menuqc/control/_fx/interpol.qc
Now overtime also gets initiated by equal frags and reaching the fraglimit.
[divverent/nexuiz.git] / data / menuqc / control / _fx / interpol.qc
1 // DP/Nex Menu
2 // control/fx/interpol.qc
3
4 float( float pStart, float pEnd, float pDeltaTime, float pT, float pValue ) FX_LinearInterpolation =
5 {
6         return pValue + ((pEnd - pStart) * Timer_Delta / pDeltaTime);
7 };
8
9 float( float pStart, float pEnd, float pDeltaTime, float pT, float pValue ) FX_SquareInterpolation =
10 {
11         return pEnd - (pEnd - pStart) * (pDeltaTime - pT) * (pDeltaTime - pT) / pDeltaTime / pDeltaTime;
12 };