Allow artists to add upgrade animations.

Reviewed by: @Angen
Differential Revision: https://code.wildfiregames.com/D2371
This was SVN commit r23185.
This commit is contained in:
Stan 2019-11-24 11:34:57 +00:00
parent 52f282a7e1
commit 9230c107c5
56 changed files with 613 additions and 178 deletions

View file

@ -1,14 +1,32 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="palisade rocks long">
<animations/>
<mesh>props/palisade_rocks_long.dae</mesh>
<textures><texture file="props/palisade_main.png" name="baseTex"/></textures>
<textures>
<texture file="props/palisade_main.png" name="baseTex"/>
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="Upgrading">
<props>
<prop actor="particle/dust_cav.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">
<props>
<prop actor="particle/destruction_smoke_med.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_med.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_med_gray.xml" attachpoint="root"/>
</props>
</variant>
</group>
<material>default.xml</material>
</actor>

View file

@ -1,20 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="base">
<textures>
<texture file="structural/ao/gaul_wooden_tower_2_AO.png" name="aoTex"/>
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="wood3">
<mesh>structural/gaul_wooden_tower_2_roof_2.dae</mesh>
<mesh>structural/gaul_wooden_tower_2_roof.dae</mesh>
<textures>
<texture file="structural/gaul_tile_mossy.png" name="baseTex"/>
<texture file="structural/gaul_tile_norm.png" name="normTex"/>
<texture file="structural/gaul_tile_spec.png" name="specTex"/>
<texture file="structural/ao/gaul_wooden_tower_2_AO.png" name="aoTex"/>
</textures>
</variant>
</group>

View file

@ -22,8 +22,13 @@
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned"/>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_9x3_wall.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="alive"/>

View file

@ -37,6 +37,16 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/celts/kennel_mud.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="alive"/>
<variant name="garrisoned">

View file

@ -15,7 +15,7 @@
</variant>
<variant name="scaffold">
<props>
<prop actor="props/structures/construction/scaf_cart_wall_long.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_9x3_wall.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_2x2.xml" attachpoint="root"/>
<prop actor="particle/construction_dust.xml" attachpoint="root"/>
</props>

View file

@ -27,7 +27,7 @@
<texture file="structural/kart_struct.dds" name="baseTex"/>
<texture file="structural/kart_struct_norm.png" name="normTex"/>
<texture file="structural/kart_struct_spec.png" name="specTex"/>
<texture file="structural/ao/kart_wooden_tower_scaffold_AO.png" name="aoTex"/>
<texture file="structural/ao/kart_wooden_tower_scaffold_AO.png" name="aoTex"/>
</textures>
</variant>
</group>

View file

@ -20,6 +20,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -12,6 +12,14 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="alive"/>
<variant name="lightdamage">

View file

@ -18,6 +18,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_cart_wall_long.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="alive"/>
<variant name="lightdamage">

View file

@ -20,6 +20,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_cart_defense_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -12,6 +12,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_9x3_wall.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">

View file

