Here's the goal:
an ACU-like unit that starts with a TML (max 1 in storage, manual targeting, like the missile UEF ACU or sera SACUs have)
then can pick between 2 enhancements, either one that gives it Billy nuke,
or another that instead gives it an EMP nuke (similar to the one from Gargantuan t4 transport from Blackops:Unleashed but with longer effect)
the difference between the 2 nukes is in visual, destruction and stun (billy has a huge blast, much more dmg, no stun while EMP has a very small blast, low dmg, big long stun). And the unit can only have 1 of the nukes, not both.
PROBLEM: the game does not react to 2 weapons having the same RULEUCC command (RULEUCC_Nuke and 'RULEUCC_SiloBuildNuke),
as in, it can only be applied to ONE nuke weapon (to be precise, the first nuke weapon in the .bp).
Disabling/enabling nuke weapons via enhancements in the unit's script then adding the RULEUCC commands for the enhancement in question did not help, the game still only registers 1 nuke type as using the R.commands, even though 2 weapons are classified as nukes.
POSSIBLE SOLUTION: to have just 1 nuke weapon but edited (EMP one, because it has less visuals), then, if the EMP nuke enhancement is selected, no edit is needed, but if the Billy enhancement is selected instead, then edit the EMP nuke (remove stun and either CHANGE the projectile type to Billy's projectile, or use a command like OnWeaponFire (or maybe OnImpact?) that would spawn and immediately kill an ACU or a Paragon in the point of impact and remove the wreck, thus creating a nuke effect that would mask the EMP nuke's effect and would look like a Billy nuke was fired and not an EMP nuke).
Now...does anyone know a better way, ideally one that lets me have different nuke types using the same RULEUCC button? or perhaps of a mod that has made a different nuke type (with a different RULEUCC command) that I might look into?
And if not, what would be the easiest way to add/remove, with an enhancement, a stun buff that's inside a weapon specification of a units blueprint? I know how to edit hp, regen, max ranges, RoF with enhancements, but I have not yet seen it be done for stun buff of a certain weapon.
Also, how does one go about changing the ProjectileId value with enhancements?
Much obliged,
DDDXStatistics: Posted by DDDX — 11 Jan 2019, 18:44
]]>