[Add] Rumble the screen a little if you take armour damage.

This commit is contained in:
Allanis 2013-05-23 00:01:57 +01:00
parent 22d7a5d47a
commit b5ec83322e
2 changed files with 4 additions and 1 deletions

1
TODO
View File

@ -20,7 +20,6 @@ Major:
-- Missile smoke.
-- Engine glow -> need models.
-- More special effects.
-- Have some kind of screen shaking for afterburner and friends.
-- Cloaking effects?
-- Maybe some fancy displacement effects for some ships.
-- More outfits.

View File

@ -254,6 +254,10 @@ void pilot_hit(Pilot* p, const Solid* w, const unsigned int shooter,
else if(p->armour-damage_armour > 0.) {
p->armour -= damage_armour;
dam_mod = damage_armour/p->armour_max;
// Shake us up a bit.
if(p->id == PLAYER_ID)
spfx_shake(dam_mod*100.);
}
else {
// We are officially dead.