Posted by: joewijoyo - Tuesday, April 9, 2013 5:47:05 AM
Hey guys, I was just wondering, since the scudstorm and particle cannon basically has weapon data, can i make them into a base defense (like patriot missile) where i can just click on which enemy to fire upon instead of it acting like a superweapon?
Posted by: precision_bomber - Tuesday, April 9, 2013 6:35:56 AM
Like seriously?
But if you're willing to... Then here goes.
The SCUD Strom is easily done.
Just Add 'CAN_ATTACK' on the KindOf Tag.
And then...
[code=cpp]
Behavior = AIUpdateInterface ModuleTag_xx
AutoAcquireEnemiesWhenIdle = Yes ;ATTACK_BUILDINGS; defensive weapon
MoodAttackCheckRate = 250
End
[/code]
For Particle Cannon its hard.
It requires a whole different mess of codes.
The Particle Cannon doesn't have a Weapon Data.
The ParticleCannonUpdate Module of the Particle Cannon does the damage.
The Fire it leaves has a Weapon Data, but its just the fire when the laser hits the ground.
Posted by: joewijoyo - Tuesday, April 9, 2013 7:47:47 AM
hahaha i loved your first line xD.
yeah i want to make the US overpowered but with more expensive units because it's depiction is so dumb in this game.
thanks alot! the scud storm should be sufficient lol