@ -28,14 +28,23 @@
<variant frequency="1" name="wood">
<mesh>structural/gaul_wooden_tower_2.dae</mesh>
<props>
<prop actor="props/structures/gauls/wooden_tower_2_roof.xml" attachpoint="root"/>
<prop actor="props/flora/bush_tempe_underbrush.xml" attachpoint="root"/>
<prop actor="props/structures/gauls/wooden_tower_2_roof.xml" attachpoint="roof"/>
</props>
<textures>
<texture file="structural/ao/gaul_wooden_tower_2_AO.png" name="aoTex"/>
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/flora/bush_tempe_underbrush.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -1,48 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="scout tower">
<animations>
<animation event="0.5" load="0" name="attack_ranged" speed="100"/>
</animations>
<mesh>structural/hele_scout_tower.dae</mesh>
<props>
<prop actor="props/structures/hellenes/scout_tower_fancy.xml" attachpoint="root"/>
<prop actor="props/structures/hellenes/scout_tower_props.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_1x1.xml" attachpoint="root"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="loaded-projectile"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="projectile"/>
</props>
<textures>
<texture file="structural/hele_struct_b.dds" name="baseTex"/>
<texture file="structural/hele_struct_b_norm.png" name="normTex"/>
<texture file="structural/hele_struct_b_spec.png" name="specTex"/>
<texture file="structural/ao/hele_scout_tower.png" name="aoTex"/>
</textures>
</variant>
</group>
<group>
<variant name="ungarrisoned" frequency="1"/>
<variant name="garrisoned">
<props>
<prop actor="props/special/common/garrison_flag_hele.xml" attachpoint="garrisoned"/>
</props>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">
<props>
<prop attachpoint="garrisoned"/>
<prop actor="particle/destruction_smoke_small.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small_gray.xml" attachpoint="root"/>
<prop actor="props/structures/hellenes/scout_tower_fancy.xml" attachpoint="root"/>
<prop actor="props/structures/hellenes/scout_tower_props.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_1x1.xml" attachpoint="root"/>
</props>
</variant>
</group>
<material>player_trans_ao_parallax_spec.xml</material>
</actor>
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="scout tower">
<animations>
<animation event="0.5" load="0" name="attack_ranged" speed="100"/>
</animations>
<mesh>structural/hele_scout_tower.dae</mesh>
<props>
<prop actor="props/structures/hellenes/scout_tower_fancy.xml" attachpoint="root"/>
<prop actor="props/structures/hellenes/scout_tower_props.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_1x1.xml" attachpoint="root"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="loaded-projectile"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="projectile"/>
</props>
<textures>
<texture file="structural/hele_struct_b.dds" name="baseTex"/>
<texture file="structural/hele_struct_b_norm.png" name="normTex"/>
<texture file="structural/hele_struct_b_spec.png" name="specTex"/>
<texture file="structural/ao/hele_scout_tower.png" name="aoTex"/>
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/hellenes/scout_tower_fancy.xml" attachpoint="root"/>
<prop actor="props/structures/hellenes/scout_tower_props.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_1x1.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="ungarrisoned" frequency="1"/>
<variant name="garrisoned">
<props>
<prop actor="props/special/common/garrison_flag_hele.xml" attachpoint="garrisoned"/>
</props>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">
<props>
<prop attachpoint="garrisoned"/>
<prop actor="particle/destruction_smoke_small.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small_gray.xml" attachpoint="root"/>
<prop actor="props/structures/hellenes/scout_tower_fancy.xml" attachpoint="root"/>
<prop actor="props/structures/hellenes/scout_tower_props.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_1x1.xml" attachpoint="root"/>
</props>
</variant>
</group>
<material>player_trans_ao_parallax_spec.xml</material>
</actor>

View file

@ -5,11 +5,20 @@
<variant name="Wall long">
<mesh>structural/hele_wall_long.dae</mesh>
<textures>
<texture file="structural/hele_struct_b.dds" name="baseTex"/>
<texture file="structural/hele_struct_b_norm.png" name="normTex"/>
<texture file="structural/hele_struct_b_spec.png" name="specTex"/>
<texture file="structural/ao/hele_wall_long.png" name="aoTex"/>
</textures>
<texture file="structural/hele_struct_b.dds" name="baseTex"/>
<texture file="structural/hele_struct_b_norm.png" name="normTex"/>
<texture file="structural/hele_struct_b_spec.png" name="specTex"/>
<texture file="structural/ao/hele_wall_long.png" name="aoTex"/>
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_9x3_wall.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>

View file

@ -21,6 +21,17 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/hellenes/wooden_tower_2.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_1x1.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -24,6 +24,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="round">
<mesh>structural/iber_tower_1.dae</mesh>

View file

@ -11,6 +11,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_9x3_wall.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">

View file

@ -21,6 +21,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="square">
<mesh>structural/iber_wooden_tower.dae</mesh>

View file

@ -20,6 +20,16 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/decals/dirt_1x1.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="ungarrisoned" frequency="1"/>
<variant name="garrisoned">

