AA Only Gun Tower?
Posted: Mon Apr 23, 2012 3:31 pm
How exactly do I make a gun tower that doesn't target ground units? OR can't aim down? Here's the ODF I have so far:
Code: Select all
[GameObjectClass]
geometryName = "abaagn00.xsi"
glowTexture = "abaagna0.pic"
geometryScale = 1.25
classLabel = "turret"
collisionRadius = 10.0
scrapCost = 6
scrapValue = 4
maxHealth = 5000
maxAmmo = 10000
unitName = "Gun Tower"
aiName = "GunTowerFriend"
aiName2 = "GunTowerEnemy"
heatSignature = 2.0
imageSignature = 1.0
radarSignature = 1.0
isAssault = 0
ownsTerrain = 1
canCollide = 1
powercost = 0
GameObjectClassServiceMask = 1
GameObjectClassServiceMatch = 1
GameObjectClassServiceProvides = 1
buildSupport = "F"
buildRequire = "A"
weaponMask = 01111
weaponHard1 = "hp_cannon_01"
recoilName1 = "Recoil_R"
weaponName1 = "gBGTflaka"
weaponAssault1 = 0
weaponHard2 = "hp_cannon_02"
recoilName2 = "Recoil_L"
weaponName2 = "gBGTflakb"
weaponAssault2 = 0
weaponHard3 = "hp_cannon_01"
recoilName3 = "Recoil_R"
weaponName3 = "gBGTflakc"
weaponAssault3 = 0
weaponHard4 = "hp_cannon_02"
recoilName4 = "Recoil_L"
weaponName4 = "gBGTflakd"
weaponAssault4 = 0
turretCount = 2
turretName1 = "turret_y"
turretName2 = "turret_x"
[BuildingClass]
soundAmbient = "abtowee0.wav"
[CraftClass]
rangeScan = 400
periodScan = 0.0
velocJam = 0.0
//weaponPitch = 1.5
steerFactor = 0.5
engageRange = 400
MinWeaponPitch = 0.5
MaxWeaponPitch = 1.5
MustBeLinedUpToHit = true
GunTowerProcessCheckCantHit = true
DoWeaponCanHitCheck = true
SitAttackCheckAbleToHit = true
FireWhenCanHitFriends = true
attackTask = "AssaultTankAttack"
subAttackTask = "SupportSubAttack"
subAttackClass = "ANS"
[TurretCraftClass]
omegaTurret = 2.0
detectRange = 200
pitchMin = 0.5
pitchMax = 1.5