Index  •  2DA  •  Effects  •  File Formats  •  Actions  •  Identifiers  •  Triggers  •  Appendices  •  Site Info  •  Legal

PRO file format

Applies to:
BG2, BG2: ToB

General Description
This file format describes projectiles, and the files are referenced spells and projectile weapons. Projectile files can control:
  • Projectile graphics
  • Projectile speed
  • Projectile area of effect
  • Projectile sound
These files have constant length 512h bytes (single target), or 768 bytes (area effect).

Detailed Description

Offset Size (datatype) Description
0x00000 4 (char array) Signature ('PRO ')
0x00004 4 (char array) Version ('V1.0')
0x00008 2 (word) Projectile type
  • 2 single target
  • 3 area of effect
0x0000a 2 (word) Projectile speed (0x01 to 0xFF)
0x0000c 2 (word) Sparking flags
  • bit 0: Sparks
  • bit 1: Flying projectile
  • bit 2: Looping sound
  • bit 3: Unknown
  • bit 4: Ignore centre
0x0000e 2 (word) Unknown
0x00010 8 (resref) WAVC file
0x00018 8 (resref) WAVC file (explosion/reach destination)
0x00020 8 (resref) WAVC file
0x00028 4 (dword) Spark colour
  • 0 = Crashes
  • 1 = Black
  • 2 = Blue
  • 3 = Purple and amber
  • 4 = Gold
  • 5 = Green
  • 6 = Purple
  • 7 = Red
  • 8 = White
  • 9 = Aqua
  • 10 = Stone
  • 11 = Magenta
  • 12 = Orange
0x0002c 212 (byte) Unknown
0x00100 4 (dword) Flags
  • bit 0: Enable BAM colouring
  • bit 1: Enable smoke
  • bit 2: Unknown
  • bit 3: Darken projectile
  • bit 4: Unknown
  • bit 5: Enable shadow
  • bit 6: Enable light spot
  • bit 7: Translucent
0x00104 8 (resref) Projectile animation (BAM)
0x0010c 8 (resref) Shadow animation (BAM)
0x00114 1 (byte) Projectile number (BAM sequence)
0x00115 1 (byte) Shadow number (BAM sequence)
0x00116 2 (word) Light spot intensity
0x00118 2 (word) Light spot width
0x0011a 2 (word) Light spot height
0x0011c 8 (resref) Palette (BMP)
  • STTRAVL1 = Blue
  • STTRAVL2 = Yellow
  • STTRAVL3 = Green
  • STTRAVL4 = Purple
  • STTRAVL5 = Pale purple
  • STTRAVL6 = Pink
  • STTRAVL7 = Blue
  • STTRAVL8 = Gold
0x00124 7 (bytes) Projectile colours
0x0012b 1 (byte) Smoke puff delay
0x0012c 7 (bytes) Smoke colours
0x00133 1 (byte)
Face target granularity
  • 1 : Do not face target
  • 5 : Mirrored eastern directions (reduced granularity)
  • 9 : Mirrored eastern (full granularity)
  • 16 : Mot mirrored, not reduced
0x00134 2 (short) Projectile smoke animation (animate.ids)
0x00136 8 (resref) Trailing animation 1 (BAM)
0x0013e 8 (resref) Trailing animation 2 (BAM)
0x00146 8 (resref) Trailing animation 3 (BAM)
0x0014e 2 (word) Trailing number 1 (BAM sequence)
0x00150 2 (word) Trailing number 2 (BAM sequence)
0x00152 2 (word) Trailing number 3 (BAM sequence)
0x00154 176 (bytes) Unknown

If the projectile is an area affect projectile then an additional struct is added to the file. It has 100h (256) bytes.

Offset Size (datatype) Description
0x00200 2 (word) Target flags
  • bit 0: Projectile visible
  • bit 1: Triggered by inanimate objects (e.g. doors)
  • bit 2: Triggered on condition
  • bit 3: No overlapping effects
  • bit 4: Use secondary projectile
  • bit 5: Use fragment graphics
  • bit 6: Target selection*
  • bit 7: Target selection*
  • bit 8: Unknown
  • bit 9: Multiple set off
  • bit 10: Use VVC
  • bit 11: Cone shape
  • bit 12: Unknown
  • bit 13: No explosion
  • bit 14: Delayed explosion
  • bit 15: Affect only one target

  • *Target selection is relative to caster:
    • 00 Affect all
    • 01 Affect only enemies
    • 10 Affect all
    • 11 Affect only allies
0x00202 2 (word) Unknown
0x00204 2 (word) Trigger radius (divide by approx 8.5 to receive radius in feet)
0x00206 2 (word) Area of effect (divide by approx 8.5 to receive radius in feet)
0x00208 8 (resref) Trigger sound
0x00210 2 (word) Explosion delay
0x00212 2 (short) Fragment animation (animate.ids)
0x00214 2 (word) Secondary projectile (projectl.ids-1)
0x00216 1 (byte) Duration/Trigger count
0x00217 1 (byte) Explosion animation (fireball.ids)
0x000218 1 (byte) Explosion colour
0x000219 1 (byte) Unknown
0x00021a 2 (bytes) Explosion projectile (projectl.ids).
0x00021c 8 (resref) Explosion animation (VVC)
0x000224 2 (word) Cone width (0x0 to 0xFF)
0x000226 218 (bytes) Unknown