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:
parent
3c46801714
commit
12d95e387e
757 changed files with 10788 additions and 4046 deletions
15
sources/Weapons/Playable/Incendiary/Protecta/NiceProtecta.uc
Normal file
15
sources/Weapons/Playable/Incendiary/Protecta/NiceProtecta.uc
Normal 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"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
class NiceProtectaAmmo extends ProtectaAmmo;
|
||||
defaultproperties
|
||||
{
PickupClass=Class'NicePack.NiceProtectaAmmoPickup'
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
class NiceProtectaAmmoPickup extends ProtectaAmmoPickup;
|
||||
defaultproperties
|
||||
{
InventoryType=Class'NicePack.NiceProtectaAmmo'
|
||||
}
|
||||
|
|
@ -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'
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
class NiceProtectaFlare extends NiceFlareRevolverProjectile;
|
||||
defaultproperties
|
||||
{
Speed=4500.000000
MaxSpeed=5000.000000
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue