From 84249ef84c7f54eb685a50584f6a6e61cb7fd5a3 Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Wed, 6 Dec 2023 16:42:09 -0500 Subject: [PATCH] =?UTF-8?q?Y=C3=89=20T=C3=94RD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SQCSim-srv/connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;