This commit is contained in:
MarcEricMartel
2023-12-07 15:14:16 -05:00
parent 8bfee4a9ff
commit 486c823da1
2 changed files with 13 additions and 5 deletions

View File

@@ -16,11 +16,9 @@ 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) {
std::cout << "hit" << std::endl;
hit = true;
}
if ((m_currentpos - player->GetPOV()).Length() < .2f) {
std::cout << "headshot" << std::endl;
damage *= 2; // HEADSHOT!
hit = true;
}