Made Gauss jumping MP only.
This commit is contained in:
parent
96324141cb
commit
4c1d6569a9
1 changed files with 17 additions and 8 deletions
|
@ -136,16 +136,25 @@ void w_gauss_fire(player pl, int one)
|
||||||
sound(trace_ent, CHAN_ITEM, sprintf("weapons/electro%d.wav", random(0,3)+4), 1, ATTN_NORM);
|
sound(trace_ent, CHAN_ITEM, sprintf("weapons/electro%d.wav", random(0,3)+4), 1, ATTN_NORM);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (one) {
|
HLGameRules rules = (HLGameRules) g_grMode;
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
int iForce = (int)rint((bound(5, pl.ammo_gauss_volume, 10) * 20));
|
|
||||||
|
|
||||||
/* Apply force */
|
/* You should not be able to fling yourself in single player */
|
||||||
if (pl.flags & FL_ONGROUND) {
|
if (rules.IsMultiplayer() == true) {
|
||||||
pl.velocity += v_forward * (-iForce * 2);
|
if (one) {
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
pl.velocity += v_forward * (-iForce * 4);
|
int iForce = (int)rint((bound(5, pl.ammo_gauss_volume, 10) * 20));
|
||||||
|
|
||||||
|
/* Apply force */
|
||||||
|
if (pl.flags & FL_ONGROUND) {
|
||||||
|
pl.velocity += v_forward * (-iForce * 2);
|
||||||
|
} else {
|
||||||
|
pl.velocity += v_forward * (-iForce * 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (one) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue