Browse Source

Change to account for AcediaCore refactor

master
Anton Tarasenko 2 years ago
parent
commit
a12b229758
  1. 2
      sources/FixAmmoSelling/AmmoPickupStalker.uc
  2. 2
      sources/FixInfiniteNades/FixedFragFire.uc
  3. 3
      sources/FixPipes/PipesSafetyCollision.uc

2
sources/FixAmmoSelling/AmmoPickupStalker.uc

@ -58,7 +58,7 @@ event Touch(Actor other)
if (!wasActive && !target.IsInState('Pickup')) return; if (!wasActive && !target.IsInState('Pickup')) return;
ammoSellingFix = FixAmmoSelling_Feature( ammoSellingFix = FixAmmoSelling_Feature(
class'FixAmmoSelling_Feature'.static.GetInstance()); class'FixAmmoSelling_Feature'.static.GetEnabledInstance());
if (ammoSellingFix != none) { if (ammoSellingFix != none) {
ammoSellingFix.RecordAmmoPickup(Pawn(other), target); ammoSellingFix.RecordAmmoPickup(Pawn(other), target);
} }

2
sources/FixInfiniteNades/FixedFragFire.uc

@ -25,7 +25,7 @@ function DoFireEffect()
{ {
local FixInfiniteNades_Feature nadeFix; local FixInfiniteNades_Feature nadeFix;
nadeFix = FixInfiniteNades_Feature( nadeFix = FixInfiniteNades_Feature(
class'FixInfiniteNades_Feature'.static.GetInstance()); class'FixInfiniteNades_Feature'.static.GetEnabledInstance());
if (nadeFix == none || nadeFix.RegisterNadeThrow(Frag(weapon))) { if (nadeFix == none || nadeFix.RegisterNadeThrow(Frag(weapon))) {
super.DoFireEffect(); super.DoFireEffect();
} }

3
sources/FixPipes/PipesSafetyCollision.uc

@ -85,7 +85,8 @@ function TakeDamage(
local PipeBombProjectile target; local PipeBombProjectile target;
target = PipeBombProjectile(owner); target = PipeBombProjectile(owner);
if (target == none) return; if (target == none) return;
pipesFix = FixPipes_Feature(class'FixPipes_Feature'.static.GetInstance()); pipesFix = FixPipes_Feature(
class'FixPipes_Feature'.static.GetEnabledInstance());
if (pipesFix == none) return; if (pipesFix == none) return;
if (pipesFix.preventMassiveDamage && target.bTriggered) return; if (pipesFix.preventMassiveDamage && target.bTriggered) return;
if (pipesFix.preventSuspiciousDamage && IsSuspicious(instigator)) return; if (pipesFix.preventSuspiciousDamage && IsSuspicious(instigator)) return;

Loading…
Cancel
Save