mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-16 17:10:55 +00:00
Server: Have .semiswitch apply to impulse for weapon swapping
Fixes issues when bound to the scroll wheel where you can spam the wheel to increase rate of fire via bypass.
This commit is contained in:
parent
16a77c1e0f
commit
ad4f0a8963
1 changed files with 2 additions and 7 deletions
|
@ -2168,15 +2168,10 @@ void () Impulse_Functions =
|
|||
self.sprintflag = 1;
|
||||
break;
|
||||
#endif
|
||||
/*case 110:
|
||||
CheckButton(1);
|
||||
break;
|
||||
case 111:
|
||||
CheckButton(0);
|
||||
break; */
|
||||
case 110:
|
||||
case 111:
|
||||
W_PutOut();
|
||||
self.semiswitch = true;
|
||||
break;
|
||||
case 100:
|
||||
cvar_set("waypoint_mode", "1");
|
||||
|
@ -2532,7 +2527,7 @@ void () Weapon_Logic =
|
|||
{
|
||||
W_PutOut();
|
||||
self.semiswitch = true;
|
||||
} else if (!self.button4 && self.semiswitch) {
|
||||
} else if (!self.button4 && self.semiswitch && self.impulse != 110 && self.impulse != 111) {
|
||||
self.semiswitch = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue