Revert weapon conversion

This patch reverts first step of global weapon conversion
that would have halted the release of the next version for too long.
This commit is contained in:
Anton Tarasenko 2020-04-17 23:06:41 +07:00
commit 12d95e387e
757 changed files with 10788 additions and 4046 deletions

View file

@ -0,0 +1,15 @@
class NiceProtecta extends Protecta;
// Use alt fire to switch fire modes
simulated function AltFire(float F)
{
if(ReadyToFire(0))
{ DoToggle();
}
}
exec function SwitchModes()
{
DoToggle();
}
defaultproperties
{ FireModeClass(0)=Class'NicePack.NiceProtectaFire' PickupClass=Class'NicePack.NiceProtectaPickup' ItemName="Flare Shotgun 'Protecta' NW"
}

View file

@ -0,0 +1,4 @@
class NiceProtectaAmmo extends ProtectaAmmo;
defaultproperties
{ PickupClass=Class'NicePack.NiceProtectaAmmoPickup'
}

View file

@ -0,0 +1,4 @@
class NiceProtectaAmmoPickup extends ProtectaAmmoPickup;
defaultproperties
{ InventoryType=Class'NicePack.NiceProtectaAmmo'
}

View file

@ -0,0 +1,15 @@
class NiceProtectaFire extends ProtectaFire;
simulated function bool AllowFire()
{
if( KFWeapon(Weapon).bIsReloading && KFWeapon(Weapon).MagAmmoRemaining < 1) return false;
if(KFPawn(Instigator).SecondaryItem!=none) return false;
if( KFPawn(Instigator).bThrowingNade ) return false;
if( Level.TimeSeconds - LastClickTime>FireRate )
{ LastClickTime = Level.TimeSeconds;
}
if( KFWeapon(Weapon).MagAmmoRemaining<1 ) return false;
return super(WeaponFire).AllowFire();
}
defaultproperties
{ maxVerticalRecoilAngle=1000 maxHorizontalRecoilAngle=300 AmmoClass=Class'NicePack.NiceProtectaAmmo' ProjectileClass=Class'NicePack.NiceProtectaFlare'
}

View file

@ -0,0 +1,4 @@
class NiceProtectaFlare extends NiceFlareRevolverProjectile;
defaultproperties
{ Speed=4500.000000 MaxSpeed=5000.000000
}

View file

@ -0,0 +1,4 @@
class NiceProtectaPickup extends ProtectaPickup;
defaultproperties
{ ItemName="Protecta NW" ItemShortName="Protecta NW" InventoryType=Class'NicePack.NiceProtecta' PickupMessage="You got the Protecta NW"
}