View file

@ -19,6 +19,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="ungarrisoned" frequency="1"/>
<variant name="garrisoned">

View file

@ -20,6 +20,16 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/decals/dirt_2x2.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="ungarrisoned" frequency="1"/>
<variant name="garrisoned">

View file

@ -20,6 +20,16 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/decals/dirt_1x1.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -12,6 +12,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_9x3_wall.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="alive"/>
<variant name="death">

View file

@ -1,54 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="Tower">
<animations>
<animation event="0.5" load="0" name="attack_ranged" speed="100"/>
</animations>
<mesh>structural/maur_scout_tower.dae</mesh>
<props>
<prop actor="props/structures/mauryas/scout_tower_shield_bell.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_straight.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_bell_straight.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_curved.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_tall_round.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_struct_b.xml" attachpoint="root"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="loaded-projectile"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="projectile"/>
</props>
<textures>
<texture file="structural/maur_struct.png" name="baseTex"/>
<texture file="structural/maur_struct_spec.png" name="specTex"/>
<texture file="structural/maur_struct_norm.png" name="normTex"/>
<texture file="structural/ao/maur_scout_tower_ao.png" name="aoTex"/>
</textures>
</variant>
</group>
<group>
<variant name="ungarrisoned" frequency="1"/>
<variant name="garrisoned">
<props>
<prop actor="props/special/common/garrison_flag_maur.xml" attachpoint="garrisoned"/>
</props>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">
<props>
<prop attachpoint="garrisoned"/>
<prop actor="particle/destruction_smoke_small.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small_gray.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_struct_b.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_bell.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_straight.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_bell_straight.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_curved.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_tall_round.xml" attachpoint="root"/>
</props>
</variant>
</group>
<material>player_trans_ao_parallax_spec.xml</material>
</actor>
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="Tower">
<animations>
<animation event="0.5" load="0" name="attack_ranged" speed="100"/>
</animations>
<mesh>structural/maur_scout_tower.dae</mesh>
<props>
<prop actor="props/structures/mauryas/scout_tower_shield_bell.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_straight.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_bell_straight.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_curved.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_tall_round.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_struct_b.xml" attachpoint="root"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="loaded-projectile"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="projectile"/>
</props>
<textures>
<texture file="structural/maur_struct.png" name="baseTex"/>
<texture file="structural/maur_struct_spec.png" name="specTex"/>
<texture file="structural/maur_struct_norm.png" name="normTex"/>
<texture file="structural/ao/maur_scout_tower_ao.png" name="aoTex"/>
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_bell.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_straight.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_bell_straight.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_curved.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_tall_round.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_struct_b.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="ungarrisoned" frequency="1"/>
<variant name="garrisoned">
<props>
<prop actor="props/special/common/garrison_flag_maur.xml" attachpoint="garrisoned"/>
</props>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">
<props>
<prop attachpoint="garrisoned"/>
<prop actor="particle/destruction_smoke_small.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small_gray.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_struct_b.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_bell.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_straight.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_bell_straight.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_curved.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/scout_tower_shield_tall_round.xml" attachpoint="root"/>
</props>
</variant>
</group>
<material>player_trans_ao_parallax_spec.xml</material>
</actor>

View file

