source: ps/trunk/binaries/data/mods/public/simulation/templates/template_unit_siege_stonethrower.xml@ 25061

Last change on this file since 25061 was 25061, checked in by Freagarach, 3 years ago

Add range overlay to artillery.

Structures have them since r20608 / rP20608, but units were excluded there due to their mobility and amounts.
Artillery is not that easily massed and also not very mobile, but has a high range and damage with a low reload time, making it nice to know their approximate range.

Patch by: @Nescio
Differential revision: D3606
Comments by: @Angen, @borg-, @wraitii

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 1.9 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<Entity parent="template_unit_siege">
3 <Attack>
4 <Ranged>
5 <AttackName>Stone</AttackName>
6 <Damage>
7 <Crush>210</Crush>
8 </Damage>
9 <MaxRange>80</MaxRange>
10 <MinRange>40</MinRange>
11 <PrepareTime>6000</PrepareTime>
12 <RepeatTime>7000</RepeatTime>
13 <Delay>0</Delay>
14 <Projectile>
15 <Speed>40</Speed>
16 <Spread>6</Spread>
17 <Gravity>20</Gravity>
18 <FriendlyFire>false</FriendlyFire>
19 <LaunchPoint y="3"/>
20 <ImpactActorName>props/units/weapons/rock_explosion.xml</ImpactActorName>
21 <ImpactAnimationLifetime>0.1</ImpactAnimationLifetime>
22 </Projectile>
23 <PreferredClasses datatype="tokens">Structure</PreferredClasses>
24 <RangeOverlay>
25 <LineTexture>outline_border.png</LineTexture>
26 <LineTextureMask>outline_border_mask.png</LineTextureMask>
27 <LineThickness>0.175</LineThickness>
28 </RangeOverlay>
29 </Ranged>
30 </Attack>
31 <Cost>
32 <BuildTime>25</BuildTime>
33 <Resources>
34 <wood>400</wood>
35 <stone>250</stone>
36 </Resources>
37 </Cost>
38 <Footprint replace="">
39 <Square width="6.0" depth="15.0"/>
40 <Height>4.5</Height>
41 </Footprint>
42 <Health>
43 <Max>250</Max>
44 </Health>
45 <Identity>
46 <VisibleClasses datatype="tokens">Ranged StoneThrower</VisibleClasses>
47 <GenericName>Siege Catapult</GenericName>
48 </Identity>
49 <Loot>
50 <xp>250</xp>
51 <wood>80</wood>
52 <stone>50</stone>
53 </Loot>
54 <Pack>
55 <Time>10000</Time>
56 </Pack>
57 <Sound>
58 <SoundGroups>
59 <attack_impact_ranged>attack/impact/siegeprojectilehit.xml</attack_impact_ranged>
60 <attack_ranged>attack/siege/ballist_attack.xml</attack_ranged>
61 </SoundGroups>
62 </Sound>
63 <UnitAI>
64 <DefaultStance>standground</DefaultStance>
65 </UnitAI>
66 <UnitMotion>
67 <WalkSpeed op="mul">0.8</WalkSpeed>
68 </UnitMotion>
69 <Vision>
70 <Range>100</Range>
71 </Vision>
72</Entity>
Note: See TracBrowser for help on using the repository browser.