Difference between revisions of "OBDATA.DAT"
MikeTheRed (talk | contribs) (→Structure: more work) |
|||
Line 10: | Line 10: | ||
<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. | <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:''' BIGOBS.PCK reference | + | '''20:''' BIGOBS.PCK reference |
− | '''21:''' FLOOROB.PCK reference | + | '''21:''' FLOOROB.PCK reference |
− | '''22:''' Weapon Strength | + | '''22:''' Weapon Strength (Same as seen in UFOpaedia) |
− | '''23:''' Item Weight | + | '''23:''' Item Weight? See [43] - could one be inventory weight, and the other thrown weight? |
'''24:''' X Size (width) | '''24:''' X Size (width) | ||
Line 22: | Line 22: | ||
'''25:''' Y Size (height) | '''25:''' Y Size (height) | ||
− | '''26:''' | + | '''26-28:''' Look-up within OBDATA for ammo this weapon uses. Up to three types possible; 255 for no (more) ammo. Note that ammo always directly follows its weapon in this file. |
− | ''' | + | '''29:''' HANDOB.PCK reference |
− | + | '''30:''' Same as 29 | |
− | |||
− | |||
− | |||
− | '''30:''' Same as 29 | ||
'''31:''' Damage Type | '''31:''' Damage Type | ||
Line 39: | Line 35: | ||
4 Plasma | 4 Plasma | ||
5 Stun | 5 Stun | ||
− | 255 Weapon which needs ammo | + | 255 Weapon which needs ammo / "Not Applicable" |
+ | |||
+ | '''32:''' Accuracy, Auto | ||
+ | |||
+ | '''33:''' Accuracy, Snap | ||
+ | |||
+ | '''34:''' Accuracy, Aimed | ||
− | ''' | + | '''35:''' TUs Used, Auto |
− | ''' | + | '''36:''' TUs Used, Snap |
− | ''' | + | '''37:''' TUs Used, Aimed |
− | ''' | + | '''38:''' Ammo Clip size. 10 if a weapon. |
− | ''' | + | '''39:''' All corpses are 0 and everything else is 8 except: |
+ | 0 Plasma pistol clip | ||
+ | 5 Stun rod | ||
+ | 9 Pistol | ||
+ | 9 Pistol clip | ||
− | ''' | + | '''40:''' All corpses 0 and everything else 100 except the three plasma clips and electroflare are also 0. |
− | ''' | + | '''41:''' All corpses 0 and everything else 50 except the three plasma clips and electroflare are also 0, and the stun rod is 30. |
− | + | So a summary of 39 to 41 looks like this: | |
− | + | <u>39</u> <u>40</u> <u>41</u> <u>Objects</u> | |
+ | 0 0 0 All corpses (33 objects) plus the plasma pistol clip(?!) | ||
+ | 5 100 30 Stun rod | ||
+ | 8 0 0 Rifle and heavy plasma clips and electroflare | ||
+ | 8 100 50 Everything else (34 objects) | ||
+ | 9 100 50 Pistol and its clip | ||
− | ''' | + | '''42:''' Explosive strength needed to [[Explosions#Equipment_Destruction|destroy object]] |
− | ''' | + | '''43:''' [[Item Weight]] |
− | '''44:''' | + | '''44:''' Grenade Type |
− | 1 | + | 1 Grenade, Alien Grenade, Hi-Ex |
− | 2 | + | 2 Prox |
− | 3 | + | 3 Smoke |
'''45:''' | '''45:''' | ||
Line 78: | Line 89: | ||
'''49:''' | '''49:''' | ||
− | '''50:''' Is Two-Handed Weapon | + | '''50:''' Is Two-Handed Weapon (Boolean) |
− | '''51:''' Is Blaster Launcher | + | '''51:''' Is Blaster Launcher (Boolean) |
− | '''52:''' Is Alien | + | '''52:''' Is Alien (Boolean) |
− | '''53:''' | + | '''53:''' [[Scoring (UFO Defense)|Scoring]] points |
Revision as of 22:56, 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? See [43] - could one be inventory weight, and the other thrown weight?
24: X Size (width)
25: Y Size (height)
26-28: Look-up within OBDATA for ammo this weapon uses. Up to three types possible; 255 for no (more) ammo. Note that ammo always directly follows its weapon in this file.
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 / "Not Applicable"
32: Accuracy, Auto
33: Accuracy, Snap
34: Accuracy, Aimed
35: TUs Used, Auto
36: TUs Used, Snap
37: TUs Used, Aimed
38: Ammo Clip size. 10 if a weapon.
39: All corpses are 0 and everything else is 8 except:
0 Plasma pistol clip 5 Stun rod 9 Pistol 9 Pistol clip
40: All corpses 0 and everything else 100 except the three plasma clips and electroflare are also 0.
41: All corpses 0 and everything else 50 except the three plasma clips and electroflare are also 0, and the stun rod is 30.
So a summary of 39 to 41 looks like this:
39 40 41 Objects 0 0 0 All corpses (33 objects) plus the plasma pistol clip(?!) 5 100 30 Stun rod 8 0 0 Rifle and heavy plasma clips and electroflare 8 100 50 Everything else (34 objects) 9 100 50 Pistol and its clip
42: Explosive strength needed to destroy object
43: Item Weight
44: Grenade Type
1 Grenade, Alien Grenade, Hi-Ex 2 Prox 3 Smoke
45:
46:
47:
48:
49:
50: Is Two-Handed Weapon (Boolean)
51: Is Blaster Launcher (Boolean)
52: Is Alien (Boolean)
53: Scoring points