private bool TargetObjTypeFilter(ref PoolObjHandle <ActorRoot> InActor, ActorRoot actor)
 {
     return((actor.ActorControl.IsDeadState && this.bFilterDead && (this.bFilterDeadControlHero || !actor.TheStaticData.TheBaseAttribute.DeadControl)) || (InActor && actor.IsSelfCamp(InActor.get_handle()) && this.bFilterFriend) || (InActor && actor.IsEnemyCamp(InActor.get_handle()) && (this.bFilterEnemy || (!this.bFilterEnemy && actor.ObjLinker.Invincible))) || (actor.TheActorMeta.ActorType >= (ActorTypeDef)this.type_Filters.Length || this.type_Filters[(int)actor.TheActorMeta.ActorType] || (InActor && actor.ObjID == InActor.get_handle().ObjID&& this.bFilterMyself)) || (actor.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Organ && !actor.AttackOrderReady) || (this.bCheckSight && !actor.HorizonMarker.IsVisibleFor(InActor.get_handle().TheActorMeta.ActorCamp)) || (this.bFilterEye && actor.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_EYE));
 }
Example #2
0
 private bool TargetObjTypeFilter(ref PoolObjHandle <ActorRoot> InActor, ActorRoot actor)
 {
     if ((((!actor.ActorControl.IsDeadState || !this.bFilterDead) && (((InActor == 0) || !actor.IsSelfCamp(InActor.handle)) || !this.bFilterFriend)) && ((((InActor == 0) || !actor.IsEnemyCamp(InActor.handle)) || (!this.bFilterEnemy && (this.bFilterEnemy || !actor.ObjLinker.Invincible))) && (((actor.TheActorMeta.ActorType < this.type_Filters.Length) && !this.type_Filters[(int)actor.TheActorMeta.ActorType]) && (((InActor == 0) || (actor.ObjID != InActor.handle.ObjID)) || !this.bFilterMyself)))) && (((actor.TheActorMeta.ActorType != ActorTypeDef.Actor_Type_Organ) || actor.AttackOrderReady) && (!this.bCheckSight || actor.HorizonMarker.IsVisibleFor(InActor.handle.TheActorMeta.ActorCamp))))
     {
         return(false);
     }
     return(true);
 }