From ba80f79b0b0f7e015a71b6a68d6d70cb0b39092b Mon Sep 17 00:00:00 2001 From: Exotic-Retard Date: Sun, 18 Dec 2016 16:06:20 +0000 Subject: [PATCH] Add dummy weapons to T1 maa cybran doesnt get one, it has a real ground weapon, all others stop at just outside acu range when given attack move, they also stop on finding air units. could be useful, might not, depends on how the doging works in terms of situation frequency. --- units/UAL0104/UAL0104_unit.bp | 27 +++++++++++++++++++++++++++ units/UEL0104/UEL0104_unit.bp | 27 +++++++++++++++++++++++++++ units/XSL0104/XSL0104_unit.bp | 27 +++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) diff --git a/units/UAL0104/UAL0104_unit.bp b/units/UAL0104/UAL0104_unit.bp index a913e477f8..b337e1b9b5 100644 --- a/units/UAL0104/UAL0104_unit.bp +++ b/units/UAL0104/UAL0104_unit.bp @@ -50,6 +50,7 @@ UnitBlueprint { 'VISIBLETORECON', 'RECLAIMABLE', 'OVERLAYANTIAIR', + 'DUMMYGSRWEAPON', }, Defense = { AirThreatLevel = 0.33, @@ -206,6 +207,32 @@ UnitBlueprint { Level5 = 10, }, Weapon = { + { -- special dummy weapon to make the unit stop a certain distance away + Damage = 0, + DamageFriendly = false, + FireTargetLayerCapsTable = { --what the unit will stop for, flak stops for air as well + Land = 'Air|Land|Water', + Water = 'Air|Land|Water', + }, + MaxRadius = 28, + RackBones = { + { + MuzzleBones = { + 'Turret', -- when moving to new unit, update these to something that exists on the unit + }, + RackBone = 'Turret', + }, + }, + RateOfFire = 0.5, + TargetCheckInterval = 1, + TargetPriorities = { + 'ALLUNITS', + }, + TargetRestrictDisallow = 'UNTARGETABLE', + TrackingRadius = 1.2, + Turreted = false, + SlavedToBody = false, + }, { AlwaysRecheckTarget = true, Audio = { diff --git a/units/UEL0104/UEL0104_unit.bp b/units/UEL0104/UEL0104_unit.bp index 7c2ccaefb8..ff4305e9ef 100644 --- a/units/UEL0104/UEL0104_unit.bp +++ b/units/UEL0104/UEL0104_unit.bp @@ -50,6 +50,7 @@ UnitBlueprint { 'VISIBLETORECON', 'RECLAIMABLE', 'OVERLAYANTIAIR', + 'DUMMYGSRWEAPON', }, Defense = { AirThreatLevel = 0.33, @@ -201,6 +202,32 @@ UnitBlueprint { Level5 = 10, }, Weapon = { + { -- special dummy weapon to make the unit stop a certain distance away + Damage = 0, + DamageFriendly = false, + FireTargetLayerCapsTable = { --what the unit will stop for, flak stops for air as well + Land = 'Air|Land|Water', + Water = 'Air|Land|Water', + }, + MaxRadius = 28, + RackBones = { + { + MuzzleBones = { + 'Turret', -- when moving to new unit, update these to something that exists on the unit + }, + RackBone = 'Turret', + }, + }, + RateOfFire = 0.5, + TargetCheckInterval = 1, + TargetPriorities = { + 'ALLUNITS', + }, + TargetRestrictDisallow = 'UNTARGETABLE', + TrackingRadius = 1.2, + Turreted = false, + SlavedToBody = false, + }, { AlwaysRecheckTarget = true, Audio = { diff --git a/units/XSL0104/XSL0104_unit.bp b/units/XSL0104/XSL0104_unit.bp index 837442d110..aff9d7140a 100644 --- a/units/XSL0104/XSL0104_unit.bp +++ b/units/XSL0104/XSL0104_unit.bp @@ -51,6 +51,7 @@ UnitBlueprint { 'VISIBLETORECON', 'RECLAIMABLE', 'OVERLAYANTIAIR', + 'DUMMYGSRWEAPON', }, CollisionOffsetZ = 0.2, Defense = { @@ -218,6 +219,32 @@ UnitBlueprint { Level5 = 10, }, Weapon = { + { -- special dummy weapon to make the unit stop a certain distance away + Damage = 0, + DamageFriendly = false, + FireTargetLayerCapsTable = { --what the unit will stop for, flak stops for air as well + Land = 'Air|Land|Water', + Water = 'Air|Land|Water', + }, + MaxRadius = 28, + RackBones = { + { + MuzzleBones = { + 'Turret', -- when moving to new unit, update these to something that exists on the unit + }, + RackBone = 'Turret', + }, + }, + RateOfFire = 0.5, + TargetCheckInterval = 1, + TargetPriorities = { + 'ALLUNITS', + }, + TargetRestrictDisallow = 'UNTARGETABLE', + TrackingRadius = 1.2, + Turreted = false, + SlavedToBody = false, + }, { AlwaysRecheckTarget = true, ArtilleryShieldBlocks = true,