MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / animatePortrait

Method animatePortrait

source/game/StarPlayer.cpp:2491–2501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2489}
2490
2491void 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
2503bool Player::isOutside() {
2504 if (!inWorld())

Callers 1

tickMethod · 0.80

Calls 2

animateMethod · 0.80
setEmoteStateMethod · 0.80

Tested by

no test coverage detected