Skip to content

Gattling cannon barrels rotate despite insufficient energy #1700

@Yossef-moftah-dev

Description

@Yossef-moftah-dev

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour
  • Other (please specify below)

Bug Description

Version: weekly-2025-10-10
Platform: Windows 10
Mods: None

When the Gatling Cannon is ordered to attack while the base lacks power, its barrels rotate as if firing, but no shots are actually fired.


Observed behavior

Barrels rotate despite insufficient energy.
No projectiles are fired and no energy is consumed.


Expected behavior

When out of power, the Gatling Cannon should stay idle or display a clear “no power” indicator.
Animation should only play when firing is possible.


Repro rate

Always (100%).


Notes / possible cause

The attack command triggers the barrel animation before checking the power state. Likely missing a power-check in the animation trigger.


Suggested fix

Gate the firing animation behind the same power check that allows firing — only start rotation when energy is available.

Reproduction Steps

  1. Start a new game as China.
  2. Build a Gatling Cannon.
  3. Ensure the base does not have sufficient energy (reduce power or disconnect/disable power sources).
  4. Order the Gatling Cannon to attack an enemy unit or structure.
2025-10-15.mp4

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working right, typically is user facingMinorSeverity: Minor < Major < Critical < Blocker

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions