Changes between Initial Version and Version 5 of Ticket #3610
- Timestamp:
- Jan 5, 2016, 6:19:27 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3610
- Property Keywords simple added; projectile system component removed
- Property Summary Moving missilehit from the shooter component to a system component → Projectiles do not cause any damage if the shooter dies
-
Ticket #3610 – Description
initial v5 1 1 Currently, projectile Damage depends on the shooter being alive. 2 2 3 We want to extend the projectile damage to cause continuous damage overtime ( [http://trac.wildfiregames.com/ticket/1912 ticket1912]) 3 This should not be the case and to achieve that some of the related logic should be moved from `simulation/components/Attack.js` to `cmpDamage` (in the same directory, which would be a system component created from `simulation/helpers/Damage.js`) 4 4 5 The continuous damage has to occur even after the death of a shooter and hence the need to move the missilehit component from the shooter component to a system component 5 `cmpDamage` should keep information about who fired (player/entity) and when the damage should be applied. Most of this information is already stored in the current `Damage` helper object. 6 7 `cmpDamage` then uses a delay (see `cmpTimer` and the current usage of it in `cmpAttack`) to cause this damage. 8 9 10 Note that this ticket enables doing #1912 and #1911 (and possibly #1910) without any huge changes.