Item drops

In the original Tomb Raider I, items dropped by enemies were hardcoded such that only specific enemies could drop, and the items and quantities that they dropped were immutable. This is no longer the case, with the game flow providing a mechanism to allow the majority of enemy types to carry and drop items. Note that this also means by default that the original enemies who did drop items will not do so unless the game flow has been configured as such.

Item drops can be defined in two ways. If enable_tr2_item_drops is true, then custom level builders can add items directly to the level file, setting their position to be the same as the enemies who should drop them.

For the original levels, enable_tr2_item_drops is false. Item drops are instead defined in the item_drops section of a level's definition by creating objects with the following parameter structure. You can define at most one entry per enemy, but that definition can have as many drop items as necessary (within the engine's overall item limit).

Show example setup
{
    "path": "data/example.phd",
    "music_track": 57,
    "item_drops": [
        {"enemy_num": 17, "object_ids": [86]},
        {"enemy_num": 50, "object_ids": [87]},
        {"enemy_num": 12, "object_ids": [93, 93]},
        {"enemy_num": 47, "object_ids": [111]},
    ],
    "sequence": [
         {"type": "loop_game"},
         {"type": "level_stats"},
         {"type": "level_complete"},
    ],
},

This translates as follows.

  • Enemy #17 will drop the magnums
  • Enemy #50 will drop the uzis
  • Enemy #12 will drop two small medipacks
  • Enemy #47 will drop puzzle 2
Parameter Type Description
enemy_num Integer The index of the enemy in the level's item list.
object_ids Integer / string array A list of item types to drop. These items will spawn dynamically and do not need to be added to the level file. Duplicate IDs are permitted in the same array.

You can also toggle convert_dropped_guns in global properties. When true, if an enemy drops a gun that Lara already has, it will be converted to the equivalent ammo. When false, the gun will always be dropped.

Enemy validity

All enemy types are permitted to carry and drop items. This includes regular enemies as well as TR1 Atlantean pods (objects 163, 181), TR1 centaur statues (object 161), and TR2 statues (objects 42, 44). For pods, the items will be allocated to the creature within (obviously empty pods are excluded).

Items dropped by flying or swimming creatures will fall to the ground (TR1 only).

For clarity, following is a list of all enemy type IDs which you can reference when building your game flow. The game flow will ignore drops for non-enemy type objects, and a suitable warning message will be produced in the log file.

TR1TR2
Object ID NameObject ID Name
7Wolf15Dog
8Bear16Masked Goon 1
9Bat17Masked Goon 2
10Crocodile18Masked Goon 3
11Alligator19Knife Thrower
12Lion20Shotgun Goon
13Lioness21Rat
14Puma22Dragon Front
15Ape25Shark
16Rat26Eel
17Vole27Big Eel
18T-rex28Barracuda
19Raptor29Scuba Diver
20Flying mutant30Gunman Goon 1
21Grounded mutant (shooter)31Gunman Goon 2
22Grounded mutant (non-shooter)32Stick Wielding Goon 1
23Centaur33Stick Wielding Goon 2
24Mummy (Tomb of Qualopec)34Flamethrower Goon
27Larson35Jellyfish
28Pierre (not runaway)36Spider
30Skate kid37Giant Spider
31Cowboy38Crow
32Kold39Tiger
33Natla (items drop after second phase)40Marco Bartoli
34Torso41Xian Spearman
42Xian Spearman Statue
43Xian Knight
44Xian Knight
45Yeti
46Bird Monster
47Eagle
48Mercenary 1
49Mercenary 2
50Mercenary 3
52Black Snowmobile Driver
214T-Rex

Item validity

The following object types are capable of being carried and dropped. The game flow will ignore anything that is not in this list, and a suitable warning message will be produced in the log file.

TR1TR2
Object IDNameObject IDName
84Pistols135Pistols
85Shotgun136Shotgun
86Magnums137Automatic Pistols
87Uzis138Uzis
89Shotgun ammo139Harpoon Gun
90Magnum ammo140M16
91Uzi ammo141Grenade Launcher
93Small medipack142Pistol Clips
94Large medipack143Shotgun Shells
110Puzzle1144Automatic Pistol Clips
111Puzzle2145Uzi Clips
112Puzzle3146Harpoons
113Puzzle4147M16 Clips
126Lead bar148Grenades
129Key1149Small Medipack
130Key2150Large Medipack
131Key3152Flare
132Key4151Flares Box
141Pickup1174Puzzle Item 1
142Pickup2175Puzzle Item 2
144Scion (à la Pierre)176Puzzle Item 3
177Puzzle Item 4
193Key 1
194Key 2
195Key 3
196Key 4
205Pickup Item 1
206Pickup Item 2
190Secret 1
191Secret 2
192Secret 3