Fix extended hitboxes breaking dual-weapon givers.
This commit is contained in:
parent
c257750f9d
commit
b4f81fa4e3
6 changed files with 18 additions and 5 deletions
|
|
@ -2114,6 +2114,11 @@ Class SWWMUtility
|
|||
// pistol spawn, pretty simple
|
||||
static Class<Weapon> PickSWWMSlot2()
|
||||
{
|
||||
// as they are dual-wieldable, there should be a 50% chance for spares to also appear if needed
|
||||
if ( Random[Replacements](0,1) && !CheckNeedsItem('ExplodiumGun') && CheckNeedsItem('ExplodiumGun',true) )
|
||||
return 'ExplodiumGun';
|
||||
if ( Random[Replacements](0,1) && !CheckNeedsItem('PlasmaBlast') && CheckNeedsItem('PlasmaBlast',true) )
|
||||
return 'PlasmaBlast';
|
||||
return PickPair('ExplodiumGun','PlasmaBlast');
|
||||
}
|
||||
// shotgun spawn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue