[Change] Nerfed the knockback effect.
This commit is contained in:
parent
be7a2b7791
commit
18bb84eafb
@ -211,9 +211,11 @@ void pilot_hit(Pilot* p, const Solid* w, const unsigned int shooter,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Knock back effect is dependent on both damage and mass of the weapon.
|
||||||
|
// should probably turn it into a partial conservative collision..
|
||||||
vect_cadd(&p->solid->vel,
|
vect_cadd(&p->solid->vel,
|
||||||
w->vel.x * (dam_mod/4. + w->mass/p->solid->mass/4.),
|
w->vel.x * (dam_mod/6. + w->mass/p->solid->mass/6.),
|
||||||
w->vel.y * (dam_mod/4. + w->mass/p->solid->mass/4.));
|
w->vel.y * (dam_mod/6. + w->mass/p->solid->mass/6.));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the pilot's ammo based on their secondary weapon.
|
// Set the pilot's ammo based on their secondary weapon.
|
||||||
|
Loading…
Reference in New Issue
Block a user