Gamer.
  • Gamer.
  • 52.25% (Neutral)
  • Private Topic Starter
13 years ago
Is it possible in ZH to completely remove a buildable upgrade, such as countermeasures and have its effects enabled by default?

I have tried:

ArmorSet
    Conditions        = None
    Armor             = AFG_ComancheArmor
    DamageFX          = None
End
^ commenting out the default armor above

Behavior                = ArmorUpgrade ModuleTag_Armor01
    TriggeredBy           = Upgrade_AmericaCountermeasures
End
^ commenting out above code, as the AFG_ComancheArmor will be default

Behavior                = CountermeasuresBehavior ModuleTag_10
    TriggeredBy           = Upgrade_AmericaCountermeasures
    FlareTemplateName     = CountermeasureFlare
    FlareBoneBaseName     = Flare ; Name of the base flare bone (Flare01, Flare02, Flare03)
    VolleySize            = 2     ; Number of flares launched per volley (requires bones)
    VolleyArcAngle        = 60.0  ; Max angle of flare relative to forward direction (with VolleySize of 1, flare will always goes straight back).
    VolleyVelocityFactor  = 2.0   ; Shoots out flares at a stronger velocity with a higher value.
    DelayBetweenVolleys   = 1000  ; Time between flare volleys
    NumberOfVolleys       = 3     ; Number of times the volleys will fire before reloading
    ReloadTime            = 4000  ; After all volleys launched, then reloading must occur. If 0, then reloading occurs at airstrip only.
    EvasionRate           = 30%   ; With active flares, the specified percentage will be diverted.
    ReactionLaunchLatency = 0     ; Reaction between getting shot at and the firing of the first volley of countermeasures.
    MissileDecoyDelay     = 200   ; A reported missile that has been determined to hit a decoy will wait this long before acquiring countermeasures.
End
^ commenting out this line
    TriggeredBy           = Upgrade_AmericaCountermeasures
in above code.

What else can I try?
" General, do we take prisoners?
No. Kill all they send and they will stop coming.
"
Sponsor
qqqqqqqqqp
13 years ago
hmmm let me test something mk ill get back 2 you in a sec

ArmorSet
Conditions = None
Armor = AirplaneArmor
DamageFX = None
End
ArmorSet
Conditions = PLAYER_UPGRADE
Armor =

CountermeasuresAirplaneArmor
DamageFX = None
End


I do belive tht all u have to do is switch the armor


ArmorSet
Conditions = None
Armor = CountermeasuresAirplaneArmor (put this here)
DamageFX = None
End
(I and i do belive u have to del this or it might double up the things i think. ArmorSet
Conditions = PLAYER_UPGRADE
Armor =

CountermeasuresAirplaneArmor
DamageFX = None
End )
If this dont do it then well i gess i dont know but thts how i would do it. hope this helps .
9Q_1P at your service. Moddin help and mod maker ranges from paradrop planes, aircraftcarriers and yes snow men with death lazer eyes
Want a peek? Visit this page
Advanced warfare 
Gamer.
  • Gamer.
  • 52.25% (Neutral)
  • Private Topic Starter
13 years ago
Thanks for the quick response :)

I'm sorry to report that it didn't work :(
It looks like the armor is separate from the countermeasures functionality but is triggered to be changed when you build the upgrade (so your aircraft has different armor when it has countermeasures).
" General, do we take prisoners?
No. Kill all they send and they will stop coming.
"
qqqqqqqqqp
13 years ago
well i tried XD

9Q_1P at your service. Moddin help and mod maker ranges from paradrop planes, aircraftcarriers and yes snow men with death lazer eyes
Want a peek? Visit this page
Advanced warfare 
CommieDog
13 years ago
You could hack it by having a GrantUpgradeCreate module on the airfield that grants the Countermeasures upgrade when the Airfield is built. That would effectively be having the upgrade at start.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Gamer.
  • Gamer.
  • 52.25% (Neutral)
  • Private Topic Starter
13 years ago
Thanks CommieDog. That gave me the exact functionality I wanted :)

It is a little glitchy as the GrantUpgradeCreate doesn't trigger when an airfield is on the map through worldbuilder.

I'm not overly worried about that though.

Thanks again CommieDog 🙂
" General, do we take prisoners?
No. Kill all they send and they will stop coming.
"
CommieDog
13 years ago
If you're using WB, you can always use a script to grant the upgrade.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you