Thread: Two Problems
View Single Post
Old 04-21-2006, 10:33 AM   #1 (permalink)
Jarmonator
Junior Member
 
Join Date: Feb 2006
Posts: 21
Default Two Problems

I'm still working on a project to convert nearly totally 2 factions, and I've stumbled upon these problems:

1) I've converted a Chinese Tank Hunter into a rocket trooper, who shoots both aircrafts and ground units. The tricky problem is that they shoot BOTH rockets when attacking against aircrafts; they shoot towards them with air-to-air rocket like they have to, but they ALSO shoot a normal anti-tank rocket below air units near ground. The code of rocket trooper looks like this:

WeaponSet
Conditions = None
Weapon = PRIMARY ChinaInfantryTankHunterMissileLauncher
Weapon = SECONDARY StingerMissileWeaponAir
End
ArmorSet
Conditions = None
Armor = HumanArmor
DamageFX = InfantryDamageFX
End


...So how to fix this?

2) I'm trying to combine a Command Center and Supply Center, so their action principles are in one structure; so there can be built both construction units and supply collectors. I've managed into this far, but how to make the structure to behave like a supply center? I mean that when the supply unit has loaded itself full of crates and is ready to go to empty the load, when selected, they can unload themselves into the current combined structure (the triangular enter cursor should appear).

And here's piece code of my structure (it's a converted Chinese command center):

; *** ENGINEERING Parameters ***
RadarPriority = STRUCTURE
KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE CASH_GENERATOR SCORE COMMANDCENTER CAPTURABLE FS_FACTORY AUTO_RALLYPOINT MP_COUNT_FOR_VICTORY CANNOT_BUILD_NEAR_SUPPLIES

Body = StructureBody ModuleTag_07
MaxHealth = 3500.0
InitialHealth = 3500.0
End

Behavior = PreorderCreate ModuleTag_PreorderCreate
End
Jarmonator is offline   Reply With Quote