| 2489 | } |
| 2490 | |
| 2491 | void Player::animatePortrait(float dt) { |
| 2492 | m_humanoid->animate(dt); |
| 2493 | if (m_emoteCooldownTimer) { |
| 2494 | m_emoteCooldownTimer -= dt; |
| 2495 | if (m_emoteCooldownTimer <= 0) { |
| 2496 | m_emoteCooldownTimer = 0; |
| 2497 | m_emoteState = HumanoidEmote::Idle; |
| 2498 | } |
| 2499 | } |
| 2500 | m_humanoid->setEmoteState(m_emoteState); |
| 2501 | } |
| 2502 | |
| 2503 | bool Player::isOutside() { |
| 2504 | if (!inWorld()) |
no test coverage detected