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,18 @@
class Nice9mmPlus extends NiceSingle;
simulated function AltFire(float F){
if(bIsDual) super.AltFire(F);
else ToggleLaser();
}
simulated function SecondDoToggle(){
ToggleLaser();
}
simulated function ToggleLaser(){
if(!Instigator.IsLocallyControlled()) return;
// Will redo this bit later, but so far it'll have to do
if(LaserType == 0) LaserType = 1;
else LaserType = 0;
ApplyLaserState();
}
defaultproperties
{ DualClass=Class'NicePack.NiceDual9mmPlus' bUseFlashlightToToggle=True reloadPreEndFrame=0.117000 reloadEndFrame=0.617000 reloadChargeEndFrame=-1.000000 reloadMagStartFrame=0.167000 reloadChargeStartFrame=-1.000000 bTorchEnabled=True SleeveNum=0 TraderInfoTexture=Texture'NicePackT.NinePP.HUD_Single_Trader' MeshRef="NicePackA.NinePP.Single_1P" SkinRefs(1)="ScrnWeaponPack_T.MedicPistol.Slide_cmb" SkinRefs(2)="ScrnWeaponPack_T.MedicPistol.frame_cmb" SkinRefs(3)="ScrnWeaponPack_T.MedicPistol.Slide_cmb" SkinRefs(4)="ScrnWeaponPack_T.MedicPistol.Slide_cmb" SelectSoundRef="KF_9MMSnd.9mm_Select" HudImageRef="NicePackT.NinePP.HUD_Single_UnSelected" SelectedHudImageRef="NicePackT.NinePP.HUD_Single_Selected" FireModeClass(0)=Class'NicePack.Nice9mmPlusFire' Description="A 9mm handgun, with a functional laser sight and flashlight. The barrel has been replaced with one that can chamber hotter ammunition loads, meaning faster bullets, meaning more damage!" GroupOffset=3 PickupClass=Class'NicePack.Nice9mmPlusPickup' AttachmentClass=Class'NicePack.Nice9mmPlusAttachment' ItemName="Beretta"
}

View file

@ -0,0 +1,4 @@
class Nice9mmPlusAmmo extends NiceAmmo;
defaultproperties
{ WeaponPickupClass=Class'NicePack.Nice9mmPlusPickup' AmmoPickupAmount=15 MaxAmmo=150 InitialAmount=60 PickupClass=Class'NicePack.Nice9mmPlusAmmoPickup' IconMaterial=Texture'KillingFloorHUD.Generic.HUD' IconCoords=(X1=413,Y1=82,X2=457,Y2=125) ItemName="9mm +P+ bullets"
}

View file

@ -0,0 +1,4 @@
class Nice9mmPlusAmmoPickup extends NiceAmmoPickup;
defaultproperties
{ AmmoAmount=15 InventoryType=Class'NicePack.Nice9mmPlusAmmo' RespawnTime=0.000000 PickupMessage="Rounds (9mm +P+)" StaticMesh=StaticMesh'KillingFloorStatics.DualiesAmmo'
}

View file

@ -0,0 +1,4 @@
class Nice9mmPlusAttachment extends NiceSingleAttachment;
defaultproperties
{ MeshRef="NicePackA.NinePP.Single_3P"
}

View file

@ -0,0 +1,4 @@
class Nice9mmPlusFire extends NiceSingleFire;
defaultproperties
{ ProjectileSpeed=21300.000000 maxVerticalRecoilAngle=0 maxHorizontalRecoilAngle=0 FireSoundRef="NicePackSnd.NinePP.Fire1" StereoFireSoundRef="NicePackSnd.NinePP.Fire1" NoAmmoSoundRef="KF_9MMSnd.9mm_DryFire" DamageType=Class'NicePack.NiceDamType9mmPlus' FireRate=0.250000 AmmoClass=Class'NicePack.Nice9mmPlusAmmo'
}

View file

@ -0,0 +1,4 @@
class Nice9mmPlusPickup extends NiceSinglePickup;
defaultproperties
{ bBackupWeapon=True cost=100 AmmoCost=8 Description="A 9mm handgun, with a functional laser sight and flashlight. The barrel has been replaced with one that can chamber hotter ammunition loads, meaning faster bullets, meaning more damage!" ItemName="Beretta" ItemShortName="9mm" InventoryType=Class'NicePack.Nice9mmPlus' PickupMessage="You got the 9mm!" StaticMesh=StaticMesh'NicePackSM.NinePP.Pickup' DrawScale=0.100000
}

View file

