Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline HarleyZed  
#1 Posted : Sunday, July 12, 2015 2:55:16 AM(UTC)
HarleyZed
Private
Joined: 5/7/2015(UTC)
Posts: 9
Philippines

Thanks: 3 times
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:

Quote:
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
Offline klingondragon  
#2 Posted : Sunday, July 12, 2015 3:11:16 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
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.
Offline HarleyZed  
#3 Posted : Sunday, July 12, 2015 3:57:46 AM(UTC)
HarleyZed
Private
Joined: 5/7/2015(UTC)
Posts: 9
Philippines

Thanks: 3 times
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.
Offline klingondragon  
#4 Posted : Sunday, July 12, 2015 4:33:40 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
are you selecting aircraft as attack targets or letting them choose their own?
Offline HarleyZed  
#5 Posted : Sunday, July 12, 2015 4:42:16 AM(UTC)
HarleyZed
Private
Joined: 5/7/2015(UTC)
Posts: 9
Philippines

Thanks: 3 times
Yes. I try to select the aircrafts, but it gives me the "no" cursor.
Offline klingondragon  
#6 Posted : Sunday, July 12, 2015 5:31:27 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
you probably have to edit the unit itself as well as the weapon ini
Offline Zatsupachi  
#7 Posted : Sunday, July 12, 2015 11:01:23 AM(UTC)
Zatsupachi
Major
Joined: 3/27/2015(UTC)
Posts: 490

Thanks: 5 times
Was thanked: 213 time(s) in 155 post(s)
Okay...

Do you have this on the unit's WeaponSet:

Code:

PreferredAgainst = SECONDARY VEHICLE AIRCRAFT
"It's precision_bomber."

Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mod...oads/death-label-ver-099

Next Episode:
precision_bomber's Zero Hour SCIENCE!
thanks 1 user thanked Zatsupachi for this useful post.
Gameanater on 7/12/2015(UTC)
Offline HarleyZed  
#8 Posted : Friday, July 17, 2015 7:17:33 AM(UTC)
HarleyZed
Private
Joined: 5/7/2015(UTC)
Posts: 9
Philippines

Thanks: 3 times
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. >_<
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.