6 // An effect always affects its parent
7 // There are two kinds of effects periodic/loop effects and task-effects
8 // The difference is that a task-effect will be finished somewhen and then deactivate/remove itself
9 // while a loop effect will restart
10 // A loop task will have deltaTime2 set
18 // deltaTime2 = -1 for a task effect
19 // deltaTime2 = -2 for a persistent task effect
20 // endTime = -1 for a infinite loop effect
21 .vector time; // <deltaTime1, deltaTime2, endTime>
47 typedef float( float pStart, float pEnd, float pDeltaTime, float pT, float pValue ) InterpolFunction;
49 .InterpolFunction interpolForward;
50 .InterpolFunction interpolBackward;
55 void() Item_Effect_Vector_Reinit;
56 void() Item_Effect_Vector_Update;
57 void() Item_Effect_Vector_Spawn;
59 // Interpolation functions
60 float( float pStart, float pEnd, float pDeltaTime, float pT, float pValue ) FX_LinearInterpolation;
61 float( float pStart, float pEnd, float pDeltaTime, float pT, float pValue ) FX_SquareInterpolation;