Skip to content

Commit

Permalink
Grab Damage From PrioritizeArmor
Browse files Browse the repository at this point in the history
This works around idiocy in UT_ShieldBelt that destroys all armors on
pickup.
  • Loading branch information
Deaod committed Apr 16, 2024
1 parent a16e75d commit fd6ce57
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Classes/IGPlus_HitFeedbackTracker.uc
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,7 @@ function bool HandlePickupQuery(Inventory Item) {
return false;
}

function int ArmorPriority(name DamageType) {
return MaxInt;
}

function int ArmorAbsorbDamage(int Damage, name DamageType, vector HitLocation) {
function Inventory PrioritizeArmor(int Damage, name DamageType, vector HitLocation) {
LastDamage = Damage;
return Damage;
}

defaultproperties {
bIsAnArmor=True
ArmorAbsorption=0
Charge=0
return super.PrioritizeArmor(Damage, DamageType, HitLocation);
}

0 comments on commit fd6ce57

Please sign in to comment.