Oh yeah, ammo pickups for it too.

This commit is contained in:
Mari the Deer 2020-01-30 03:49:00 +01:00
commit 22aaebc398
4 changed files with 37 additions and 7 deletions

View file

@ -380,10 +380,20 @@ Class CandyGunAmmo : Ammo
{
Default
{
Tag "$T_CANDYMAG";
Inventory.PickupMessage "$T_CANDYMAG";
Stamina 80000;
Inventory.Amount 1;
Inventory.MaxAmount 8;
Ammo.BackpackAmount 0;
+FLOATBOB;
FloatBobStrength 0.25;
}
States
{
Spawn:
XZW1 A -1;
Stop;
}
}
@ -391,6 +401,7 @@ Class CandyGunSpares : Ammo
{
Default
{
Tag "$T_CANDYSPARE";
Stamina 150000;
Inventory.Amount 1;
Inventory.MaxAmount 4;

View file

@ -1172,10 +1172,15 @@ Class SWWMHandler : EventHandler
if ( (e.Replacee is 'Pistol') || (e.Replacee is 'GoldWand') || (e.Replacee is 'FWeapFist') || (e.Replacee is 'CWeapMace') || (e.Replacee is 'MWeapWand') ) e.Replacement = 'ExplodiumGun';
else if ( (e.Replacee is 'BFG9000') || (e.Replacee is 'Mace') )
{
/*if ( Random[Replacements](0,1) ) e.Replacement = 'Ynykron';
/*if ( !Random[Replacements](0,2) ) e.Replacement = 'Ynykron';
else */e.Replacement = 'CandyGun';
}
else if ( e.Replacee is 'MWeaponPiece1' ) e.Replacement = 'CandyGun';
else if ( (e.Replacee == 'CellPack') || (e.Replacee == 'SkullRodHefty') )
{
/*if ( Random[Replacements](0,2) ) e.Replacement = 'SilverBulletAmmo';
else */e.Replacement = 'CandyGunAmmo';
}
}
override void NetworkProcess( ConsoleEvent e )