SQC-15_online #1

Merged
memartel_loc merged 349 commits from SQC-15_online into master 2023-12-10 17:41:26 -05:00
Showing only changes of commit 11458214d0 - Show all commits

View File

@ -171,12 +171,14 @@ Timestamp Connection::Run(World* world) {
}
else toggle = false;
out.states.jumpshot = false;
out.states.shooting = in.keys.shoot;
if (out.states.jumping && out.states.shooting)
out.states.jumpshot = true;
else 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;
if (out.states.jumping)
out.states.jumpshot = true;
m_shoot_acc = BULLET_TIME;
}