HelicopterRevival


Adds a fully animated attack helicopter to the game. Ideal for getting from A to B quickly, exploring the map, building islands and nuking biters from the sky. Originally forked from Kumpu with fixes for Factorio 0.18.2+, but adding some enhancements of my own as well.

Content
a month ago
0.18 - 2.0
80.2K
Transportation

b Biters damage the helicopter in flight

1 year, 10 months ago

Good afternoon! I found that biters can damage your helicopters in flight. Which is very unrealistic

Could you make the helicopter in-flight invulnerable to biters, and leave only vulnerable to worms and spitters?

Thank you!

1 year, 10 months ago

I'll second this but as a configurable option, the chopper is OP enough and I do like dancing with the biters.

9 months ago

Created a pull-request: https://github.com/wolfhowlmedia/factorio-helicopters/pull/13

This change adds these configurable options:

Disable damage from biters (in flight) - default: on
Disable damage from acid puddles (in flight) - default: on
Disable damage from spitter projectiles (in flight) - default: off

Let's wait for mod author to integrate the change

8 months ago

Looking into it. I have a few other changes pending.

And I swear that some of the stuff that shouldn't land in "spam" does... :|

3 months ago

It seems in the latest version the options added aren't affecting anything.
I still get damaged by biters and acid pools when flying.

3 months ago
(updated 3 months ago)

It seems in the latest version the options added aren't affecting anything.
I still get damaged by biters and acid pools when flying.

Hm.
From the looks of it, you CAN be damaged, but you should be healed instantly afterwards.

if damage_type == "acid" then
  -- attacked by a spitter direct projectile (the spitter is already destroyed)
  if settings.global["heli-disable-direct-spitter-damage"].value then
    cancelDamage = true
  end
else
  ...

--

if cancelDamage then
  -- restore health
  if self.baseEnt and self.baseEnt.valid then
    self.baseEnt.health = self.baseEnt.health + damage_amount
  end
else
  ...
21 days ago

And where should I add these lines so that biting and puddles of acid do not cause damage?

New response