mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-10 14:42:05 +00:00
Server: Fix bad weapon delay timing when Pack-A-Punching
fixes an issue where spamming use trying to retrieve a gun coming out would interrupt the frames and prevent interacting with other items.
This commit is contained in:
parent
7702f79b35
commit
aa9965e2f1
1 changed files with 5 additions and 1 deletions
|
@ -1854,7 +1854,7 @@ void PapUpgrade(entity pap, entity buyer) {
|
|||
|
||||
////////////////////////////////////////
|
||||
|
||||
self.fire_delay = self.reload_delay = 4.0 + time;
|
||||
self.fire_delay = self.reload_delay = 4.5 + time;
|
||||
sound(self,CHAN_WEAPON,"sounds/machines/papsound.wav",1,ATTN_NONE);
|
||||
|
||||
pap.weapon = self.weapon;
|
||||
|
@ -1889,6 +1889,10 @@ void touch_pap() {
|
|||
if (other.classname != "player" || other.downed || !isFacing(other, self)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (other.reload_delay > time || other.reload_delay2 > time ||
|
||||
other.fire_delay > time || other.fire_delay2 > time)
|
||||
return;
|
||||
|
||||
if (self.requirespower == true && !isPowerOn) {
|
||||
useprint (other, 8, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue