private void ShieldHitReset(bool enQueue) { if (enQueue) { if (_isServer) { if (_mpActive) { ShieldHitsToSend.Enqueue(CloneHit()); } if (!_isDedicated) { AddLocalHit(); } } } _lastSendDamageTick = uint.MaxValue; _forceBufferSync = true; ShieldHit.AttackerId = 0; ShieldHit.Amount = 0; ShieldHit.DamageType = string.Empty; ShieldHit.HitPos = Vector3D.Zero; }
internal void SendShieldHits() { while (ShieldHitsToSend.Count != 0) { Session.Instance.PacketizeToClientsInRange(Shield, new DataShieldHit(MyCube.EntityId, ShieldHitsToSend.Dequeue())); } }