This commit is contained in:
@@ -51,11 +51,11 @@ void ServerGame::CheckShoot(game::PlayerID shooter, Vec3f position, float yaw, f
|
||||
|
||||
for (auto& [playerId, player] : GetPlayers()) {
|
||||
if (playerId != shooter && maths::Intersects(shootRay, playerStaticAABB + player.GetPosition())) {
|
||||
DamagePlayer(player, *shooterPlayer);
|
||||
if (!shootLanded) {
|
||||
shootLanded = true;
|
||||
shooterPlayer->GetStats().m_ShootSuccessCount++;
|
||||
}
|
||||
DamagePlayer(player, *shooterPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user