| 1 | <?xml version="1.0"?> |
| 2 | |
| 3 | <!-- |
| 4 | Define item "Gun". |
| 5 | |
| 6 | We use type="Weapon", which indicates TItemWeaponResource class, |
| 7 | that includes everything you need for a typical weapon (immediate (short-range |
| 8 | or shooting) or firing missiles). |
| 9 | --> |
| 10 | |
| 11 | <resource |
| 12 | name="Gun" |
| 13 | type="Weapon" |
| 14 | caption="Gun" |
| 15 | image="render.png" |
| 16 | > |
| 17 | <model url="plasma.gltf"> |
| 18 | <base animation_name="lying_on_ground" /> |
| 19 | <attack animation_name="primary" /> |
| 20 | <ready animation_name="idle" /> |
| 21 | <reload animation_name="reload" /> |
| 22 | </model> |
| 23 | <attack time="0.0" shoot="True" sound_start="shoot" knockback_distance="4.0" ammo_capacity="6"> |
| 24 | <damage const="30" random="10" /> |
| 25 | </attack> |
| 26 | </resource> |