Opened 11 years ago

Last modified 5 years ago

#1909 closed task

Projectile hit animation — at Version 3

Reported by: Pureon Owned by:
Priority: Nice to Have Milestone: Alpha 23
Component: UI & Simulation Keywords:
Cc: Patch:

Description (last modified by fatherbushido)

When a projectile hits the target a particle animation is played. The particle should be assigned in the unit's actor file (alongside 'loaded-projectile' and 'projectile').

Case: Rock thrower hits ground creating dust and debris.

See the already implemented 'attack_impact' soundgroup which will be played alongside this particle animation.

Change History (3)

comment:1 by Kareem Ergawy, 11 years ago

I wanted to ask for some clarifications regarding this issue

I know that we should add a new element to actor file which have loaded-projectile and projectile properties

the element can look like: <prop actor="some/path" attachpoint="particle"/> my questions are:

1 - how do we represent particles in 0a.d.? using actors or what?

2 - after assigning the particle that should be played along with the projectile, should I add the code that plays the particle in CUnitAnimation::Update() just like we do with sound groups?

comment:2 by Stan, 9 years ago

Keywords: Simple removed

comment:3 by fatherbushido, 7 years ago

Description: modified (diff)

(just to subscribe)

Note: See TracTickets for help on using tickets.