Made Gauss jumping MP only.

This commit is contained in:
Maxwell 2023-01-17 18:39:18 -05:00
parent 96324141cb
commit 4c1d6569a9

View file

@ -136,6 +136,10 @@ 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);
} }
HLGameRules rules = (HLGameRules) g_grMode;
/* You should not be able to fling yourself in single player */
if (rules.IsMultiplayer() == true) {
if (one) { if (one) {
return; return;
} else { } else {
@ -148,6 +152,11 @@ void w_gauss_fire(player pl, int one)
pl.velocity += v_forward * (-iForce * 4); pl.velocity += v_forward * (-iForce * 4);
} }
} }
} else {
if (one) {
return;
}
}
// reflection equation: // reflection equation:
Weapons_MakeVectors(pl); Weapons_MakeVectors(pl);