@ -1,31 +1,42 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="wall long">
<mesh>structural/maur_wall_long_struct.dae</mesh>
<props>
<prop actor="props/structures/mauryas/wall_long_palisade.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/wall_long_struct_b.xml" attachpoint="root"/>
</props>
<textures>
<texture file="structural/maur_struct.png" name="baseTex"/>
<texture file="structural/maur_struct_spec.png" name="specTex"/>
<texture file="structural/maur_struct_norm.png" name="normTex"/>
<texture file="structural/ao/maur_wall_long_ao.png" name="aoTex"/>
</textures>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">
<props>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small_gray.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/wall_long_palisade.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/wall_long_struct_b.xml" attachpoint="root"/>
</props>
</variant>
</group>
<material>player_trans_ao_parallax_spec.xml</material>
</actor>
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="wall long">
<mesh>structural/maur_wall_long_struct.dae</mesh>
<props>
<prop actor="props/structures/mauryas/wall_long_palisade.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/wall_long_struct_b.xml" attachpoint="root"/>
</props>
<textures>
<texture file="structural/maur_struct.png" name="baseTex"/>
<texture file="structural/maur_struct_spec.png" name="specTex"/>
<texture file="structural/maur_struct_norm.png" name="normTex"/>
<texture file="structural/ao/maur_wall_long_ao.png" name="aoTex"/>
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/mauryas/wall_long_palisade.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/wall_long_struct_b.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_9x3_wall.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">
<props>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small_gray.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/wall_long_palisade.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/wall_long_struct_b.xml" attachpoint="root"/>
</props>
</variant>
</group>
<material>player_trans_ao_parallax_spec.xml</material>
</actor>

View file

@ -20,6 +20,16 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
<prop actor="props/structures/mauryas/wooden_tower_2.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -26,6 +26,15 @@
<mesh>structural/pers_scout_tower_a.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="ungarrisoned" frequency="1"/>
<variant name="garrisoned">
@ -45,5 +54,5 @@
</props>
</variant>
</group>
<material>player_trans_ao_parallax_spec.xml</material>
<material>player_trans_ao_parallax_spec.xml</material>
</actor>

View file

@ -11,6 +11,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_9x3_wall.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">

View file

@ -23,6 +23,15 @@
<mesh>structural/pers_wooden_tower.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -31,6 +31,16 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/decals/spart_1x1.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -21,6 +21,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_9x3_wall.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="alive"/>
<variant name="death">

View file

@ -31,6 +31,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -22,17 +22,29 @@
<group>
<variant name="ivy" frequency="1">
<props>
<prop actor="props/structures/decals/dirt_2x2.xml" attachpoint="root"/>
<prop actor="props/structures/romans/rome_tower_wood.xml" attachpoint="root"/>
<prop actor="props/flora/bush_tempe_underbrush.xml" attachpoint="root"/>
<prop actor="props/structures/romans/tower_nature.xml" attachpoint="root"/>
<prop actor="props/structures/romans/rome_tower_wood.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_2x2.xml" attachpoint="root"/>
<prop actor="props/flora/bush_tempe_underbrush.xml" attachpoint="root"/>
</props>
</variant>
<variant name="no ivy" frequency="1">
<props>
<prop actor="props/structures/romans/rome_tower_wood.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_2x2.xml" attachpoint="root"/>
<prop actor="props/flora/bush_tempe_underbrush.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/flora/bush_tempe_underbrush.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_2x2.xml" attachpoint="root"/>
<prop actor="props/structures/romans/rome_tower_wood.xml" attachpoint="root"/>
<prop actor="props/flora/bush_tempe_underbrush.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>

View file

@ -15,5 +15,25 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/romans/siege_walls_turf_long.xml" attachpoint="root"/>
<prop actor="props/structures/romans/siege_walls_long_banners.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">
<props>
<prop actor="particle/destruction_smoke_med.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_med.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_med_gray.xml" attachpoint="root"/>
</props>
</variant>
</group>
<material>basic_trans_parallax_spec.xml</material>
</actor>

View file

@ -5,11 +5,20 @@
<variant name="Wall long">
<mesh>structural/rome_wall_long.dae</mesh>
<textures>
<texture file="structural/rome_struct_2.png" name="baseTex"/>
<texture file="structural/rome_struct_2_norm.png" name="normTex"/>
<texture file="structural/rome_struct_2_spec.png" name="specTex"/>
<texture file="structural/ao/rome_wall_long.png" name="aoTex"/>
</textures>
<texture file="structural/rome_struct_2.png" name="baseTex"/>
<texture file="structural/rome_struct_2_norm.png" name="normTex"/>
<texture file="structural/rome_struct_2_spec.png" name="specTex"/>
<texture file="structural/ao/rome_wall_long.png" name="aoTex"/>
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_9x3_wall.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
@ -22,5 +31,5 @@
</props>
</variant>
</group>
<material>player_trans_ao_parallax_spec.xml</material>
<material>player_trans_ao_parallax_spec.xml</material>
</actor>

