Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchangelWTF committed Nov 14, 2024
1 parent caadbab commit be5ff1e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ private void HandleObservedShot(ref ShotInfoPacket packet, InventoryController i
}
}

// Check for GClass increments
if (Weapon is RevolverItemClass)
{
Weapon.CylinderHammerClosed = Weapon.FireMode.FireMode == Weapon.EFireMode.doubleaction;
Expand Down Expand Up @@ -573,7 +572,6 @@ private void HandleShellEvent(WeaponManagerClass weaponEffectsManager, ref ShotI
FirearmsAnimator.SetBoltCatch(true);
}

//Check for GClass increments
if (Weapon is RevolverItemClass || Weapon.ReloadMode == Weapon.EReloadMode.OnlyBarrel || boltAction)
{
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,24 +137,27 @@ private void HandleInProcess(Item item, ItemAddress to, GInterface400 operation,
player_0 = coopPlayer,
callback = callback
};

if (!coopPlayer.HealthController.IsAlive)
{
handler.callback.Succeed();
return;
}
// Check for GClass increments, fold operation

if ((item.Parent != to || operation is FoldOperationClass) && handler.player_0.HandsController.CanExecute(operation))
{
Traverse.Create(handler.player_0).Field<Callback>("_setInHandsCallback").Value = handler.callback;
RaiseInOutProcessEvents(new(handler.player_0.HandsController.Item, CommandStatus.Begin, this));
handler.player_0.HandsController.Execute(operation, new Callback(handler.method_1));
return;
}

if (operation is FoldOperationClass && !handler.player_0.HandsController.CanExecute(operation))
{
handler.callback.Fail("Can't perform operation");
return;
}

handler.callback.Succeed();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ public RollCylinderPacket(NetDataReader reader)

public void Execute(CoopPlayer player)
{
// Check for GClass increments
if (player.HandsController is CoopObservedFirearmController controller && controller.Weapon is RevolverItemClass)
{
controller.RollCylinder(RollToZeroCamora);
Expand Down Expand Up @@ -1024,7 +1023,7 @@ public void Execute(CoopPlayer player)
if (StartOneShotFire)
{
controller.FirearmsAnimator.SetFire(true);
// Check for GClass increments

if (controller.Weapon is not RevolverItemClass)
{
controller.FirearmsAnimator.Animator.Play(controller.FirearmsAnimator.FullFireStateName, 1, 0f);
Expand Down

0 comments on commit be5ff1e

Please sign in to comment.