Skip to content

zitem.xml

Asunaya edited this page Oct 26, 2017 · 1 revision

ITEM tag attributes

id

The zitem id, which distinguishes different items. This is a 32-bit unsigned value, with possible values ranging from 0 to 2^32. Note that 0 is reserved for the invalid/null item, and the range from 200001 to 299999 inclusive is reserved for quest items. (All quest items must be in this range, and non-quest items must not be.)

name

The name of the item. Max length is 127 bytes.

mesh_name

The name of the mesh used to render the item.

totalpoint

Unused.

type

The type of weapon. Can be "melee", "range", "equip", and "custom".

res_sex

The sex the item is for. This can be "a" for all, "m" for male, or "f" for female.

res_level

The minimum level required to equip the item.

slot

The slot the item is equipped in. This can be "none", "melee" for melee weapons, "range" for ranged weapons, "custom" for items (medkits and grenades), "finger" for rings, "head", "chest", "hands", "legs" and "feet" for clothes, and "extra", which is unused.

weapon

The type of weapon. Can be "dagger", "dualdagger", "katana", "doublekatana", "greatsword", "pistol", "pistolx2", "revolver", "revolverx2", "smg", "smgx2", "shotgun", "sawedshotgun" (unused), "rifle", "machinegun", "rocket", "snifer", "frag", "flashbang", "smoke", "medkit", "repairkit", "bulletkit", "food", "skill" (unused), "enchant_fire", "enchant_cold", "enchant_lightning", and "enchant_poison".

weight

Weight of the item.

bt_price

Bounty price required to purchase the item from the shop.

delay

The delay between shots, in milliseconds.

snd_fire

The sound file played when shooting.

snd_reload

The sound file played when reloading.

snd_dryfire

The sound file played when shooting, but the gun is empty.

damage

The damage done by each attack or bullet.

range

Melee weapon range, in game units. The default is DEFAULT_MELEE_WEAPON_RANGE, which is 160.

angle

Melee weapon angle, in degrees. Ignored: No code exists to read or use it.

ctrl_ability

Controllability.

magazine

The number of bullets in each magazine.

reloadtime

The time it takes to reload, in seconds. The value is read, but not used.

slug_output

Whether the weapon outputs spent cases when shooting. This is a boolean. Mainly exists to be false for revolvers.

Because the value of MICTOK_SLUGOUTPUT is typoed as "slut_output", the parser never reads this property and it is unused. Additionally, the MMatchItem::m_bSlugOutput member that it would've been read into is never used either.

gadget_id

???

image_id

???

bullet_image_id

???

magazine_image_id

???

hp

Offset that this item applies to HP.

ap

Offset that this item applies to AP.

maxwt

Offset that this item applies to the max weight cap.

sf

??? Safefall???

fr

Fire resistance.

cr

Cold resistance.

pr

Poison resistance.

lr

Lightning resistance.

limitspeed

???

limitjump

???

limittumble

???

limitwall

???

color

??? This is 0xFFFFFFFF by default.

desc

Item description, viewable in the slot or inventory.

xp_solo_bonus

???

xp_team_bonus

???

xp_quest_bonus

???

bp_solo_bonus

???

bp_team_bonus

???

bp_quest_bonus

???

duplicate

???