-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
UnityenhancementNew feature or requestNew feature or requestexternal-contributorsonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source weekonlydust-wave2
Description
➡️ 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
lastDamageTimefor 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
UnityenhancementNew feature or requestNew feature or requestexternal-contributorsonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source weekonlydust-wave2