diff --git a/SQCSim-srv/connection.cpp b/SQCSim-srv/connection.cpp index d1d1a9a..13ada7d 100644 --- a/SQCSim-srv/connection.cpp +++ b/SQCSim-srv/connection.cpp @@ -144,7 +144,7 @@ Timestamp Connection::Run(World* world) { player->Killer = GetHash(true); } - out.states.jumping = player->GetVelocity().y > 0.1f; + out.states.jumping = abs(player->GetVelocity().y) > .2f; out.states.running = player->GetVelocity().Length() > .3f; out.states.still = !out.states.running; out.states.hit = player->m_hit; @@ -171,6 +171,7 @@ Timestamp Connection::Run(World* world) { } else toggle = false; + out.states.jumpshot = false; if (in.keys.shoot && m_shoot_acc <= 0.) { Bullets.emplace_back(new Bullet(player->GetPOV() + player->GetDirection(), player->GetDirection(), GetHash(true))); out.states.shooting = true;