newcivs Posted January 8, 2014 Share Posted January 8, 2014 I have a question, i want garrsion elephants in my 0ad mod!, but i have a question:Qhat i need edit for make it??? "i only edited: actors, entites, and technologies, but this files are Javascript files, and i have this question "what is the difference behind a building and a ship on garrison in 0AD code"?and what i need mod for make it? Link to comment Share on other sites More sharing options...
Zeta1127 Posted January 8, 2014 Share Posted January 8, 2014 The <GarrisonHolder> section of the code of a building or other object that can garrison units governs that. Link to comment Share on other sites More sharing options...
sanderd17 Posted January 8, 2014 Share Posted January 8, 2014 The problemen with garrisoning in A15 is the loading range. Elephants are bigger than units, so need a bigger loading range. This should be fixed in SVN though. 2 Link to comment Share on other sites More sharing options...
newcivs Posted January 8, 2014 Author Share Posted January 8, 2014 i moddes my 0ad elephants this ids the template unit of elephantschampion_melee_elephants is only used by Gajendrathe rest of elephants use it:<Entity parent="template_unit_champion_cavalry"> <Armour> <Hack>4</Hack> <Pierce>5</Pierce> <Crush>6</Crush> </Armour> <Attack> <Ranged> <Hack>54.0</Hack> <Pierce>60.0</Pierce> <Crush>0.0</Crush> <MaxRange>96</MaxRange> <MinRange>0.0</MinRange> <ProjectileSpeed>90.0</ProjectileSpeed> <PrepareTime>1200</PrepareTime> <RepeatTime>2000</RepeatTime> <Spread>1.2</Spread> <Bonuses> <BonusPrimary> <Classes>Infantry Bow</Classes> <Multiplier>2.0</Multiplier> </BonusPrimary> <BonusSecondary> <Classes>Cavalry Sword</Classes> <Multiplier>1.5</Multiplier> </BonusSecondary> </Bonuses> </Ranged> </Attack> <Cost> <Resources> <food>100</food> <wood>70</wood> </Resources> </Cost> <Identity> <Classes datatype="tokens">Ranged Javelin</Classes> <GenericName>Champion Cavalry Skirmisher</GenericName> <Tooltip>Classes: Champion Ranged Cavalry Skirmisher.Counters: 2x vs. Archers, 1.5x vs. Cavalry Swordsmen.Countered by: Spearmen and Elephants.</Tooltip> </Identity> <Obstruction> <Unit radius="1.0"/> </Obstruction> <Health> <Max>400</Max> </Health> <Sound> <SoundGroups> <select>actor/fauna/animal/elephant_select.xml</select> <order_walk>actor/fauna/animal/elephant_order.xml</order_walk> <order_attack>actor/fauna/animal/elephant_attack.xml</order_attack> <attack>actor/fauna/animal/elephant_attack.xml</attack> <death>actor/fauna/animal/elephant_death.xml</death> <trained>actor/fauna/animal/elephant_trained.xml</trained> </SoundGroups> </Sound> <UnitMotion> <WalkSpeed>14.0</WalkSpeed> <Run> <Speed>28.0</Speed> <Range>1000.0</Range> <RangeMin>10.0</RangeMin> </Run> </UnitMotion></Entity> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now