WEAPON_GAUSS: Adjust the force applied to the players' velocity to make jumps easier.

This commit is contained in:
Marco Cawthorne 2022-08-15 07:03:30 -07:00
parent f8f9703df3
commit a542f7d121
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 4 additions and 2 deletions

View File

@ -139,11 +139,13 @@ void w_gauss_fire(player pl, int one)
if (one) {
return;
} else {
int iForce = (int)rint((bound(5, pl.ammo_gauss_volume, 10) * 20));
/* Apply force */
if (pl.flags & FL_ONGROUND) {
pl.velocity += v_forward * (-iDamage * 2);
pl.velocity += v_forward * (-iForce * 2);
} else {
pl.velocity += v_forward * (-iDamage * 4);
pl.velocity += v_forward * (-iForce * 4);
}
}