Posted: Wed Jul 17, 2013 11:34 pm Post subject:
IvanBomb.DestroysBridges doesn't work
I've tried giving the Navy SEAL new C4 using custom IvanBombs. But, the tag "IvanBomb.DestroysBridges" doesn't work; I get a "no movement" cursor when I hover my mouse over the Bridge Repair Hut.
Even after setting a custom ArmorType on the hut that only the SEAL's C4 weapon can target, I still get the "no movement" cursor. But, if I set "C4=yes", then it uses that C4 against all structures, instead of just the BRH.
Setting "Ivan=yes" just gives the SEAL the Ivan's dynamite cursor and totally eschews his Secondary; he uses the MP5 against everything, regardless of its effectiveness, or lack thereof.
I don't quite understand what are you trying to achieve. It looks as if you didn't want the secondary weapon to be able to target buildings except the bridge repair huts, and yet you set your bomb weapon warhead to be able to target everything.
I bet that MP5 weapon has HollowPoint warhead with verses that look like this:
Code:
Verses=200%,100%,100%,1%,1%,1%,1%,1%,1%,1%,100%
Of course this will make the SEAL attack everything with primary weapon, because that's how this game works - it will make the unit use Secondary weapons only on targets it cannot attack with Primary, and yours can attack everything with Primary (except for the hut). This will happen regardless if you set "Ivan=yes" or "no" on the unit.
C4=yes is a special case that bypasses the check on structures with CanC4=no, and allows a unit with C4=yes to put C4 charges on them (not ivan bombs! setting C4=yes won't help you).
And the reason why you can't put the ivan bomb on the bridge repair hut is because NavalTargeting=4 makes the unit able to use its Secondary weapon only on naval non-organic units. Adding SabotageCursor=yes to the bomb weapon should fix it, but if you want the bomb to be usable on anything else, then you have to change the primary weapon's warhead! QUICK_EDIT
What I was trying to do was use Ares' Custom IvanBombs to give the SEALs and Tanya a different, easier-to-use C4 instead of what the game does using the C4 flag. Basically what Mental Omega's doing for its C4-armed infantry (which inspired my own attempts).
I did give the MP5 a custom warhead with 0% on all vehicle & structure Verses= though. And, the warhead with 100% on all Verses= is the explosion after IvanBomb.Delay is up, rather than the one that places the bomb. I set it up that way to be absolutely sure there wouldn't be issues with the bridge exploding when it did get planted.
You're entirely right about the SabotageCursor flag though. I used that on the C4 IvanBomb and it works! NavalTargeting was left unchanged. QUICK_EDIT
Welp, I tried again, and it doesn't work all of a sudden! I've tried removing NavalTargeting, re-adding it, fiddling with SabotageCursor and Verses, but NONE OF IT ZTYPING WORKS.
[PioneerWH];;; PLANTING the C4 (when SEAL/Tanya/etc. fires their Secondary)
IvanBomb=yes
Verses=0%,0%,0%,100%,100%,100%,100%,100%,100%,0%,100%
[SuperPioneerWH];;; DETONATING the C4 (when it explodes after IvanBomb.Delay is finished)
Verses=100%,100%,100%,100%,100%,100%,100%,100%,100%,100%,100%
InfDeath=6
AnimList=SAPEXPL
EDIT: Just tried for the umpteenth time, WITH the custom ArmorType on the Bridge Repair Hut, and it works! Who'd have thought?... QUICK_EDIT
What armor type did you give the hut when it didn't work? You know that if you don't specify any armor type for an object, it defaults to "none" (as in, the armor type named "none")?
PioneerWH with 0% against "none" won't be able to attack it, then. QUICK_EDIT
I had the tag removed during the times it didn't work.
I never knew that about the armor defaulting to "none". Huh. And here I thought that WW hardcoded the hut to have some sort of crazy, inaccessible, nonexistent armortype that nothing can target or deal damage to. Because, they do weird crap like that. _________________ aka SavebearingBoss QUICK_EDIT
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