Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <GameObject id="SovietBunker" inheritFrom="BaseStructure" SelectPortrait="Portrait_SovietBunkerIII" ButtonImage="Portrait_SovietBunkerIII" Side="NOD" EditorSorting="STRUCTURE" BuildCost="1500" BuildTime="15" CommandSet="GarrisonableNeutralFortifiedBuildingCommandSet" KindOf="STRUCTURE SELECTABLE IMMOBILE CAN_CAST_REFLECTIONS FS_BASE_DEFENSE GARRISON AUTO_ACQUIRABLE_BY_AI COVER CAN_SEE_THROUGH_STRUCTURE GARRISONABLE_UNTIL_DESTROYED RESIST_EMP AUTO_RALLYPOINT" PlacementViewAngle="315d" CampnessValue="=$CAMPNESS_DEFENSIVE_STRUCTURE" ProductionQueueType="OTHER_STRUCTURE" BuildPlacementTypeFlag="OTHER_STRUCTURE" EditorName="SovietBunker" WeaponCategory="LIGHTNING" TypeDescription="Type:SovietBunker" Description="Desc:SovietBunker">
- <DisplayName xai:joinAction="Replace">Name:SovietBunker</DisplayName>
- <GameDependency>
- <RequiredObject>NODHandOfNOD</RequiredObject>
- </GameDependency>
- <ArmorSet id="DefaultArmor" Armor="GDIPillBoxArmor" DamageFX="FactionStructureDamageFX" />
- <SkirmishAIInformation BaseBuildingLocation="SPREAD" ConquerMetricsOverrideDPS="1" ConquerMetricsOverrideDamageType="SNIPER" />
- <Draws>
- <ScriptedModelDraw id="ModuleTag_Draw" OkToChangeModelColor="true" ExtraPublicBone="BONEGARRISON01 BONEGARRISON02 BONEGARRISON03 BONEGARRISON04 BONEGARRISON05 BONEGARRISON06 BONEGARRISON07 BONEGARRISON08 BONEGARRISON09 BONEGARRISON10 BONEGARRISON11 BONEGARRISON12 BONEGARRISON13 BONEGARRISON14 BONEGARRISON15 BONEGARRISON16 BONEGARRISON17 BONEGARRISON18">
- <ModelConditionState ParseCondStateType="PARSE_DEFAULT">
- <Model Name="SDBattleBunker" />
- </ModelConditionState>
- <ModelConditionState ParseCondStateType="PARSE_NORMAL" ConditionsYes="STRUCTURE_UNPACKING">
- <Model Name="SDBattleBunker_ASKN" />
- </ModelConditionState>
- <ModelConditionState ParseCondStateType="PARSE_NORMAL" ConditionsYes="RUBBLE">
- <Model Name="SDBattleBunker_D3SN" />
- </ModelConditionState>
- <ModelConditionState ParseCondStateType="PARSE_NORMAL" ConditionsYes="REALLYDAMAGED">
- <Model Name="SDBattleBunker" />
- <Texture Original="SDBunker" New="SDBunkerD" />
- <Texture Original="SDBunker_NRM" New="SDBunkerD_NRM" />
- </ModelConditionState>
- <ModelConditionState ParseCondStateType="PARSE_NORMAL" ConditionsYes="DAMAGED">
- <Model Name="SDBattleBunker" />
- <Texture Original="SDBunker" New="SDBunkerD" />
- <Texture Original="SDBunker_NRM" New="SDBunkerD_NRM" />
- </ModelConditionState>
- <AnimationState ParseCondStateType="PARSE_DEFAULT">
- <!-- no anim -->
- </AnimationState>
- <AnimationState ParseCondStateType="PARSE_NORMAL" ConditionsYes="STRUCTURE_UNPACKING">
- <Animation AnimationName="SDBattleBunker_AAN" AnimationMode="ONCE" />
- <ParticleSysBone BoneName="NONE" FXParticleSystemTemplate="Con_Small" FollowBone="true" />
- </AnimationState>
- <AnimationState ParseCondStateType="PARSE_NORMAL" ConditionsYes="RUBBLE" StateName="STATE_Rubble" Flags="START_FRAME_LAST">
- <Animation AnimationName="SDBattleBunker_D3AN" AnimationMode="MANUAL" />
- <Script>
- Prev = CurDrawablePrevAnimationState();
- if Prev ~= "STATE_Rubble" and Prev ~= "TRANS_IntoRubble" then
- CurDrawableSetTransitionAnimState("TRANS_IntoRubble")
- end
- </Script>
- <ParticleSysBone BoneName="NONE" FXParticleSystemTemplate="Des_Small" FollowBone="false" />
- </AnimationState>
- <AnimationState ParseCondStateType="PARSE_TRANSITION" StateName="TRANS_IntoRubble">
- <Animation AnimationName="SDBattleBunker_D3AN" AnimationMode="ONCE" AnimationBlendTime="0" />
- </AnimationState>
- </ScriptedModelDraw>
- <ScriptedModelDraw id="ModuleTag_DrawGarrisoned" OkToChangeModelColor="true">
- <ModelConditionState ParseCondStateType="PARSE_DEFAULT">
- <Model Name="nbempty_abld" />
- </ModelConditionState>
- <ModelConditionState ParseCondStateType="PARSE_NORMAL" ConditionsYes="GARRISONED RUBBLE">
- <Model Name="SDBattleBunk_Gar_D3SN" />
- </ModelConditionState>
- <ModelConditionState ParseCondStateType="PARSE_NORMAL" ConditionsYes="GARRISONED">
- <Model Name="SDBattleBunk_Gar" />
- </ModelConditionState>
- <ModelConditionState ParseCondStateType="PARSE_NORMAL" ConditionsYes="STRUCTURE_UNPACKING">
- <Model Name="nbempty_abld" />
- </ModelConditionState>
- <ModelConditionState ParseCondStateType="PARSE_NORMAL" ConditionsYes="RUBBLE">
- <Model Name="nbempty_abld" />
- </ModelConditionState>
- <AnimationState ParseCondStateType="PARSE_DEFAULT">
- <!-- no anim -->
- </AnimationState>
- <AnimationState ParseCondStateType="PARSE_NORMAL" ConditionsYes="GARRISONED RUBBLE" StateName="STATE_Rubble" Flags="START_FRAME_LAST">
- <Animation AnimationName="SDBattleBunk_Gar_D3AN" AnimationMode="MANUAL" />
- <Script>
- Prev = CurDrawablePrevAnimationState();
- if Prev ~= "STATE_Rubble" and Prev ~= "TRANS_IntoRubble" then
- CurDrawableSetTransitionAnimState("TRANS_IntoRubble")
- end
- </Script>
- </AnimationState>
- <AnimationState ParseCondStateType="PARSE_NORMAL" ConditionsYes="STRUCTURE_UNPACKING">
- <Animation AnimationName="nbempty_abld" AnimationMode="ONCE" />
- </AnimationState>
- <AnimationState ParseCondStateType="PARSE_TRANSITION" StateName="TRANS_IntoRubble">
- <Animation AnimationName="SDBattleBunk_Gar_D3AN" AnimationMode="ONCE" AnimationBlendTime="0" />
- </AnimationState>
- </ScriptedModelDraw>
- </Draws>
- <Behaviors>
- <ProductionUpdate id="ModuleTag_Production" />
- <!--<AttributeModifierUpgrade id="ModuleTag_AddAttributes" AttributeModifier="FortifiedBuilding_Bonus" Permanent="true" xmlns="uri:ea.com:eala:asset"><TriggeredBy>Upgrade_FortifyBuilding</TriggeredBy></AttributeModifierUpgrade>-->
- <AttributeModifierAuraUpdate id="ModuleTag_AttributeModifierAura" InitiallyActive="true" AttributeModifierName="AttributeModifier_SovietBunkerGarrisoned" RefreshDelay="0.5s" AllowSelf="false" AffectContainedOnly="true">
- <ObjectFilter Rule="ALL" Exclude="SURPRISE_ATTACKER" />
- </AttributeModifierAuraUpdate>
- <!--Test 'HealContain'-->
- <HordeGarrisonContain id="ModuleTag_HordeGarrison" ObjectStatusOfContained="UNSELECTABLE CAN_ATTACK" ContainMax="3" EnterSound="GenericBuilding_Garrison" ExitSound="GenericBuilding_Ungarrison" AllowEnemiesInside="false" AllowAlliesInside="true" AllowNeutralInside="false" AllowOwnPlayerInsideOverride="true" ShowPips="true" KillPassengersOnDeath="false" ImmuneToClearBuildingAttacks="true" ResetInitialTeamOnCapture="true">
- <PassengerFilter Rule="ANY" Include="INFANTRY"></PassengerFilter>
- <DieMuxData DeathTypes="ALL" />
- <PassengerData BonePrefix="BONEGARRISON">
- <Filter Rule="NONE" Include="INFANTRY" />
- </PassengerData>
- <MemberTemplateStatusInfo ThingTemplate="GDISniperSquad" ObjectStatus="CAN_SPOT_FOR_BOMBARD" />
- <ExitOffset y="-80" />
- </HordeGarrisonContain>
- <SlowDeath id="ModuleTag_Death" SinkDelay="4.0s" SinkRate="4.0" DestructionDelay="10.0s">
- <Sound Type="INITIAL" List="HumanFaction_SmallBuilding_DieMS" />
- <DieMuxData DeathTypes="ALL" />
- </SlowDeath>
- <FXListBehavior id="ModuleTag_FXList">
- <DieMuxData DeathTypes="ALL" />
- <Event Index="onTransitionToDamaged" FX="FX_BuildDamaged_Large" />
- <Event Index="onTransitionToReallyDamaged" FX="FX_BuildDamaged_Large" />
- <Event Index="onTransitionToRubble" FX="FX_BuildRubble_Large" />
- </FXListBehavior>
- <!-- Garrisoned units with the STEALTH_GARRISON kindof are invisible when they are inside a building, this InvisibilityUpdate is the module that contols it. -->
- <InvisibilityUpdate id="ModuleTag_Invisibility" UpdatePeriod="0.5s">
- <InvisibilityNugget />
- </InvisibilityUpdate>
- <ModelConditionUpgrade id="ModuleTag_AIUpgrades" AddConditionFlags="USER_75">
- <TriggeredBy>Upgrade_HardAISinglePlayer</TriggeredBy>
- <TriggeredBy>Upgrade_BrutalAISinglePlayer</TriggeredBy>
- <TriggeredBy>Upgrade_HardAIMultiPlayer</TriggeredBy>
- <TriggeredBy>Upgrade_BrutalAIMultiPlayer</TriggeredBy>
- </ModelConditionUpgrade>
- <StructureUnpackUpdate id="ModuleTag_StructureUnpackUpdate" UnpackTime="2.0s" />
- <FireWeaponUpdate id="ModuleTag_AIGarrisonBunkerWeapon">
- <FireWeaponNugget WeaponName="AIGarrisonBunkerTriggerWeapon" FireDelay="3s" FireInterval="5s" />
- </FireWeaponUpdate>
- <xi:include href="DATA:Includes/GenericBuildingRepair.xml" />
- <xi:include href="DATA:Includes/GenericNODBuildingDestructionNoSpawn.xml" />
- <xi:include href="DATA:Includes/GenericNODBuildingSuicideNoSpawn.xml" />
- </Behaviors>
- <AI>
- <AIUpdate id="ModuleTag_AI" AutoAcquireEnemiesWhenIdle="NO" AILuaEventsList="SovietBunkerEventsList"></AIUpdate>
- </AI>
- <Body xai:joinAction="Replace">
- <ActiveBody id="ModuleTag_Body" MaxHealth="12000" />
- </Body>
- <Geometry IsSmall="false">
- <Shape Type="CYLINDER" MajorRadius="28.0" MinorRadius="28.0" Height="5.5"></Shape>
- <Shape Type="CYLINDER" MajorRadius="20.0" MinorRadius="20.0" Height="9.5">
- <Offset x="0.0" y="0.0" z="5.5" />
- </Shape>
- <Shape Type="CYLINDER" MajorRadius="15.5" MinorRadius="15.5" Height="13.0">
- <Offset x="0.0" y="0.0" z="15.0" />
- </Shape>
- <ContactPoint>
- <Pos x="-15.6069" y="-10.76" z="0.0" />
- </ContactPoint>
- <ContactPoint>
- <Pos x="13.129" y="-10.76" z="16.863" />
- </ContactPoint>
- <ContactPoint>
- <Pos x="13.129" y="17.9759" z="0.0" />
- </ContactPoint>
- <ContactPoint>
- <Pos x="-15.6069" y="17.9759" z="16.863" />
- </ContactPoint>
- <ContactPoint>
- <Pos x="-15.6069" y="-10.76" z="16.863" />
- </ContactPoint>
- <ContactPoint>
- <Pos x="13.129" y="-10.76" z="0.0" />
- </ContactPoint>
- <ContactPoint>
- <Pos x="13.129" y="17.9759" z="16.863" />
- </ContactPoint>
- <ContactPoint>
- <Pos x="-15.6069" y="17.9759" z="0.0" />
- </ContactPoint>
- </Geometry>
- <AudioArrayVoice>
- <AudioEntry Sound="SOV_Bunker_Select" AudioType="voiceSelect" />
- </AudioArrayVoice>
- <AudioArraySound>
- <AudioEntry Sound="HumanFaction_MediumBuilding_LightDamageMS" AudioType="soundOnDamaged" />
- <AudioEntry Sound="HumanFaction_MediumBuilding_HeavyDamageMS" AudioType="soundOnReallyDamaged" />
- </AudioArraySound>
- <ShadowInfo Type="VOLUME" />
- <VisionInfo VisionRange="350" ShroudClearingRange="400" />
- </GameObject>
- <LogicCommand Type="CONSTRUCTION_YARD_CONSTRUCT" id="Command_NOD_BuildSovietBunker">
- <Object>SovietBunker</Object>
- </LogicCommand>
- <LogicCommandSet id="NODConstructionYardCommandSet">
- <Cmd>Command_NOD_BuildPowerPlant</Cmd>
- <Cmd>Command_NOD_BuildRefinery</Cmd>
- <Cmd>Command_NOD_BuildBarracks</Cmd>
- <Cmd>Command_NOD_BuildDropZone</Cmd>
- <Cmd>Command_NOD_BuildOperationsCenter</Cmd>
- <Cmd>Command_NOD_BuildHangar</Cmd>
- <Cmd>Command_NOD_BuildTechAssemblyPlant</Cmd>
- <Cmd>Command_NOD_BuildSecretShrine</Cmd>
- <Cmd>Command_NOD_BuildTiberiumLiquidationFacility</Cmd>
- <Cmd>Command_NOD_BuildShredderTurretHub</Cmd>
- <Cmd>Command_NOD_BuildLaserCannon</Cmd>
- <Cmd>Command_NOD_BuildRocketBunker</Cmd>
- <Cmd>Command_NOD_BuildSovietBunker</Cmd>
- <!--<Cmd xmlns="uri:ea.com:eala:asset">Command_NOD_BuildTiberiumSilo</Cmd>-->
- <Cmd>Command_NOD_BuildObeliskOfLight</Cmd>
- <Cmd>Command_NOD_BuildDisruptionTower</Cmd>
- <Cmd>Command_NOD_BuildTempleOfNOD</Cmd>
- <Cmd>Command_NOD_BuildCrane</Cmd>
- <Cmd>Command_ConstructNODEmissary</Cmd>
- <Cmd>Command_PackNODMCV</Cmd>
- <Cmd>Command_SelfRepair</Cmd>
- <Cmd>Command_Sell</Cmd>
- </LogicCommandSet>
- <LogicCommandSet id="NODCraneCommandSet">
- <Cmd>Command_NOD_BuildPowerPlant</Cmd>
- <Cmd>Command_NOD_BuildRefinery</Cmd>
- <Cmd>Command_NOD_BuildBarracks</Cmd>
- <Cmd>Command_NOD_BuildDropZone</Cmd>
- <Cmd>Command_NOD_BuildOperationsCenter</Cmd>
- <Cmd>Command_NOD_BuildHangar</Cmd>
- <Cmd>Command_NOD_BuildTechAssemblyPlant</Cmd>
- <Cmd>Command_NOD_BuildSecretShrine</Cmd>
- <Cmd>Command_NOD_BuildTiberiumLiquidationFacility</Cmd>
- <Cmd>Command_NOD_BuildSovietBunker</Cmd>
- <!--<Cmd xmlns="uri:ea.com:eala:asset">Command_NOD_BuildTiberiumSilo</Cmd>-->
- <Cmd>Command_NOD_BuildDisruptionTower</Cmd>
- <Cmd>Command_RepairVehicle</Cmd>
- <Cmd>Command_TogglePower</Cmd>
- <Cmd>Command_SelfRepair</Cmd>
- <Cmd>Command_Sell</Cmd>
- </LogicCommandSet>
- <WeaponTemplate id="AIGarrisonBunkerTriggerWeapon" Name="AIGarrisonBunkerTriggerWeapon" RadiusDamageAffects="SELF">
- <Nuggets>
- <LuaEventNugget EventName="GarrisonBunkerTriggerEvent" Radius="1" SendToEnemies="false" SendToAllies="true" SendToNeutral="false">
- <SpecialObjectFilter Rule="NONE" Relationship="SAME_PLAYER">
- <IncludeThing>SovietBunker</IncludeThing>
- </SpecialObjectFilter>
- </LuaEventNugget>
- </Nuggets>
- </WeaponTemplate>
- <AttributeModifier id="AttributeModifier_SovietBunkerGarrisoned" Category="NONE" Duration="1.55s" ModelConditionsSet="INSIDE_GARRISON">
- <Modifier Type="DAMAGE_MULT" Value="130%" />
- <!--<Modifier Type="RANGE" Value="105%" xmlns="uri:ea.com:eala:asset" />-->
- <Modifier Type="VISION" Value="200" />
- <Modifier Type="RATE_OF_FIRE" Value="150" />
- </AttributeModifier>
- <AttributeModifier id="AttributeModifier_Garrisoned" Category="NONE" Duration="1.55s" ModelConditionsSet="INSIDE_GARRISON">
- <Modifier Type="DAMAGE_MULT" Value="100%" />
- <Modifier Type="RANGE" Value="100%" />
- <Modifier Type="VISION" Value="200" />
- </AttributeModifier>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement