| 19 | #define SET_VALUE(def, target, factor) (def + (target - def) * factor) |
| 20 | |
| 21 | BOOL CPPEffectorCustom::Process(SPPInfo& pp) |
| 22 | { |
| 23 | if (!inherited::Process(pp)) |
| 24 | return FALSE; |
| 25 | |
| 26 | // update factor |
| 27 | if (!update()) |
| 28 | return FALSE; |
| 29 | |
| 30 | pp.lerp(pp_identity, m_state, m_factor); |
| 31 | |
| 32 | return TRUE; |
| 33 | } |
| 34 | |
| 35 | ////////////////////////////////////////////////////////////////////////// |
| 36 |