👌
This commit is contained in:
@@ -26,6 +26,7 @@ bool Bullet::Update(World* world, float elapsedtime, int perframe, std::unordere
|
||||
}
|
||||
if (hit && !player->AmIDead()) {
|
||||
player->InflictDamage(damage);
|
||||
player->m_hit = true;
|
||||
|
||||
if (player->AmIDead())
|
||||
player->Killer = m_shooter_id;
|
||||
|
@@ -41,6 +41,7 @@ public:
|
||||
void addPoint();
|
||||
uint64_t Killer = 0;
|
||||
std::string m_username;
|
||||
bool m_hit = false;
|
||||
|
||||
private:
|
||||
uint64_t getId() const;
|
||||
|
Reference in New Issue
Block a user