weapons.dat Format

Label

Offset0x0000
Length260 bytes (2 bytes / Weapon)
DescriptionLabel displayed for this weapon in unit's status bar. Corresponds to an entry in the rez\stat_txt.tbl file.
ValuesInteger value from 0 to the last index of the rez\stat_txt.tbl file.

Missile Sprite

Offset0x0104
Length520 bytes (4 bytes / Weapon)
DescriptionSprite displayed when the weapon is fired. Corresponds to an entry in the flingy.dat file.
ValuesInteger value between 0 and the # of entries in flingy.dat

Special Attack

Offset0x030C
Length130 bytes (1 byte / Weapon)
DescriptionSpell/special effect to use with this weapon.
Bits
0x00Nothing
0x01Lockdown
0x02EMP Shockwave
0x03Spider Mines
0x04Normal
0x05No Damage
0x06No Damage
0x07Irradiate
0x08Yamato Gun
0x09No Damage
0x0ANo Damage
0x0BNo Damage
0x0CNo Damage
0x0DBroodling
0x0EDark Swarm
0x0FPlague
0x10Consume
0x11Ensnare
0x12Parasite
0x13Psi Storm
0x14Normal
0x15Normal
0x16Stasis
0x171/4 Damage
0x18Restoration
0x19Disruption Web
0x1AUnknown
0x1BUnknown
0x1CUnknown
0x1DFeedback
0x1EOptical Flare
0x1FMaelstrom/Spines
0x20Unknown
0x21Unknown
0x22Unknown
0x23Unknown
0x24Unknown
0x25Unknown
0x26Unknown
0x27Unknown
0x28Unknown
0x29Unknown
0x2AUnknown
0x2BUnknown
0x2CNone

Attack Type

Offset0x038E
Length260 bytes (2 bytes / Weapon)
DescriptionRestrictions for where the weapon can be used.
Bits
0x0001Air Only
0x0002Ground Only
0x0003Air and Ground
0x0004Units Only (No Buildings)
0x0012Ground Units (No Hover or Buildings)
0x0013Ground Units Only (No Buildings
0x0019Mechanical Only
0x0043Non-mechanical Only
0x0053Ground, Ground Units
0x00B2Ground Units (No Buildings, No Archon)
0x011BOwned Units (Consume)

Minimum Range

Offset0x0492
Length520 bytes (4 bytes / Weapon)
DescriptionMinimum range required for this weapon.
ValuesInteger value between 0 and 255.

Maximum Range

Offset0x069A
Length520 bytes (4 bytes / Weapon)
DescriptionMaximum range required to use this weapon.
ValuesInteger value between 0 and 255.

Upgrade Group

Offset0x08A2
Length130 bytes (1 byte / Weapon)
DescriptionUpgrade group which applies to this weapon.
ValuesInteger value between 0 and the last index of the Upgrades.dat file. Common values are:
Bits
0x07Terran Infantry
0x08Terran Vehicle
0x09Terran Ship
0x0AZerg Melee
0x0BZerg Missile
0x0CZerg Flyer
0x0DProtoss Ground
0x0EProtoss Air
0x23Scarab
0x3CNo upgrades

Weapon Type

Offset0x0924
Length130 bytes (1 byte / Weapon)
DescriptionThe type of this weapon.
Bits
0x00Unknown
0x01Explosive
0x02Concussive
0x03Normal
0x04Special

Weapon Behavior

Offset0x09A6
Length130 bytes (1 byte / Weapon)
DescriptionThe behavior this weapon uses.
Bits
0x00Flies to target
0x01Seeks Target
0x02Appears on Target
0x03Unknown
0x04Persistant Explosion
0x05Normal hit
0x06Suicide
0x07Bounce
0x08Spin around (Halo)
0x09Bursts thru ground (Sub. Spines)

Missile Type

Offset0x0A28
Length130 bytes (1 byte / Weapon)
DescriptionThe type of missile this Weapon emulates.
Bits
0x1EHoming
0x3CBouncing
0xFFNormal

Explosion Type

Offset0x0AAA
Length
DescriptionType of explosion which occurs after the weapon hits its target.
Bits
0x00None
0x01Normal
0x02Radial Splash
0x03Line Splash
0x04Lockdown
0x05Unknown
0x06Parasite
0x07Spawn Broodlings
0x08EMP Shockwave
0x09Irradiate
0x0AEnsnare
0x0BPlague
0x0CStasis
0x0DDark Swarm
0x0ERadial Splash
0x0FLine Splash
0x10Restoration
0x11Disruption Web
0x12Corrosive Acid
0x13Mind Control
0x14Feedback
0x15Optical Flare
0x16Maelstrom
0x17Unknown
0x18Air Splash

Splash Value 1

Offset0x0B2C
Length260 bytes (2 bytes / Weapon)
DescriptionSmallest of 3 radii which the Explosion Type uses to deal damage.
ValuesInteger value between 0 and 65535.

Splash Value 2

Offset0x0C30
Length260 bytes (2 bytes / Weapon)
DescriptionMiddle of 3 radii which the Explosion Type uses to deal damage.
ValuesInteger values between 0 and 65535.

Splash Value 3

Offset0x0D34
Length260 bytes (2 bytes / Weapon)
DescriptionLargest of 3 radii which the Explosion Type uses to deal damage.
ValuesInteger value between 0 and 65535.

Damage Amount

Offset0x0E38
Length260 bytes (2 bytes / Weapon)
DescriptionAmount of damage dealt to target. May be adjusted based on the type of unit.
ValuesInteger value between 0 and 65535.

Damage Bonus

Offset0x0F3C
Length260 bytes (2 bytes / Weapon)
DescriptionAmount added to damage when the weapon is upgraded.
ValuesInteger value between 0 and 65535.

Cooldown Delay

Offset0x1040
Length130 bytes (1 byte / Weapon)
DescriptionDelay between attacks with this weapon. Lower values make the weapon attack faster, and higher values make the weapon attack slower.
ValuesInteger value between 1 and 255.

Damage Factor

Offset0x10C2
Length130 bytes (1 byte / Weapon)
DescriptionThe number of "copies" of this weapon a unit assigned this weapon has. To get the actual damage amount for units with more than 1 in the factor category, multiply this value by the Damage Amount.
ValuesInteger value from 0 to 255.

Coordinate Group 1

Offset0x1144
Length260 Bytes (2 bytes / Weapon)
DescriptionActually an x-y pair of values. The first byte is actually the X coordinate, and the second is the Y coordinate.
ValuesInteger values between 0 and 255 for both the X and Y parts of the coordinate.

Coordinate Group 2

Offset0x1248
Length260 Bytes (2 bytes / Weapon)
DescriptionActually an x-y pair of values. The first byte is actually the X coordinate, and the second is the Y coordinate.
ValuesInteger values between 0 and 255 for both the X and Y parts of the coordinate.

Error Message

Offset0x134C
Length260 bytes (2 bytes / Weapon)
DescriptionIndex in the rez\stat_txt.tbl file which this weapon displays if it cannot be used for some reason.
ValuesInteger value between 0 and the last index in rez\stat_txt.tbl

Icon

Offset0x1450
Length260 bytes (2 bytes / Weapon)
DescriptionIcon displayed for this weapon in the unit's status bar.
ValuesInteger value between 0 and 65535.