Skip to content

Commit

Permalink
More sync on firearm controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed May 24, 2024
1 parent a9afc34 commit 4157e0a
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,23 @@ public override void SetLightsState(GStruct164[] lightsStates, bool force = fals
}

public override void SetScopeMode(GStruct165[] scopeStates)
{
SendScopeStates(scopeStates);
base.SetScopeMode(scopeStates);
}
public override void OpticCalibrationSwitchUp(GStruct165[] scopeStates)
{
SendScopeStates(scopeStates);
base.OpticCalibrationSwitchUp(scopeStates);
}

public override void OpticCalibrationSwitchDown(GStruct165[] scopeStates)
{
SendScopeStates(scopeStates);
base.OpticCalibrationSwitchDown(scopeStates);
}

private void SendScopeStates(GStruct165[] scopeStates)
{
if (!CurrentOperation.CanChangeScopeStates(scopeStates))
{
Expand All @@ -381,8 +398,6 @@ public override void SetScopeMode(GStruct165[] scopeStates)
GStruct165 = scopeStates
}
});

base.SetScopeMode(scopeStates);
}

public override void ShotMisfired(BulletClass ammo, Weapon.EMalfunctionState malfunctionState, float overheat)
Expand Down

0 comments on commit 4157e0a

Please sign in to comment.