View file

@ -21,6 +21,17 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/decals/dirt_1x1.xml" attachpoint="root"/>
<prop actor="props/flora/bush_tempe_underbrush.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -8,7 +8,7 @@
</animations>
<mesh>structural/sele_tower.dae</mesh>
<props>
<prop actor="props/structures/decals/dirt_1x1.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_3x3.xml" attachpoint="root"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="loaded-projectile"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="projectile"/>
</props>
@ -20,6 +20,16 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/decals/dirt_3x3.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="ungarrisoned" frequency="1"/>
<variant name="garrisoned">

View file

@ -15,6 +15,15 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/construction/scaf_9x3_wall.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="alive" frequency="1"/>
<variant name="death">

View file

@ -8,7 +8,7 @@
</animations>
<mesh>structural/sele_wooden_tower.dae</mesh>
<props>
<prop actor="props/structures/decals/dirt_1x1.xml" attachpoint="root"/>
<prop actor="props/structures/decals/dirt_2x2.xml" attachpoint="root"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="loaded-projectile"/>
<prop actor="props/units/weapons/arrow_front.xml" attachpoint="projectile"/>
<prop actor="props/flora/bush.xml" attachpoint="bush"/>
@ -24,6 +24,16 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/decals/dirt_2x2.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -22,6 +22,16 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/decals/spart_1x1.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -20,6 +20,16 @@
</textures>
</variant>
</group>
<group>
<variant frequency="1" name="Idle"/>
<variant name="upgrading">
<props>
<prop actor="props/structures/decals/spart_1x1.xml" attachpoint="root"/>
<prop actor="props/structures/construction/scaf_3x3_tower.xml" attachpoint="root"/>
<prop actor="particle/destruction_dust_small.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="ungarrisoned"/>
<variant name="garrisoned">

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db9261a50e86159933224e5a013f8929b531e7c5e65d75bb6234385dee8455c4
size 43014
oid sha256:97254974997577ebabce5f89118e85b712942445e393672d392332826602a5a5
size 40880

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bb429121c3daebd84973e7b41d49edf968e0ab7a1c3b438a904a20c74b1a9e52
size 4929
oid sha256:8bf5b513c422c62741e7fd8522ea6adcfac1c45989d0c0f6e3d675f4cb6c5b78
size 4941

View file

