remove unused code

This commit is contained in:
GenZmeY 2021-03-23 22:05:02 +03:00
parent 1a5d415ecb
commit a2b35c0cf9

View File

@ -573,7 +573,6 @@ static final function DetachConflictingAttachments(KFCharacterInfo_Human C, int
/** Assign an arm mesh and material to this pawn */
static final function SetFirstPersonArmsFromArch(KFCharacterInfo_Human C, KFPawn KFP, optional KFPlayerReplicationInfo KFPRI)
{
local MaterialInstanceConstant M;
local ExtPlayerReplicationInfo EPRI;
local bool bCustom;
local int AttachmentIdx, CosmeticMeshIdx;
@ -607,12 +606,6 @@ static final function SetFirstPersonArmsFromArch(KFCharacterInfo_Human C, KFPawn
KFP, KFPRI, true);
}
}
// Hack fix for a material bug on KF2
if (bCustom && KFP.ArmsMesh.SkeletalMesh!=None && KFP.ArmsMesh.GetMaterial(0)!=None)
{
M = KFP.ArmsMesh.CreateAndSetMaterialInstanceConstant(0);
}
}
static function int GetAttachmentSlotIndex(