Jump to content
Sign in to follow this  
ztz2019

Why vehicle transportcontain could immune clear building attack?

Recommended Posts

I searched opencontain.xsd and garrisoncontain.xsd, I found only the garrisoncontain.xsd has an attribute "immunetoclearbuildingattacks", so how transportcontain could immune clearbuildingattacks?

 

And I wanna make an structure that with two status:

one can let passengers attack but can't proof flame or grenade, and another can't attack but immune clearattack.

 

Anyone can teach me?

 

With KW enhanced statusbitsupgrade module function, I can control can_attack or not by applytocontained handle, but how to change immune or not?

Share this post


Link to post

Isnt TransportContain immun by default? As far as I remember, you could never clear out an APC with flamethrowers.

Share this post


Link to post

Iirc the following decides if you can hurt units inside a garrison slot:

 

ObjectStatusOfContained="UNSELECTABLE ENCLOSED CAN_ATTACK" from the APC

 

ObjectStatusOfContained="UNSELECTABLE CAN_ATTACK" from the gdi foxhole/pillbox

 

If INCLOSED, the unit takes no damage from outside sources.

Edited by Ravendark

Share this post


Link to post

Iirc the following decides if you can hurt units inside a garrison slot:

 

ObjectStatusOfContained="UNSELECTABLE ENCLOSED CAN_ATTACK" from the APC

 

ObjectStatusOfContained="UNSELECTABLE CAN_ATTACK" from the gdi foxhole/pillbox

 

If INCLOSED, the unit takes no damage from outside sources.

So just clean enclosed status is ok to change immune?

Share this post


Link to post

Iirc the following decides if you can hurt units inside a garrison slot:

 

ObjectStatusOfContained="UNSELECTABLE ENCLOSED CAN_ATTACK" from the APC

 

ObjectStatusOfContained="UNSELECTABLE CAN_ATTACK" from the gdi foxhole/pillbox

 

If INCLOSED, the unit takes no damage from outside sources.

I've just tried that, it doesn't work;

I believe it has to do with the HordeGarrisonContain & HordeTransportContain modules

Edited by someguy11

Share this post


Link to post

Idd my mistake, thought that did the trick....could've sworn i used that way at one time or another.

 

Adding

 

ImmuneToClearBuildingAttacks="true"

 

does seem to work.

 

tested this on the gdi diginbuilding.

Share this post


Link to post

As for getting 2 different garrison buildings, you can always use a replaceself upgrade, one into a fire+clear and another into no-fire+no-clear.

 

You could also try to add

 

<xs:element name="UpgradeRequired" type="UpgradeTemplateRef" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="UpgradeForbidden" type="UpgradeTemplateRef" minOccurs="0" maxOccurs="unbounded" />

 

to the hordgarrisoncontain schematic...iirc the opencontain inheritcs from the updatemodule which excepts gamedpendancy.

I use this in my jetaiupdate to switch between orca like flight and firehawk like flight. You might be able to trigger the hordegarrison contain module like this aswell. Needs testing, haven't tried this with that module.

Share this post


Link to post

As for getting 2 different garrison buildings, you can always use a replaceself upgrade, one into a fire+clear and another into no-fire+no-clear.

 

You could also try to add

 

<xs:element name="UpgradeRequired" type="UpgradeTemplateRef" minOccurs="0" maxOccurs="unbounded" />

<xs:element name="UpgradeForbidden" type="UpgradeTemplateRef" minOccurs="0" maxOccurs="unbounded" />

 

to the hordgarrisoncontain schematic...iirc the opencontain inheritcs from the updatemodule which excepts gamedpendancy.

I use this in my jetaiupdate to switch between orca like flight and firehawk like flight. You might be able to trigger the hordegarrison contain module like this aswell. Needs testing, haven't tried this with that module.

How to avoid contained passenger removed when building replace?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×