@ -0,0 +1,5 @@
class NiceDamType9mmPlus extends NiceDamageTypeVetSharpshooter
abstract;
defaultproperties
{ goodDecapMod=0.500000 WeaponClass=Class'NicePack.Nice9mmPlus' DeathString="%k killed %o (Beretta)." FemaleSuicide="%o shot herself in the foot." MaleSuicide="%o shot himself in the foot." bRagdollBullet=True bBulletHit=True FlashFog=(X=600.000000) KDamageImpulse=750.000000 KDeathVel=100.000000 VehicleDamageScaling=0.700000
}

View file

@ -0,0 +1,17 @@
class NiceDual9mmPlus extends NiceDualies;
simulated function SecondDoToggle(){
ToggleLaser();
}
simulated function ToggleLaser(){
if(!Instigator.IsLocallyControlled()) return;
// Will redo this bit later, but so far it'll have to do
if(LaserType == 0) LaserType = 1;
else LaserType = 0;
ApplyLaserState();
}
simulated function ApplyLaserState(){
super(NiceWeapon).ApplyLaserState();
}
defaultproperties
{ SingleClass=Class'NicePack.Nice9mmPlus' bUseFlashlightToToggle=True Weight=1.000000 bTorchEnabled=True SleeveNum=0 TraderInfoTexture=Texture'NicePackT.NinePP.HUD_Dual_Trader' MeshRef="NicePackA.NinePP.Dual_1P" SkinRefs(1)="ScrnWeaponPack_T.MedicPistol.NinePP.Frame_cmb" SkinRefs(2)="ScrnWeaponPack_T.MedicPistol.Slide_cmb" SkinRefs(3)="ScrnWeaponPack_T.MedicPistol.Slide_cmb" SkinRefs(4)="ScrnWeaponPack_T.MedicPistol.Slide_cmb" SelectSoundRef="KFPlayerSound.getweaponout" HudImageRef="NicePackT.NinePP.HUD_Dual_UnSelected" SelectedHudImageRef="NicePackT.NinePP.HUD_Dual_Selected" FireModeClass(0)=Class'NicePack.NiceDual9mmPlusFire' Description="A pair of custom 9mm +P+ handguns. These have been improved with a laser sight and more powerful ammunition" GroupOffset=4 PickupClass=Class'NicePack.NiceDual9mmPickup' AttachmentClass=Class'NicePack.NiceDual9mmPlusAttachment' ItemName="Dual Berettas"
}

View file

@ -0,0 +1,4 @@
class NiceDual9mmPlusAmmo extends NiceAmmo;
defaultproperties
{ WeaponPickupClass=Class'NicePack.NiceDual9mmPlusPickup' AmmoPickupAmount=15 MaxAmmo=150 InitialAmount=60 PickupClass=Class'NicePack.NiceDual9mmPlusAmmoPickup' IconMaterial=Texture'KillingFloorHUD.Generic.HUD' IconCoords=(X1=413,Y1=82,X2=457,Y2=125) ItemName="9mm +P+ bullets"
}

View file

@ -0,0 +1,4 @@
class NiceDual9mmPlusAmmoPickup extends NiceAmmoPickup;
defaultproperties
{ AmmoAmount=15 InventoryType=Class'NicePack.NiceDual9mmPlusAmmo' PickupMessage="Rounds (9mm +P+)" StaticMesh=StaticMesh'KillingFloorStatics.DualiesAmmo'
}

View file

@ -0,0 +1,4 @@
class NiceDual9mmPlusAttachment extends NiceDualiesAttachment;
defaultproperties
{ BrotherMesh=SkeletalMesh'NicePackA.NinePP.Single_3P' MeshRef="NicePackA.NinePP.Single_3P"
}

View file

@ -0,0 +1,4 @@
class NiceDual9mmPlusFire extends NiceDualiesFire;
defaultproperties
{ ProjectileSpeed=21300.000000 maxVerticalRecoilAngle=0 maxHorizontalRecoilAngle=0 FireSoundRef="NicePackSnd.NinePP.Fire1" StereoFireSoundRef="NicePackSnd.NinePP.Fire1" NoAmmoSoundRef="KF_9MMSnd.9mm_DryFire" DamageType=Class'NicePack.NiceDamType9mmPlus' Momentum=10000.000000 bWaitForRelease=False FireRate=0.125000 AmmoClass=Class'NicePack.NiceDual9mmPlusAmmo'
}

View file

@ -0,0 +1,4 @@
class NiceDual9mmPlusPickup extends NiceDualiesPickup;
defaultproperties
{ bBackupWeapon=True cost=200 AmmoCost=16 Description="A pair of custom 9mm handguns. These have been improved with a laser sight and more powerful ammunition" ItemName="Dual Berettas" ItemShortName="Dual Berettas" InventoryType=Class'NicePack.NiceDual9mmPlus' PickupMessage="You got the Dual 9mm +P+!"
}