WEAPON_GAUSS: Adjust the force applied to the players' velocity to make jumps easier.
This commit is contained in:
parent
f8f9703df3
commit
a542f7d121
|
@ -139,11 +139,13 @@ void w_gauss_fire(player pl, int one)
|
||||||
if (one) {
|
if (one) {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
int iForce = (int)rint((bound(5, pl.ammo_gauss_volume, 10) * 20));
|
||||||
|
|
||||||
/* Apply force */
|
/* Apply force */
|
||||||
if (pl.flags & FL_ONGROUND) {
|
if (pl.flags & FL_ONGROUND) {
|
||||||
pl.velocity += v_forward * (-iDamage * 2);
|
pl.velocity += v_forward * (-iForce * 2);
|
||||||
} else {
|
} else {
|
||||||
pl.velocity += v_forward * (-iDamage * 4);
|
pl.velocity += v_forward * (-iForce * 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue