Opened 11 years ago

Closed 5 years ago

Last modified 5 years ago

#1909 closed task (fixed)

Projectile hit animation

Reported by: Pureon Owned by: Mate-86
Priority: Nice to Have Milestone: Alpha 23
Component: UI & Simulation Keywords:
Cc: Patch: ​​Phab:D945

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 (10)

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)

comment:5 by Mate-86, 6 years ago

Owner: set to Mate-86
Status: newassigned

comment:6 by Stan, 6 years ago

Patch: ​​Phab:D945

comment:7 by elexis, 6 years ago

Thanks for the patch Mate-86, the feature sounds very promising!

If there is further work planned on it, it should be posted either here or in a new ticket. In the former case, this ticket can be closed and set to alpha 23.

Perhaps we could use the animation for catapult shots too?

comment:8 by Imarok, 6 years ago

In r20676:

Let the template define the actor used for the projectile. Also let projectiles have an impact animation (such as an explosion).

This will enable us in the future to have technologies that change projectiles. This is also somewhat of a refactoring.

Patch By: Mate-86

Reviewed By: wraitii

Trac Tickets: #1909

Differential Revision: https://code.wildfiregames.com/D945

comment:9 by Mate-86, 5 years ago

Resolution: fixed
Status: assignedclosed

Resolving as fixed.

comment:10 by Stan, 5 years ago

Milestone: BacklogAlpha 23
Note: See TracTickets for help on using tickets.