1
0
KF2-Dev-Scripts/KFGameContent/Classes/KFWeap_Edged_Katana.uc
2020-12-13 18:01:13 +03:00

81 lines
3.5 KiB
Ucode

//=============================================================================
// KFWeap_Edged_Katana
//=============================================================================
// A long, curved single-edged sword traditionally used by Japanese samurai
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
// - Andrew "Strago" Ladenberger
//=============================================================================
class KFWeap_Edged_Katana extends KFWeap_MeleeBase;
defaultproperties
{
// Zooming/Position
PlayerViewOffset=(X=2,Y=0,Z=0)
// Content
PackageKey="Katana"
FirstPersonMeshName="WEP_1P_KATANA_MESH.Wep_1stP_Katana_Rig"
FirstPersonAnimSetNames(0)="WEP_1P_KATANA_ANIM.Katana_Anim_Master"
PickupMeshName="WEP_3P_KATANA_MESH.Wep_Katana_Pickup"
AttachmentArchetypeName="WEP_Katana_ARCH.Wep_Katana_3P"
Begin Object Name=MeleeHelper_0
MaxHitRange=190
// Override automatic hitbox creation (advanced)
HitboxChain.Add((BoneOffset=(X=+3,Z=190)))
HitboxChain.Add((BoneOffset=(X=-3,Z=170)))
HitboxChain.Add((BoneOffset=(X=+3,Z=150)))
HitboxChain.Add((BoneOffset=(X=-3,Z=130)))
HitboxChain.Add((BoneOffset=(X=+3,Z=110)))
HitboxChain.Add((BoneOffset=(X=-3,Z=90)))
HitboxChain.Add((BoneOffset=(X=+3,Z=70)))
HitboxChain.Add((BoneOffset=(X=-3,Z=50)))
HitboxChain.Add((BoneOffset=(X=+3,Z=30)))
HitboxChain.Add((BoneOffset=(Z=10)))
WorldImpactEffects=KFImpactEffectInfo'FX_Impacts_ARCH.Bladed_melee_impact'
MeleeImpactCamShakeScale=0.03f //0.3
// modified combo sequences
ChainSequence_F=(DIR_Left, DIR_ForwardRight, DIR_ForwardLeft, DIR_ForwardRight, DIR_ForwardLeft)
ChainSequence_B=(DIR_BackwardRight, DIR_ForwardLeft, DIR_BackwardLeft, DIR_ForwardRight, DIR_Left, DIR_Right, DIR_Left)
ChainSequence_L=(DIR_Right, DIR_Left, DIR_ForwardRight, DIR_ForwardLeft, DIR_Right, DIR_Left)
ChainSequence_R=(DIR_Left, DIR_Right, DIR_ForwardLeft, DIR_ForwardRight, DIR_Left, DIR_Right)
End Object
InstantHitDamageTypes(DEFAULT_FIREMODE)=class'KFDT_Slashing_Katana'
InstantHitDamage(DEFAULT_FIREMODE)=68// 34
InstantHitDamageTypes(HEAVY_ATK_FIREMODE)=class'KFDT_Slashing_KatanaHeavy'
InstantHitDamage(HEAVY_ATK_FIREMODE)=90 //68
InstantHitDamageTypes(BASH_FIREMODE)=class'KFDT_Piercing_KatanaStab'
InstantHitDamage(BASH_FIREMODE)=68
// Inventory
GroupPriority=50
InventorySize=4
WeaponSelectTexture=Texture2D'ui_weaponselect_tex.UI_WeaponSelect_Katana'
AssociatedPerkClasses(0)=class'KFPerk_Berserker'
// Block Sounds
BlockSound=AkEvent'WW_WEP_Bullet_Impacts.Play_Block_MEL_Katana'
ParrySound=AkEvent'WW_WEP_Bullet_Impacts.Play_Parry_Metal'
ParryDamageMitigationPercent=0.50
BlockDamageMitigation=0.60
ParryStrength=4
// Weapon Upgrade stat boosts
//WeaponUpgrades[1]=(IncrementDamage=1.2f,IncrementWeight=1)
//WeaponUpgrades[2]=(IncrementDamage=1.4f,IncrementWeight=2)
//WeaponUpgrades[3]=(IncrementDamage=1.6f,IncrementWeight=3)
WeaponUpgrades[1]=(Stats=((Stat=EWUS_Damage0, Scale=1.2f), (Stat=EWUS_Damage1, Scale=1.2f), (Stat=EWUS_Damage2, Scale=1.2f), (Stat=EWUS_Weight, Add=1)))
WeaponUpgrades[2]=(Stats=((Stat=EWUS_Damage0, Scale=1.4f), (Stat=EWUS_Damage1, Scale=1.4f), (Stat=EWUS_Damage2, Scale=1.4f), (Stat=EWUS_Weight, Add=2)))
WeaponUpgrades[3]=(Stats=((Stat=EWUS_Damage0, Scale=1.6f), (Stat=EWUS_Damage1, Scale=1.6f), (Stat=EWUS_Damage2, Scale=1.6f), (Stat=EWUS_Weight, Add=3)))
}