Difference between revisions of "OBDATA.DAT"

From UFOpaedia
Jump to navigation Jump to search
Line 4: Line 4:
 
There are 80 entries, each of which are 54 bytes long. It is 4,320 bytes long.
 
There are 80 entries, each of which are 54 bytes long. It is 4,320 bytes long.
  
Values are presented according to offset (0 to 53) followed by the equivalent hexadecimal offset (00 to 35) in <b>bold</b>.
+
Values are presented according to offset (0 to 53) in <b>bold</b>.
  
 
== Structure ==
 
== Structure ==
  
<b>0-19 / 00-13:</b> Name of object. Delimited by a null character. Note: These are internal names. They all make sense, but are not the names displayed in the game.
+
<b>0-19:</b> Name of object. Delimited by a null character. Note: These are internal names. They all make sense, but are not the names displayed in the game.
  
'''20 / 14:''' BIGOBS.PCK reference.
+
'''20:''' BIGOBS.PCK reference.
  
'''21 / 15:''' FLOOROB.PCK reference.
+
'''21:''' FLOOROB.PCK reference.
  
'''22 / 16:''' Weapon Strength ''- Same as seen in UFOpaedia
+
'''22:''' Weapon Strength ''- Same as seen in UFOpaedia
  
'''23 / 17:''' Item Weight
+
'''23:''' Item Weight
  
'''24 / 18:''' X Size (width)
+
'''24:''' X Size (width)
  
'''25 / 19:''' Y Size (height)
+
'''25:''' Y Size (height)
  
 
'''26:'''  
 
'''26:'''  
Line 28: Line 28:
 
'''28:'''  
 
'''28:'''  
  
'''29 / 1D:''' HANDOB.PCK reference.
+
'''29:''' HANDOB.PCK reference.
  
'''30 / 1E:''' Same as 29.
+
'''30:''' Same as 29.
  
'''31 / 1F:''' Damage Type
+
'''31:''' Damage Type
 
     0  AP
 
     0  AP
 
     1  IN
 
     1  IN
Line 61: Line 61:
 
'''41:''' Mostly all 50's.
 
'''41:''' Mostly all 50's.
  
'''42 / 2A:''' Explosive strength needed to [[Explosions#Equipment_Destruction|destroy object]] ''-- work in progress
+
'''42:''' Explosive strength needed to [[Explosions#Equipment_Destruction|destroy object]] ''-- work in progress
  
 
'''44:''' Explosive Type
 
'''44:''' Explosive Type

Revision as of 17:12, 31 October 2005

General Notes

OBDATA.DAT is found in GEODATA and contains general information on objects found in the game.

There are 80 entries, each of which are 54 bytes long. It is 4,320 bytes long.

Values are presented according to offset (0 to 53) in bold.

Structure

0-19: Name of object. Delimited by a null character. Note: These are internal names. They all make sense, but are not the names displayed in the game.

20: BIGOBS.PCK reference.

21: FLOOROB.PCK reference.

22: Weapon Strength - Same as seen in UFOpaedia

23: Item Weight

24: X Size (width)

25: Y Size (height)

26:

27:

28:

29: HANDOB.PCK reference.

30: Same as 29.

31: Damage Type

   0  AP
   1  IN
   2  HE
   3  Laser
   4  Plasma
   5  Stun
 255  Weapon which needs ammo (i.e., "Not Applicable")

32: Auto % Accuracy

33: Snap % Accuracy

34: Aimed % Accuracy

35: Auto TU Usage

36: Snap TU Usage

37: Aimed TU Usage

38: Ammo Clip size (10 for weapon)

39: Mostly all 8's.

40: Mostly all 100's.

41: Mostly all 50's.

42: Explosive strength needed to destroy object -- work in progress

44: Explosive Type

1 = Grenade, Alien Grenade, HE
2 = Proxy
3 = Smoke Grenade

45:

46:

47:

48:

49:

50: Is Two-Handed Weapon? (Boolean)

51: Is Blaster Launcher? (Boolean)

52: Is Alien? (Boolean)

53: