Ticket #1699: spartan_female_with_attack.patch

File spartan_female_with_attack.patch, 3.5 KB (added by Doménique, 12 years ago)

Patch that gives Spartan female a small ranged attack ability

  • binaries/data/mods/public/simulation/templates/units/spart_support_female_citizen.xml

     
    11<?xml version="1.0" encoding="utf-8"?>
    22<Entity parent="template_unit_support_female_citizen">
     3  <Attack>
     4    <Ranged>
     5      <Hack>0.0</Hack>
     6      <Pierce>7.0</Pierce>
     7      <Crush>0.0</Crush>
     8      <MaxRange>30.0</MaxRange>
     9      <MinRange>8.0</MinRange>
     10      <ProjectileSpeed>50.0</ProjectileSpeed>
     11      <PrepareTime>900</PrepareTime>
     12      <RepeatTime>1500</RepeatTime>
     13      <Spread>1.5</Spread>
     14      <Bonuses>
     15        <BonusInfantry>
     16          <Classes>Infantry</Classes>
     17          <Multiplier>2.0</Multiplier>
     18        </BonusInfantry>
     19      </Bonuses>
     20    </Ranged>
     21  </Attack>
    322  <Builder>
    423    <Entities datatype="tokens">
    524      other/wallset_palisade
     
    1736  </Health>
    1837  <Identity>
    1938    <Civ>spart</Civ>
    20     <GenericName>Spartan Woman</GenericName>
     39    <GenericName>Spartan Woman</GenericName>
    2140    <SpecificName>Gýnē</SpecificName>
    2241    <History>Spartan women were some of the freest in the ancient world. They could own land and slaves and even exercise naked like Spartan men. It is said that only Spartan women gave birth to real men. Such tough as nails women more than once helped save their city from disaster, for example when after a lost battle against Pyrrhus of Epirus they overnight built an earthen rampart to protect the city while their men slept in preparation for the next day's siege.</History>
    2342    <Icon>units/hele_support_female_citizen.png</Icon>
    2443  </Identity>
     44  <Sound>
     45    <SoundGroups>
     46      <order_attack>voice/hellenes/civ/female/civ_female_go_out_against.xml</order_attack>
     47      <attack>attack/weapon/sword.xml</attack>
     48    </SoundGroups>
     49  </Sound>
     50  <UnitAI>
     51    <DefaultStance>defensive</DefaultStance>
     52  </UnitAI>
    2553  <VisualActor>
    2654    <Actor>units/spartans/female_citizen.xml</Actor>
    2755  </VisualActor>
  • binaries/data/mods/public/art/actors/units/spartans/female_citizen.xml

     
    77        <animation file="female/f_idle_01.dae" name="Idle" speed="100"/>
    88        <animation file="female/f_walk_01.dae" name="Walk" speed="25"/>
    99        <animation file="female/f_walk_01.dae" name="Run" speed="25"/>
     10        <animation event="0.5" file="biped/inf_sling_atk_a.psa" name="melee" speed="30"/>
    1011        <animation file="female/f_walk_01.dae" name="carry_food" speed="25"/>
    1112        <animation file="female/f_walk_01.dae" name="carry_meat" speed="25"/>
    1213        <animation file="female/f_walk_01.dae" name="carry_wood" speed="25"/>
     
    3637        <prop attachpoint="r_hand"/>
    3738      </props>
    3839    </variant>
     40    <variant name="Melee">
     41      <props>
     42        <prop actor="" attachpoint="l_hand"/>
     43        <prop actor="props/units/weapons/sling.xml" attachpoint="r_hand"/>
     44        <prop actor="props/units/weapons/slingrock.xml" attachpoint="projectile"/>
     45      </props>
     46    </variant>
    3947    <variant name="gather_tree">
    4048      <props>
    4149        <prop actor="props/units/tools/axe.xml" attachpoint="l_hand"/>