mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-12 23:44:34 +00:00
SERVER: Fix semiuse not activating with weapon ammo stations
This commit is contained in:
parent
060b157a4c
commit
4f9754c208
1 changed files with 3 additions and 1 deletions
|
@ -227,6 +227,8 @@ void () WallWeapon_TouchTrigger =
|
|||
return;
|
||||
}
|
||||
|
||||
other.semiuse = true;
|
||||
|
||||
// Player doesn't have enough points. Abort.
|
||||
if (other.points < wcost) {
|
||||
centerprint(other, STR_NOTENOUGHPOINTS);
|
||||
|
@ -234,7 +236,7 @@ void () WallWeapon_TouchTrigger =
|
|||
return;
|
||||
}
|
||||
|
||||
other.currentammo = getWeaponAmmo(other.weapon);
|
||||
other.weapons[0].weapon_reserve = getWeaponAmmo(other.weapon);
|
||||
|
||||
sound(other, 0, "sounds/misc/ching.wav", 1, 1);
|
||||
other.reload_delay = 0;
|
||||
|
|
Loading…
Reference in a new issue