With this new unit code, units can change weapon againts different target type like AA&AG. Works like Guardian tank in RA3 for switching weapon we need give attack command with CTRL.
tiberian sun reapers did this. used net vs infantry and wild rockets vs everything else. pretty sure the original mammoth tanks in tiberian dawn would use their rockets on infantry instead of their cannons. interesting they didn't have more things like that. the threat rating node i believe was supposed to make units smarter by attacking units they can counter the best first so they dont waste their cannons on enemy infantry when they could be shooting enemy tanks. they also didnt have attack move. the reapers were terrible though since force firing made them shoot their net. making it very hard to make them shoot cloaked units. QUICK_EDIT
Joined: 13 Feb 2007 Location: C:\Westwood\ TechLevel=12
Posted: Wed Jul 18, 2018 12:01 am Post subject:
Mechacaseal wrote:
tiberian sun reapers did this. used net vs infantry and wild rockets vs everything else. pretty sure the original mammoth tanks in tiberian dawn would use their rockets on infantry instead of their cannons. interesting they didn't have more things like that. the threat rating node i believe was supposed to make units smarter by attacking units they can counter the best first so they dont waste their cannons on enemy infantry when they could be shooting enemy tanks. they also didnt have attack move. the reapers were terrible though since force firing made them shoot their net. making it very hard to make them shoot cloaked units.
For the RA1 Mammoth Tank the game would look at warhead verses and use the weapon best at damaging that armor. Mammoth Tusk use HE that dose 90% of listed damage to AP's 30% against unarmored units (infantry) _________________
It is obviously different from Mammoth or Reaper,the unit can fire against one target with 2 weapons switched as you wish?and my friend missed some of the codes,here is the whole code
Code:
[Unit]
Primary=Inflare;this is the special weapon like "F" in the guardian tank,or other weapons you like,it depends on your preference.
Secondary=105mm?this is the default weapon like 90mm Cannon in the guardian tank,or anything you prefer.
Ammo=2;ammo logic is the key to switch the weapon when you CTRL.
NoAmmoWeapon=0
NoAmmoAmount=1;When the ammo decreases (2 to 1), the weapon would turn to the primary.
Reload=90;after 90 frames' time,1.5s in game speed 5,the weapon would turn to the default weapon.
EmptyReload=10;ROF of the special weapon.
[105mm]
Ammo=0;Prevent the default weapon from switching after fire.
;this is the special weapon,the code is more complex in Warhead and Projectile.
[Inflare]
Damage=1
ROF=1
Range=8
Warhead=TarWH
Projectile=InvisibleX
IsLaser=true
IsHouseColor=false
LaserInnerColor=255,0,0
LaserOuterColor=127,0,0;0,0,0
LaserOuterSpread=40,80,80;20,40
LaserDuration=10
;To make it not fire under normal conditions,it's Verse must be 0%,to make it attack the target normally and passively,a logic of a cold door needs to be used in Ares.dll.
[TarWH]
Verses=0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%
Versus.none.ForceFire=yes
Versus.flak.ForceFire=yes
Versus.plate.ForceFire=yes
Versus.light.ForceFire=yes
Versus.medium.ForceFire=yes
Versus.heavy.ForceFire=yes
Versus.wood.ForceFire=yes
Versus.steel.ForceFire=yes
Versus.concrete.ForceFire=yes
Versus.special_1.ForceFire=yes
Versus.special_2.ForceFire=yes
Versus.none.PassiveAcquire=yes
Versus.flak.PassiveAcquire=yes
Versus.plate.PassiveAcquire=yes
Versus.light.PassiveAcquire=yes
Versus.medium.PassiveAcquire=yes
Versus.heavy.PassiveAcquire=yes
Versus.wood.PassiveAcquire=yes
Versus.steel.PassiveAcquire=yes
Versus.concrete.PassiveAcquire=yes
Versus.special_1.PassiveAcquire=yes
Versus.special_2.PassiveAcquire=yes
;To be accurate, the Primary is not a direct weapon,so we need a sub-weapon to realize the actual effect,and the Primary is just a shell.
[InvisibleX]
Inviso=yes
Image=none
AirburstWeapon=Aim
Splits=yes;the sub-weapon act as the true Primary with the Splits logic.
RetargetAccuracy=1;ensure that sub-weapon attack the same target.
Cluster=1
;here is the true weapon acts on the target.
[Aim]
Damage=1
ROF=10
Range=1
Warhead=AimWH
Projectile=Invisible
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum