HarleyZed
  • HarleyZed
  • 50.25% (Neutral)
  • Private Topic Starter
10 years ago
So basically, I am modifying the weapons of units just for fun.
I tried to make the scorpion tank an ultimate tank by changing things and whatnot.
I added a few stuff to the scorpion missile for it to be able to attack aircrafts.
Here's the code:

Weapon ScorpionMissileWeapon
PrimaryDamage = 100.0
PrimaryDamageRadius = 5.0
SecondaryDamage = 80.0
SecondaryDamageRadius = 25.0
ScatterRadiusVsInfantry = 10.0 ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
AttackRange = 150.0
MinimumAttackRange = 40.0
DamageType = EXPLOSION ; ignored for projectile weapons
DeathType = EXPLODED
WeaponSpeed = 900 ; ignored for projectile weapons
ProjectileObject = ScorpionMissile
ProjectileExhaust = MissileExhaust
VeterancyProjectileExhaust = HEROIC HeroicMissileExhaust
FireFX = FX_BuggyMissileIgnition
FireSound = ScorpionMissileWeapon
RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
DelayBetweenShots = 650 ; time between shots, msec
ClipSize = 2 ; how many shots in a Clip (0 == infinite)
ClipReloadTime = 700 ; how long to reload a Clip, msec
AutoReloadsClip = Yes
AntiAirborneVehicle = Yes
AntiAirborneInfantry = Yes

ProjectileDetonationFX = WeaponFX_RocketBuggyMissileDetonation


This is probably something a 10 year old can solve, but apparently, I can't.
Any help?
Sponsor
klingondragon
10 years ago
We can't solve a problem unless you tell us what is wrong.

Also in the future please use the [code=plain] tag for code.
HarleyZed
  • HarleyZed
  • 50.25% (Neutral)
  • Private Topic Starter
10 years ago
Oops.
Forgot to write that. xD
The scorpions still don't want to attack aircrafts.
The bold text on the code are the ones I added in.
klingondragon
10 years ago
are you selecting aircraft as attack targets or letting them choose their own?
HarleyZed
  • HarleyZed
  • 50.25% (Neutral)
  • Private Topic Starter
10 years ago
Yes. I try to select the aircrafts, but it gives me the "no" cursor.
klingondragon
10 years ago
you probably have to edit the unit itself as well as the weapon ini
Zatsupachi
10 years ago
Okay...

Do you have this on the unit's WeaponSet:


PreferredAgainst = SECONDARY VEHICLE AIRCRAFT

"It's precision_bomber."
Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mods/death-label/downloads/death-label-ver-099 
Next Episode:
precision_bomber's Zero Hour SCIENCE!
HarleyZed
  • HarleyZed
  • 50.25% (Neutral)
  • Private Topic Starter
10 years ago
Eh, a quick update on my problem:
It was actually an extremely dumb mistake ._. (I'm very new to modding)
I forgot to place the
AntiAirborneVehicle = Yes
AntiAirborneInfantry = Yes
on ScorpionMissileWeaponPlusTwo...
So, yeah... Sorry for that. >_<