make it so no_pogo_stick 1 doesn't cause the jump sound when the player

attempts to pogo stick
This commit is contained in:
Bill Currie 2002-09-10 04:46:51 +00:00
parent 1523cb0291
commit 59faa3569b
3 changed files with 7 additions and 1 deletions

View file

@ -2388,8 +2388,11 @@ void() PlayerJump =
return;
}
if (!(self.flags & FL_ONGROUND))
if (!(self.flags & FL_ONGROUND)) {
if (no_pogo_stick)
self.flags &= ~FL_JUMPRELEASED;
return;
}
if (!(self.flags & FL_JUMPRELEASED) )
return; // don't pogo stick

View file

@ -1128,3 +1128,5 @@ float triggered_cycle;
/*==================================================*/
float deathmsg; // Global, which is set before every T_Damage, to indicate
// the death message that should be used.
float no_pogo_stick;

View file

@ -558,6 +558,7 @@ void() StartFrame =
timelimit = cvar("timelimit") * 60;
fraglimit = cvar("fraglimit");
deathmatch = cvar("deathmatch");
no_pogo_stick = cvar ("no_pogo_stick");
framecount = framecount + 1;
local string timeleft;