mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-16 09:01:41 +00:00
SERVER: Disallow clients to pick up another's upgraded Weapon
This commit is contained in:
parent
4fcfa400b3
commit
cbe69fc269
1 changed files with 4 additions and 2 deletions
|
@ -106,7 +106,7 @@ void() PAP_Reset =
|
|||
{
|
||||
self.weapon = 0;
|
||||
self.usedent = 0;
|
||||
|
||||
self.host = world;
|
||||
|
||||
if (self.goaldummy) {
|
||||
remove(self.goaldummy);
|
||||
|
@ -218,6 +218,8 @@ void(entity pap, entity buyer) PAP_UpgradeWeapon =
|
|||
pap.usedent = self;
|
||||
pap.goaldummy = floating_weapon;
|
||||
|
||||
pap.host = buyer;
|
||||
|
||||
// Upgrade Timer
|
||||
pap.think = PAP_SendWeaponOut;
|
||||
pap.nextthink = time + 3.5;
|
||||
|
@ -287,7 +289,7 @@ void() PAP_Touch =
|
|||
}
|
||||
|
||||
// Claiming upgraded Weapon
|
||||
else if (self.papState == 2) {
|
||||
else if (self.papState == 2 && self.host == other) {
|
||||
|
||||
#ifndef FTE
|
||||
|
||||
|
|
Loading…
Reference in a new issue