YÉ TÔRD
This commit is contained in:
parent
cb0dad3e31
commit
84249ef84c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user