diff options
Diffstat (limited to 'src/entities/antifaShip.c')
-rw-r--r-- | src/entities/antifaShip.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/entities/antifaShip.c b/src/entities/antifaShip.c index b90060e..1ba8db9 100644 --- a/src/entities/antifaShip.c +++ b/src/entities/antifaShip.c @@ -152,17 +152,16 @@ void fireBulletAntifa(Game * game, Entity * entity) { if (t - data->timeSinceLastBullet < ANTIFA_BULLET_COOLDOWN) return; - puts("shoot shoot"); - - Bullet bullet = createBulletFromDirection(*entity, data->gunTarget, 1.0); + Bullet bullet = createBulletFromDirection(*entity, data->gunTarget, ANTIFA_BULLET_DAMAGE); BulletHitInfo info = shootBullet(&game->world, bullet); data->lastBulletShot = bullet; if (info.hit) { Entity * hitEntity = getEntityFromWorld(game->world, info.hitId); - printVector3(hitEntity->position); - } else { - puts("you stink"); + + // We were the fucker that killed this low iq fascist! + if (hitEntity->health <= 0.0) + hitEntity->killedByPlayer = true; } data->timeSinceLastBullet = t; |