Exemple #1
0
        public override void DrawGhost(ThingDef def, IntVec3 center, Rot4 rot, Color ghostCol, Thing thing = null)
        {
            CompProperties_ProjectileInterceptor compProperties = def.GetCompProperties <CompProperties_ProjectileInterceptor>();

            if (compProperties != null)
            {
                GenDraw.DrawCircleOutline(center.ToVector3Shifted(), compProperties.radius);
            }
        }
Exemple #2
0
 public static bool InterceptsProjectile(CompProperties_ProjectileInterceptor props, Projectile projectile)
 {
     if (props.interceptGroundProjectiles)
     {
         return(!projectile.def.projectile.flyOverhead);
     }
     if (props.interceptAirProjectiles)
     {
         return(projectile.def.projectile.flyOverhead);
     }
     return(false);
 }