@ -15,6 +15,11 @@ Upgrade.prototype.Schema =
"<text/>" +
"</element>" +
"</optional>" +
"<optional>" +
"<element name='Variant' a:help='The name of the variant to switch to when upgrading'>" +
"<text/>" +
"</element>" +
"</optional>" +
"<optional>" +
"<element name='Tooltip' a:help='This will be added to the tooltip to help the player choose why to upgrade.'>" +
"<text/>" +
@ -232,6 +237,7 @@ Upgrade.prototype.Upgrade = function(template)
}
this.upgrading = template;
this.SetUpgradeAnimationVariant();
// Prevent cheating
this.ChangeUpgradedEntityCount(1);
@ -259,6 +265,15 @@ Upgrade.prototype.CancelUpgrade = function(owner)
this.expendedResources = {};
this.ChangeUpgradedEntityCount(-1);
// Do not update visual actor if the animation didn't change.
let choice = this.upgradeTemplates[this.upgrading];
if (choice && this.template[choice].Variant)
{
let cmpVisual = Engine.QueryInterface(this.entity, IID_Visual);
if (cmpVisual)
cmpVisual.SelectAnimation("idle", false, 1.0);
}
this.upgrading = false;
this.CancelTimer();
this.SetElapsedTime(0);
@ -295,6 +310,20 @@ Upgrade.prototype.SetElapsedTime = function(time)
this.elapsedTime = time;
};
Upgrade.prototype.SetUpgradeAnimationVariant = function()
{
let choice = this.upgradeTemplates[this.upgrading];
if (!choice || !this.template[choice].Variant)
return;
let cmpVisual = Engine.QueryInterface(this.entity, IID_Visual);
if (!cmpVisual)
return;
cmpVisual.SelectAnimation(this.template[choice].Variant, false, 1.0);
};
Upgrade.prototype.UpgradeProgress = function(data, lateness)
{
if (this.elapsedTime/1000.0 < this.GetUpgradeTime())

View file

@ -27,6 +27,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower1>
<Tower2>
<Entity>structures/{civ}_tower_bolt</Entity>
@ -37,6 +38,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower2>
</Upgrade>
</Entity>

View file

@ -28,6 +28,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower1>
<Tower2>
<Entity>structures/{civ}_tower_bolt</Entity>
@ -38,6 +39,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower2>
</Upgrade>
</Entity>

View file

@ -24,6 +24,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower1>
<Tower2>
<Entity>structures/{civ}_tower_bolt</Entity>
@ -34,6 +35,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower2>
</Upgrade>
<VisualActor>

View file

@ -31,6 +31,7 @@
</Cost>
<Time>5</Time>
<Tooltip>This will allow you to let units circulate through your fortifications.</Tooltip>
<Variant>upgrading</Variant>
</Gate>
</Upgrade>
<VisualActor>

View file

@ -27,6 +27,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower1>
<Tower2>
<Entity>structures/{civ}_tower_bolt</Entity>
@ -37,6 +38,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower2>
</Upgrade>
</Entity>

View file

@ -27,6 +27,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower1>
<Tower2>
<Entity>structures/{civ}_tower_bolt</Entity>
@ -37,6 +38,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower2>
</Upgrade>
</Entity>

View file

@ -26,19 +26,29 @@
<GarrisonHolder>
<VisibleGarrisonPoints>
<Archer1>
<X>0</X><Y>5.7</Y><Z>0</Z>
<X>0</X>
<Y>5.7</Y>
<Z>0</Z>
</Archer1>
<Archer2>
<X>8</X><Y>5.7</Y><Z>0</Z>
<X>8</X>
<Y>5.7</Y>
<Z>0</Z>
</Archer2>
<Archer3>
<X>-8</X><Y>5.7</Y><Z>0</Z>
<X>-8</X>
<Y>5.7</Y>
<Z>0</Z>
</Archer3>
<Archer4>
<X>4</X><Y>5.7</Y><Z>0</Z>
<X>4</X>
<Y>5.7</Y>
<Z>0</Z>
</Archer4>
<Archer5>
<X>-4</X><Y>5.7</Y><Z>0</Z>
<X>-4</X>
<Y>5.7</Y>
<Z>0</Z>
</Archer5>
</VisibleGarrisonPoints>
</GarrisonHolder>
@ -69,6 +79,7 @@
<wood>80</wood>
<stone>0</stone>
</Cost>
<Variant>upgrading</Variant>
</Gate>
</Upgrade>
<VisualActor>

View file

@ -27,6 +27,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower>
</Upgrade>
</Entity>

View file

@ -27,6 +27,7 @@
<stone>100</stone>
</Cost>
<Time>200</Time>
<Variant>upgrading</Variant>
</Tower2>
</Upgrade>
</Entity>

View file

@ -63,6 +63,7 @@
<wood>50</wood>
<stone>100</stone>
</Cost>
<Variant>upgrading</Variant>
<Time>100</Time>
</Tower>
</Upgrade>

View file

@ -51,6 +51,7 @@
<stone>60</stone>
</Cost>
<Time>10</Time>
<Variant>upgrading</Variant>
</Gate>
</Upgrade>
<VisualActor>

View file

@ -82,6 +82,7 @@
<item>syntagma_med_idle</item>
<item>syntagma_med_run</item>
<item>syntagma_med_walk</item>
<item>upgrading</item>
<item>walk</item>
<item>walk_testudo_front</item>
<item>walk_testudo_front_left</item>