Fix hack that breaks ammo drops from sold weapons.
This commit is contained in:
parent
6cca0eb623
commit
4e47d7d97e
3 changed files with 8 additions and 14 deletions
|
|
@ -220,10 +220,8 @@ Class SWWMWeapon : Weapon abstract
|
|||
if ( dropme > 0 )
|
||||
{
|
||||
// hacky, but it works
|
||||
let a = Ammo(Spawn(AmmoType1,Owner.pos));
|
||||
a.Owner = Owner;
|
||||
a.Amount = dropme;
|
||||
a.CreateTossable(dropme);
|
||||
ownedWeapon.Ammo1.CreateTossable(dropme);
|
||||
ownedWeapon.Ammo1.Amount += dropme;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -258,10 +256,8 @@ Class SWWMWeapon : Weapon abstract
|
|||
if ( dropme > 0 )
|
||||
{
|
||||
// hacky, but it works
|
||||
let a = Ammo(Spawn(AmmoType2,Owner.pos));
|
||||
a.Owner = Owner;
|
||||
a.Amount = dropme;
|
||||
a.CreateTossable(dropme);
|
||||
ownedWeapon.Ammo2.CreateTossable(dropme);
|
||||
ownedWeapon.Ammo2.Amount += dropme;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,10 +79,8 @@ Class CandyGun : SWWMWeapon
|
|||
if ( dropme > 0 )
|
||||
{
|
||||
// hacky, but it works
|
||||
let a = Ammo(Spawn(AmmoType1,Owner.pos));
|
||||
a.Owner = Owner;
|
||||
a.Amount = dropme;
|
||||
a.CreateTossable(dropme);
|
||||
ownedWeapon.Ammo1.CreateTossable(dropme);
|
||||
ownedWeapon.Ammo1.Amount += dropme;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue