Skip to content

Commit

Permalink
Update CoopClientFirearmController
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Nov 2, 2024
1 parent f48c165 commit 63657c7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public override void ReloadBarrels(AmmoPackReloadingClass ammoPack, ItemAddress
}

ReloadBarrelsHandler handler = new(player, placeToPutContainedAmmoMagazine, ammoPack);
CurrentOperation.ReloadBarrels(ammoPack, placeToPutContainedAmmoMagazine, callback, new Callback(handler.Process));
CurrentOperation.ReloadBarrels(ammoPack, placeToPutContainedAmmoMagazine, callback, handler.Process);
}

public override void ReloadCylinderMagazine(AmmoPackReloadingClass ammoPack, Callback callback, bool quickReload = false)
Expand All @@ -357,7 +357,7 @@ public override void ReloadCylinderMagazine(AmmoPackReloadingClass ammoPack, Cal

ReloadCylinderMagazineHandler handler = new(player, this, quickReload, ammoPack.GetReloadingAmmoIds(), [], (CylinderMagazineClass)Item.GetCurrentMagazine());
Weapon.GetShellsIndexes(handler.shellsIndexes);
CurrentOperation.ReloadCylinderMagazine(ammoPack, callback, new Callback(handler.Process), handler.quickReload);
CurrentOperation.ReloadCylinderMagazine(ammoPack, callback, handler.Process, handler.quickReload);
}

public override void ReloadGrenadeLauncher(AmmoPackReloadingClass ammoPack, Callback callback)
Expand Down Expand Up @@ -389,7 +389,7 @@ public override void ReloadMag(MagazineClass magazine, ItemAddress gridItemAddre
}

ReloadMagHandler handler = new(player, gridItemAddress, magazine);
CurrentOperation.ReloadMag(magazine, gridItemAddress, callback, new Callback(handler.Process));
CurrentOperation.ReloadMag(magazine, gridItemAddress, callback, handler.Process);
}

public override void ReloadWithAmmo(AmmoPackReloadingClass ammoPack, Callback callback)
Expand All @@ -404,7 +404,7 @@ public override void ReloadWithAmmo(AmmoPackReloadingClass ammoPack, Callback ca
}

ReloadWithAmmoHandler handler = new(player, ammoPack.GetReloadingAmmoIds());
CurrentOperation.ReloadWithAmmo(ammoPack, callback, new Callback(handler.Process));
CurrentOperation.ReloadWithAmmo(ammoPack, callback, handler.Process);
}

public override bool SetLightsState(FirearmLightStateStruct[] lightsStates, bool force = false, bool animated = true)
Expand Down

0 comments on commit 63657c7

Please sign in to comment.