engine-c: bigger impact/explosion blooms
This commit is contained in:
parent
d1da64d84b
commit
6ac07fe3a6
5 changed files with 67 additions and 48 deletions
|
|
@ -92,13 +92,15 @@ void unit_apply_damage(Game *g, Unit *u, float dmg) {
|
|||
if (u->hp <= 0 && !u->dead) {
|
||||
u->dead = 1;
|
||||
u->state = STATE_DEAD;
|
||||
/* denser KKND2-like death: fire core + debris ring + smoke + scorch */
|
||||
particle_burst(g, u->x, u->y, 22, 1, 255, 140, 40);
|
||||
particle_burst(g, u->x, u->y, 14, 3, 90, 80, 70);
|
||||
particle_burst(g, u->x + 6, u->y - 4, 10, 0, 110, 100, 90);
|
||||
particle_burst(g, u->x - 5, u->y + 5, 8, 2, 255, 220, 90);
|
||||
particle_burst(g, u->x + 3, u->y + 7, 8, 1, 60, 50, 45); /* scorch soot */
|
||||
particle_burst(g, u->x - 4, u->y - 6, 6, 0, 70, 55, 40);
|
||||
/* bigger KKND2 death bloom: fire core + debris ring + smoke + scorch */
|
||||
particle_burst(g, u->x, u->y, 32, 1, 255, 140, 40);
|
||||
particle_burst(g, u->x, u->y, 20, 3, 90, 80, 70);
|
||||
particle_burst(g, u->x + 8, u->y - 6, 16, 0, 110, 100, 90);
|
||||
particle_burst(g, u->x - 7, u->y + 6, 14, 2, 255, 220, 90);
|
||||
particle_burst(g, u->x + 4, u->y + 9, 12, 1, 60, 50, 45); /* scorch soot */
|
||||
particle_burst(g, u->x - 5, u->y - 8, 10, 0, 70, 55, 40);
|
||||
particle_burst(g, u->x + 10, u->y + 2, 10, 1, 255, 100, 30);
|
||||
particle_burst(g, u->x - 9, u->y - 3, 8, 3, 255, 160, 50);
|
||||
audio_sfx(2);
|
||||
if (g->cam.shake < 7) g->cam.shake = 7;
|
||||
if (u->faction == g->human)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue