| 2228 | } |
| 2229 | |
| 2230 | void Player::advanceTime(F32 dt) |
| 2231 | { |
| 2232 | // Client side animations |
| 2233 | Parent::advanceTime(dt); |
| 2234 | // Increment timer for triggering idle events. |
| 2235 | if (idle_timer >= 0.0f) |
| 2236 | idle_timer += dt; |
| 2237 | updateActionThread(); |
| 2238 | updateAnimation(dt); |
| 2239 | updateSplash(); |
| 2240 | updateFroth(dt); |
| 2241 | updateWaterSounds(dt); |
| 2242 | |
| 2243 | mLastPos = getPosition(); |
| 2244 | |
| 2245 | if (mImpactSound) |
| 2246 | playImpactSound(); |
| 2247 | |
| 2248 | // update camera effects. Definitely need to find better place for this - bramage |
| 2249 | if( isControlObject() ) |
| 2250 | { |
| 2251 | if( mDamageState == Disabled || mDamageState == Destroyed ) |
| 2252 | { |
| 2253 | // clear out all camera effects being applied to player if dead |
| 2254 | gCamFXMgr.clear(); |
| 2255 | } |
| 2256 | } |
| 2257 | } |
| 2258 | |
| 2259 | bool Player::getAIMove(Move* move) |
| 2260 | { |
no test coverage detected