Prevent NPCs causing raid block?
How can I prevent any raid block coming from any NPC's that hit a base?
Any solution to this?
My zombies do raid block when hitting a base or throw a beancan at it by accident.

Has anyone found a workaround for this?

4F40U73NUES0P8S.png BOOBLEJ

Has anyone found a workaround for this?

      edit these too sections in the .cs file 

       void OnPlayerAttack (BasePlayer attacker, HitInfo hitInfo)
        {
            if (!combatBlock || !(hitInfo.HitEntity is BasePlayer))
                return;
            if (!combatOnHitNPC && hitInfo.HitEntity.IsNpc)
                return;
            if (!combatOnTakeDamageNPC && attacker.IsNpc) {
                return;
            if (hitInfo.HitEntity.GetType().Name == "ZombieNPC")
                return;
            }
            if (!IsCombatDamage (hitInfo.damageTypes))
                return;
 
            float totalDamage = hitInfo.damageTypes.Total ();
            BasePlayer target = hitInfo.HitEntity as BasePlayer;
 
            if (combatOnTakeDamage) {
                if (GetHealthPercent (target, hitInfo.damageTypes.Total ()) > combatOnTakeDamageMinCondition) {
                    return;
                }
 
                if (totalDamage < combatOnTakeDamageMinDamage) {
                    return;
                }
 
 
                StartCombatBlocking (target);
            }
 
            if (combatOnHitPlayer) {
                if (GetHealthPercent (attacker, hitInfo.damageTypes.Total ()) > combatOnHitPlayerMinCondition) {
                    return;
                }
 
                if (totalDamage < combatOnHitPlayerMinDamage) {
                    return;
                }
 
                StartCombatBlocking (attacker);
            }
        }

  

        void OnEntityDeath (BaseCombatEntity entity, HitInfo hitInfo)
        {
            if (blockOnDestroy && raidBlock) {
                if (hitInfo == null || hitInfo.Initiator == null || !IsDeathDamage (hitInfo.damageTypes) || !IsEntityBlocked (entity))
                    return;
 
                StructureAttack (entity, hitInfo.Initiator, hitInfo?.WeaponPrefab?.ShortPrefabName, hitInfo.HitPositionWorld);
            }
 
            if (entity.ToPlayer () == null)
                return;
 
            if (entity.GetType().Name == "ZombieNPC")
                return;
 
            var player = entity.ToPlayer ();
            RaidBlock raidBlocker;
            if (raidBlock && raidUnblockOnDeath && TryGetBlocker (player, out raidBlocker)) {
                timer.In (0.3f, delegate () {
                    raidBlocker.Stop ();
                });
            }
 
            CombatBlock combatBlocker;
            if (combatBlock && combatUnblockOnDeath && TryGetBlocker (player, out combatBlocker)) {
                timer.In (0.3f, delegate () {
                    combatBlocker.Stop ();
                });
            }
        }