mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-23 20:52:29 +00:00
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:
parent
1523cb0291
commit
59faa3569b
3 changed files with 7 additions and 1 deletions
|
@ -2388,8 +2388,11 @@ void() PlayerJump =
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(self.flags & FL_ONGROUND))
|
if (!(self.flags & FL_ONGROUND)) {
|
||||||
|
if (no_pogo_stick)
|
||||||
|
self.flags &= ~FL_JUMPRELEASED;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(self.flags & FL_JUMPRELEASED) )
|
if (!(self.flags & FL_JUMPRELEASED) )
|
||||||
return; // don't pogo stick
|
return; // don't pogo stick
|
||||||
|
|
2
defs.qc
2
defs.qc
|
@ -1128,3 +1128,5 @@ float triggered_cycle;
|
||||||
/*==================================================*/
|
/*==================================================*/
|
||||||
float deathmsg; // Global, which is set before every T_Damage, to indicate
|
float deathmsg; // Global, which is set before every T_Damage, to indicate
|
||||||
// the death message that should be used.
|
// the death message that should be used.
|
||||||
|
|
||||||
|
float no_pogo_stick;
|
||||||
|
|
1
world.qc
1
world.qc
|
@ -558,6 +558,7 @@ void() StartFrame =
|
||||||
timelimit = cvar("timelimit") * 60;
|
timelimit = cvar("timelimit") * 60;
|
||||||
fraglimit = cvar("fraglimit");
|
fraglimit = cvar("fraglimit");
|
||||||
deathmatch = cvar("deathmatch");
|
deathmatch = cvar("deathmatch");
|
||||||
|
no_pogo_stick = cvar ("no_pogo_stick");
|
||||||
framecount = framecount + 1;
|
framecount = framecount + 1;
|
||||||
|
|
||||||
local string timeleft;
|
local string timeleft;
|
||||||
|
|
Loading…
Reference in a new issue