Skip to content

New OCB and Setup Instructions for Legacy Objects

Kuba Bilinski edited this page Nov 4, 2022 · 25 revisions

Below you will find the existing and NEW Object Code Bits (OCB) for objects. Any specific levels where an entity exists once (ie: the famous Midas gold effect) have their original data file listed as xxx . exstention .

Please note that these OCB values are for Tomb Engine ONLY.

Generic

Switch_Type X

  • 0 for wall switch
  • 1 for small wall switch
  • 2 for small button
  • 3 for big button
  • 4 for giant button (sequence switch)
  • 5 for valve turn
  • 6 for hole switch
  • any other OCBs play corresponding switch on anim or OCB+1 switch off anim.

Tomb Raider : Starring Lara Croft

ID_WINGED_MUMMY

  • 1 - Start off flying when triggered.
  • 2 - Start off as a mummy when triggered.
  • 4 - Start posed.
  • 8 - No Wings.
  • 16 - Disable Bomb Attack.
  • 32 - Disable Shard Attack.

Tomb Raider II: The Dagger of Xian.

Tomb Raider III: Adventures of Lara Croft.

ID_COBRA

  • To correct the death animation: please change the STATE ID of ANIMATION 5: "COBRA_ANIM_DEATH" from 0 to 4

Tomb Raider IV: The Last Revelation.

ID_ROLLINGBALL

  • 1 - Rollingball silent mode - No camera shake or sound.

ID_TEETH_SPIKES

  • 0 - Ordinary TR4 teeth spikes behaviour
  • 1 - Spikes stuck out constantly
  • 2 - Stick out once and retract forever
  • 3 and onwards - OCB specifies spikes retraction delay in frames, i.e. OCB 30 = spikes will delay for 1 second, OCB 60 = 2 seconds, etc

ID_HAMMER Hall.TR4

  • 0 - Does not animate but will cause Lara damage if collided.
  • 2 - Hardcoded Obelisk set up.
  • 3 - Triggers once, then raises up and remains there.
  • 4 - Works like OCB 3 but will not stop. So once triggered will continuously raise, smackdown, raise up and then loop every two seconds.

ID_WATERFALLMIST

  • OCB XXYY where XX is width, and YY is sprite size

for example:

  • 1030 = width of 1000 (around 1024 units which is 1 sector) and 30 in sprite size

Tomb Raider Chronicles

ID_HITMAN

  • Set room type to "No Lens Flare" and he will choke to death.

Clone this wiki locally