YÉ TÔRD

This commit is contained in:
MarcEricMartel 2023-12-06 16:42:09 -05:00
parent cb0dad3e31
commit 84249ef84c

View File

@ -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;