Skip to content

Commit

Permalink
Sbox component update compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timmybo5 committed Sep 25, 2021
1 parent 1cc1718 commit af3d47a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/swb_base/WeaponBase.Var.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public partial class WeaponBase

public AngPos RunAnimData { get; set; } // Data used for setting the weapon to its run position

[Net]
[Net, Predicted]
public ClipInfo Primary { get; set; } = new ClipInfo(); // Primary attack data

[Net]
[Net, Predicted]
public ClipInfo Secondary { get; set; } = null; // Secondary attack data ( setting this will disable weapon zooming )

[Net, Predicted]
Expand Down
2 changes: 1 addition & 1 deletion code/swb_base/structures/ClipInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public enum FiringType
auto
}

public class ClipInfo
public class ClipInfo : NetworkComponent
{
[Predicted]
public int Ammo { get; set; } = 10; // Amount of ammo in the clip
Expand Down

0 comments on commit af3d47a

Please # to comment.