diff --git a/code/swb_base/WeaponBase.Var.cs b/code/swb_base/WeaponBase.Var.cs index 4d7ec4e6..9ebfd258 100644 --- a/code/swb_base/WeaponBase.Var.cs +++ b/code/swb_base/WeaponBase.Var.cs @@ -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] diff --git a/code/swb_base/structures/ClipInfo.cs b/code/swb_base/structures/ClipInfo.cs index 25f6a846..400c2d6c 100644 --- a/code/swb_base/structures/ClipInfo.cs +++ b/code/swb_base/structures/ClipInfo.cs @@ -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