#disconnectFromParent: [core] name: ADE tags:Mega轰炸机 class: CustomUnitMetadata price: 2500 maxHp: 18100 mass: 2000 shieldRegen: 0 displayText: Mega-Bomber APX displayDescription: Crazy output bombardment on the ground\nAfter the energy is exhausted, you need to manually recharge for 40 seconds before you can continue bombing\n[One recharge requires 10,000 gold coins]\nSelf-recovery\nHeavy armor, slow speed\nHP volume is lower 1000 enable emergency repair. displayText_zh:Mega-轰炸机 APX displayDescription_zh: 对地疯狂输出轰炸\n能量耗完之后需要手动重新充能40秒后才可以继续轰炸\n【充能一次需要10000金币】\n自我回血\n重装甲,慢速度\n血量低于1000启用紧急修复 techLevel: 3 buildSpeed: 70s availableInDemo: true radius: 0 displayRadius: 0 isBio: false #softCollisionOnAll: 3 softCollisionOnAll:24 selfRegenRate:0.01 builtFrom_1_name: experimentalLandFactoryfalse builtFrom_1_pos: 6 energyMax: 20 energyRegen: 0.00059 energyNeedsToRechargeToFull: true [graphics] total_frames: 1 image:ROOT:/IMGS/APQ-Lv3.png image_wreak: NONE image_turret: NONE #scaleImagesTo: 20 #scaleTurretImagesTo: 9 image_shadow: AUTO shadowOffsetX:1 shadowOffsetY:1 movementEffect: CUSTOM:projectileTrail movementEffectRate: 4 [attack] canAttack: true canAttackFlyingUnits: false canAttackLandUnits: true canAttackUnderwaterUnits: true isMelee: true turretSize: 20 turretTurnSpeed: 1.5 maxAttackRange: 320 shootDelay: 280 attackMovement: bomber [turret_1] #bomber invisible: true x: 21 y: 35 idleDir:0 canAttackFlyingUnits: false canAttackLandUnits: true canAttackUnderwaterUnits: false projectile: 1 size: 1.1 turnSpeed: 20 energyUsage: 1 [turret_2] #bomber invisible: true x: -21 y: 35 idleDir:0 canAttackFlyingUnits: false canAttackLandUnits: true canAttackUnderwaterUnits: false [turret_3] #bomber invisible: true x: 21 y: 35 idleDir:0 canAttackFlyingUnits: false canAttackLandUnits: true canAttackUnderwaterUnits: false projectile: 1 size: 1.1 turnSpeed: 20 energyUsage: 1 [turret_4] #bomber invisible: true x: -21 y: 35 idleDir:0 canAttackFlyingUnits: false canAttackLandUnits: true canAttackUnderwaterUnits: false projectile: 1 size: 1.1 turnSpeed: 20 energyUsage: 1 [turret_5] #bomber invisible: true x: 21 y: 35 idleDir:0 canAttackFlyingUnits: false canAttackLandUnits: true canAttackUnderwaterUnits: false projectile: 1 size: 1.1 turnSpeed: 20 energyUsage: 1 [turret_6] #bomber invisible: true x: -21 y: 35 idleDir:0 canAttackFlyingUnits: false canAttackLandUnits: true canAttackUnderwaterUnits: false [projectile_1] directDamage: 100 life: 250 speed: 3.0 targetSpeed: 3.0 drawSize: 1 trailEffect: false largeHitEffect: true targetGround: true areaDamage: 300 areaRadius: 100 image: ROOT:/IMGS/VC.png #for laser defence deflectionPower: 3 [effect_projectileTrail] createWhenZoomedOut: false priority:low image: ROOT:/IMGS/Light1.png life:160 fadeOut: true attachedToUnit: false color: #63e6e8 fadeInTime:2 scaleFrom:10 scaleTo:0 alpha: 0.2 drawUnderUnits:true ySpeedRelative:-0.5 atmospheric: true [movement] movementType: AIR moveSpeed: 2.5 moveAccelerationSpeed: 0.01 moveDecelerationSpeed: 0.01 maxTurnSpeed: 1.2 turnAcceleration: 0.04 moveSlidingMode :false moveIgnoringBody:false moveSlidingDir: 25 slowDeathFall: true [hiddenAction_下层起飞] autoTrigger: if not self.hasParent(withTag='下层起飞') and self.hasParent() disconnectFromParent: true [hiddenAction_巡航] autoTrigger: if self.hasUnitInTeam(withTag='下层甲板', withinRange=1000) and not self.hasActiveWaypoint(type='follow') and not self.hasParent() clearAllWaypoints: true addWaypoint_type: attackmove addWaypoint_target_nearestUnit_tagged: 下层甲板 addWaypoint_target_nearestUnit_team: own [hiddenAction_返航] autoTrigger: if not self.hasUnitInTeam(withTag='下层甲板', withinRange=1000) and not self.hasActiveWaypoint(type='follow') and not self.hasParent() clearAllWaypoints: true addWaypoint_type: follow addWaypoint_target_nearestUnit_tagged: 下层甲板 addWaypoint_target_nearestUnit_team: own addWaypoint_maxTime: 1s [hiddenAction_脱离] autoTrigger: if (self.hasUnitInTeam(withTag='下层起飞') and not self.hasActiveWaypoint(type='loadInto') and not self.hasParent()) or self.energy(empty=true) clearAllWaypoints: true addWaypoint_type: loadInto addWaypoint_target_nearestUnit_tagged: 下层甲板 addWaypoint_target_nearestUnit_team: own [hiddenAction_死亡] autoTrigger: if not self.hasUnitInTeam(withTag='下层甲板') addResources=hp=-9999 [hiddenAction_无影] autoTrigger: if self.hasParent() convertTo: ADED [hiddenAction_死v亡] autoTrigger: if numberOfUnitsInTeam(withTag='Mega轰炸机', greaterThan=18) addResources=hp=-9999