From a60156bf2ceac2e0bcf877efc4dc6f5a03c80b7d Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Wed, 6 Dec 2023 14:49:36 -0500 Subject: [PATCH] badaboum --- SQCSim-common/bullet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SQCSim-common/bullet.cpp b/SQCSim-common/bullet.cpp index b2731f6..c487fcc 100644 --- a/SQCSim-common/bullet.cpp +++ b/SQCSim-common/bullet.cpp @@ -15,9 +15,12 @@ bool Bullet::Update(World* world, float elapsedtime, int perframe, std::unordere for (auto& [key, player] : mapPlayer) { bool hit = false; - if ((m_currentpos - player->GetPosition()).Length() < .6f) + if ((m_currentpos - player->GetPosition()).Length() < .6f) { + std::cout << "hit" << std::endl; hit = true; + } if ((m_currentpos - player->GetPOV()).Length() < .2f) { + std::cout << "headshot" << std::endl; damage *= 2; // HEADSHOT! hit = true; }