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
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r101 \cu(Tue 7 Jun 18:27:52 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r101 \cu(2022-06-07 18:27:52)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r102 \cu(Tue 7 Jun 19:30:57 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r102 \cu(2022-06-07 19:30:57)\c-";
|
||||
|
|
|
|||
|
|
@ -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