root/geardeflist/weapondef
Back
Namespace:
Filename:
Extends: geardef
Appends: damage (Type: string) , range (Type: rangetype) ?, ammo (Type: byte) ?, ammotype (Type: ammotype) ?, mode (Type: string) ?, reach (Type: byte) ?, strengthmin (Type: byte) ?, intelligence (Type: byte) ?, handling (Type: byte) ?, speed (Type: byte) ?, maxrange (Type: byte) ?, body (Type: byte) ?, sig (Type: byte) ?, sigsonar (Type: byte) ?, included (Type: reflist) ?
Description: The weapondef tag defines a weapon.
This schema does not describe a specific useage of the weapon,
merely the generic attributes of the item.
damage the damage code of the weapon.range the range type for the weapon, if any.ammo the ammunition capacity of the weapon, if any.ammotype method by which ammunition is reloaded into the weapon
(e.g. clip, etc.) if it has one.mode the firing modes the weapon offers, if any.reach the melee weapon's reach. This tends to be defined
only for melee weapons.strengthmin the melee weapon's Stregth minium. This tends to be defined
only for projectile weapons.intelligence the weapon's intelligence. This tends to be defined
only for missiles.handling a missile's handling. This tends to be defined
only for naval missiles.speed a missile's speed. This tends to be defined
only for naval missiles.maxrange a missile's maximum range. This tends to be defined
only for naval missiles.body a missile's body rating. This tends to be defined
only for naval missiles.sig a missile's signature. This tends to be defined
only for naval missiles.sigsonar a torpedo's sonar signature. This tends to be defined
only for torpedoes.included a list of references to accessories that are included
with the weapon, if any. Generally, included accessories deference data
defined by weaponaccdef tags.The category tag must contain the following:
010101 - weapon:firearm:holdout010102 - weapon:firearm:lightpistol010103 - weapon:firearm:machinpistol010104 - weapon:firearm:heavypistol010105 - weapon:firearm:special010106 - weapon:firearm:smg010107 - weapon:firearm:rifle010108 - weapon:firearm:shotgun010109 - weapon:firearm:assaultrifle010200 - weapon:support010300 - weapon:heavy010400 - weapon:naval010500 - weapon:melee010600 - weapon:projectile010700 - weapon:rocket010800 - weapon:missile010900 - weapon:missile:naval011000 - weapon:torpedoCode Fragment
<xs:elementtype name="weapondef">
<xs:extends type="geardef">
<xs:model>
<xs:sequence>
<xs:element type="xs:string" name="damage"/>
<xs:element type="rangetype" name="range" occurs="?"/>
<xs:element type="xs:byte" name="ammo" occurs="?"/>
<xs:element type="ammotype" name="ammotype" occurs="?"/>
<xs:element type="xs:string" name="mode" occurs="?"/>
<xs:element type="xs:byte" name="reach" occurs="?"/>
<xs:element type="xs:byte" name="strengthmin" occurs="?"/>
<xs:element type="xs:byte" name="intelligence" occurs="?"/>
<xs:element type="xs:byte" name="handling" occurs="?"/>
<xs:element type="xs:byte" name="speed" occurs="?"/>
<xs:element type="xs:byte" name="maxrange" occurs="?"/>
<xs:element type="xs:byte" name="body" occurs="?"/>
<xs:element type="xs:byte" name="sig" occurs="?"/>
<xs:element type="xs:byte" name="sigsonar occurs="?"/>
<xs:element type="reflist" name="included" occurs="?"/>
</xs:sequence>
</xs:model>
</xs:extends>
</xs:elementtype>