Skip to content

feat/add-drone-damage-to-players-with-3-seconds-cooldown-in-citizen-of-arcanis #113

@KevinMB0220

Description

@KevinMB0220

➡️ Title

feat/add-drone-damage-to-players-with-3-seconds-cooldown-in-citizen-of-arcanis


📘 Description

Enable the combat drone in Citizen Of Arcanis to deal damage to players it shoots.
The drone should only apply damage once every 3 seconds to avoid continuous or overpowered attacks, creating a balanced combat experience.


✅ Acceptance Criteria

  • The drone must detect and shoot at players within its targeting range.
  • Each successful shot applies damage to the targeted player.
  • Damage application is limited to once every 3 seconds per player:
    • The drone can continue shooting, but only the first shot in that 3-second window inflicts damage.
  • Damage must correctly reduce the player’s health according to the existing damage calculation system.
  • Test to ensure no multiple damage ticks are applied during the cooldown window.

⚠ Technical Notes

  • Implement a cooldown timer for each targeted player (e.g., store lastDamageTime for each player).
  • Ensure the cooldown is per target, not global — the drone can damage different players simultaneously if they are in range.
  • Integrate with existing projectile or hit detection logic to ensure consistency with other weapons.
  • Validate that damage persists correctly across all game modes where drones are active.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions