View Single Post
Old 09-15-2003, 03:04 AM   #10 (permalink)
CodeCat
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

Well, the weapons already have the same range (150) so that's not what causes it. I've tried this out though:

Code:
WeaponSet
    Conditions        = None
    
    Weapon            = PRIMARY OverlordTankGun
    PreferredAgainst  = PRIMARY VEHICLE STRUCTURE
    AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
    
    Weapon            = SECONDARY MammothTuskMissile
    PreferredAgainst  = SECONDARY INFANTRY ;AIRCRAFT
    AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
  End
So all I did was remove the AIRCRAFT parameter, and then suddenly it stopped using the cannon against infantry, like I wanted it to do. However, it still also used the rockets (as well as the cannons) against everything else, and this makes it rediculously powerful. So the rockets should not be allowed to fire on vehicles or buildings. I know I could just adjust the damage of the rockets to damage only infantry and aircraft, but I don't have any free damage types left so that's going to be hard.

EDIT: Ok, I've tried commenting out the STRUCTURE parameter like I did with the AIRCRAFT, and it attacked vehicles with the cannon only. So it seems the game doesn't parse the line properly if there is more than one parameter. This also explains how the comanche does it. However, I want it to attack BOTH vehicles and structures with only the cannons. So I'm kinda stuck here.
CodeCat is offline   Reply With Quote