Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 12:00 am
All times are UTC + 0
IvanBomb.DestroysBridges doesn't work
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [8 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
gameaddict11707
Grenadier


Joined: 15 Jul 2011

PostPosted: Wed Jul 17, 2013 11:34 pm    Post subject:  IvanBomb.DestroysBridges doesn't work Reply with quote  Mark this post and the followings unread

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.

What am I doing wrong?!

(Hopefully) Relevant codes:

Code:

[CABHUT]
UIName=Name:CABHUT
Name=Bridge repair hut
Armor=BridgeHutArmor
Strength=2000
Immune=yes
LegalTarget=yes
Nominal=yes
TechLevel=-1
Repairable=true
Selectable=yes
Insignificant=yes
BridgeRepairHut=yes
Adjacent=0
BaseNormal=no
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
ThreatPosed=0

[ArmorTypes]
BridgeHutArmor=0%; Bridge Repair Hut Armor

[GHOST]
UIName=Name:GHOST
Name=Navy SEAL
Image=SEAL
Category=Soldier
Prerequisite=GAPILE,GAAIRC
Primary=MP5
Secondary=Pioneer; IvanBomb C4 Weapon
OpenTransportWeapon=0
NavalTargeting=4
LeadershipRating=8
AlternateArcticArt=yes
C4=no
Assaulter=yes
CrushSound=InfantrySquish
Crushable=yes
TiberiumProof=yes
Strength=130
Armor=flak
TechLevel=9
Pip=blue
Sight=6
Speed=7
Owner=Americans,Alliance,French
AllowedToStartInMultiplayer=no
Cost=1100
Soylent=550
Points=50
IsSelectableCombatant=yes
VoiceSelect=SealSelect
VoiceMove=SealMove
VoiceAttack=SealAttackCommand
VoiceFeedback=
VoiceSpecialAttack=SealSpecialAttack
CreateSound=SealCreated
DieSound=SealDie
EnterWaterSound=TanyaEntersWater
LeaveWaterSound=TanyaLeavesWater
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
SpeedType=Amphibious
MovementZone=AmphibiousDestroyer
ThreatPosed=25
SpecialThreatValue=1
ImmuneToVeins=yes
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,SCATTER,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF,FASTER
Size=1
DetectDisguise=no
ElitePrimary=MP5E
EliteSecondary=PioneerE
IFVMode=4
UseOwnName=true

[Pioneer]
Damage=1
ROF=100
Range=1.5
CellRangefinding=yes
FireOnce=yes
Projectile=InvisibleLow
Warhead=PioneerWH; Spawner
Speed=100
FireInTransport=no
IvanBomb.Warhead=SuperPioneerWH; Explosion
IvanBomb.Damage=450
IvanBomb.Detachable=yes
IvanBomb.DestroysBridges=yes; THIS SHOULD WORK. WHY DOESN'T IT WORK?!
IvanBomb.Delay=150
IvanBomb.AttachSound=PioneerC4Place
IvanBomb.TickingSound=PioneerC4BeepLoop
IvanBomb.Image=C4CURS
IvanBomb.FlickerRate=8

[PioneerWH]; Spawner
Verses=1%,1%,1%,100%,100%,100%,100%,100%,100%,1%,100%
IvanBomb=yes
Versus.BridgeHutArmor=100%

[SuperPioneerWH]; Explosion
Verses=100%,100%,100%,100%,100%,80%,100%,100%,80%,100%,100%
ProneDamage=100%
InfDeath=2
AnimList=SAPEXPL
Versus.BridgeHutArmor=100%

Back to top
View user's profile Send private message
OmegaBolt
President


Joined: 21 Mar 2005
Location: York, England

PostPosted: Thu Jul 18, 2013 10:32 am    Post subject: Reply with quote  Mark this post and the followings unread

I don't know but I also have this issue and do not use custom armour on the bridge hut.

Back to top
View user's profile Send private message Send e-mail
mevitar
Missile Trooper


Joined: 31 Dec 2010

PostPosted: Thu Jul 18, 2013 11:01 am    Post subject: Reply with quote  Mark this post and the followings unread

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! #Tongue

Back to top
View user's profile Send private message
gameaddict11707
Grenadier


Joined: 15 Jul 2011

PostPosted: Thu Jul 18, 2013 5:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.

Back to top
View user's profile Send private message
mevitar
Missile Trooper


Joined: 31 Dec 2010

PostPosted: Thu Jul 18, 2013 7:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Oh, that looked like if you had it set in MP5 to non-0%. I was wrong then. #Tongue

Back to top
View user's profile Send private message
gameaddict11707
Grenadier


Joined: 15 Jul 2011

PostPosted: Thu Jul 18, 2013 8:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

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. #Mad

[GHOST]
UIName=Name:GHOST
Name=Navy SEAL
Image=SEAL
Category=Soldier
Prerequisite=GAPILE,GAAIRC
Primary=MP5
Secondary=Pioneer
OpenTransportWeapon=0
;;;NavalTargeting=4
LeadershipRating=8
AlternateArcticArt=yes
C4=no
Assaulter=yes
CrushSound=InfantrySquish
Crushable=yes
TiberiumProof=yes
Strength=130
Armor=flak
TechLevel=9
Pip=blue
Sight=6
Speed=7
Owner=Americans,Alliance,French
AllowedToStartInMultiplayer=no
Cost=1100
Soylent=550
Points=50
IsSelectableCombatant=yes
VoiceSelect=SealSelect
VoiceMove=SealMove
VoiceAttack=SealAttackCommand
VoiceFeedback=
VoiceSpecialAttack=SealSpecialAttack
CreateSound=SealCreated
DieSound=SealDie
EnterWaterSound=TanyaEntersWater
LeaveWaterSound=TanyaLeavesWater
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
SpeedType=Amphibious
MovementZone=AmphibiousDestroyer
ThreatPosed=25
SpecialThreatValue=1
ImmuneToVeins=yes
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,SCATTER,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF,FASTER
Size=1
DetectDisguise=no
ElitePrimary=MP5E
EliteSecondary=PioneerE
IFVMode=4
UseOwnName=true

[MP5]
Damage=35
ROF=20
Range=5.75
Projectile=InvisibleLow
Speed=100
Warhead=HollowPointSEAL
Report=SealAttack
OpenToppedAnim=GUNFIRE

[HollowPointSEAL]
Verses=100%,100%,70%,0%,0%,0%,0%,0%,0%,35%,100%
InfDeath=1
AnimList=PIFFPIFF
ProneDamage=100%
Bullets=yes

[Pioneer]
Damage=1
ROF=100
Range=1.5
CellRangefinding=yes
FireOnce=yes
Projectile=InvisibleLow
Warhead=PioneerWH
Speed=100
FireInTransport=no
SabotageCursor=yes
IvanBomb.Warhead=SuperPioneerWH
IvanBomb.Damage=450
IvanBomb.Detachable=yes
IvanBomb.DestroysBridges=yes
IvanBomb.Delay=150
IvanBomb.AttachSound=PioneerC4Place
IvanBomb.TickingSound=PioneerC4BeepLoop
IvanBomb.Image=C4CURS
IvanBomb.FlickerRate=8

[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?...

Back to top
View user's profile Send private message
mevitar
Missile Trooper


Joined: 31 Dec 2010

PostPosted: Thu Jul 18, 2013 10:36 pm    Post subject: Reply with quote  Mark this post and the followings unread

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")? #Tongue
PioneerWH with 0% against "none" won't be able to attack it, then.

Back to top
View user's profile Send private message
gameaddict11707
Grenadier


Joined: 15 Jul 2011

PostPosted: Thu Jul 18, 2013 11:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

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

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [8 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1785s ][ Queries: 11 (0.0095s) ][ Debug on ]