Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
opentomb:trs:npc_behaviour [2017/02/02 13:14] – [Data Structures] zdimension | trs:npc_behaviour [2017/11/17 11:19] (current) – stohrendorf | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | |||
====== Non-Player Character Behaviour ====== | ====== Non-Player Character Behaviour ====== | ||
Line 19: | Line 21: | ||
Despite the existence of //script files//, here is no any scripting for entity behaviour, like in most contemporary games. This hardcoding makes it difficult to port the earlier Tomb Raider scenarios to the engines of the later games, which could be desirable with their improved hardware support. While textures, models, and animations can be ported, behaviour cannot be. | Despite the existence of //script files//, here is no any scripting for entity behaviour, like in most contemporary games. This hardcoding makes it difficult to port the earlier Tomb Raider scenarios to the engines of the later games, which could be desirable with their improved hardware support. While textures, models, and animations can be ported, behaviour cannot be. | ||
- | However, there is a small change in TR4 and TR5 which indicates that specific entity behaviour can be altered — it’s called //OCB//. It was briefly described in [[opentomb:trs: | + | However, there is a small change in TR4 and TR5 which indicates that specific entity behaviour can be altered — it’s called //OCB//. It was briefly described in [[trs: |
Sometimes OCB is interpreted as a “packed” field with several values incorporated — like teeth spike OCB contain information about their horizontal and vertical orientation, | Sometimes OCB is interpreted as a “packed” field with several values incorporated — like teeth spike OCB contain information about their horizontal and vertical orientation, | ||
Line 85: | Line 87: | ||
}; | }; | ||
</ | </ | ||
- | In '' | + | The '' |
=== Overlaps === | === Overlaps === | ||
Line 190: | Line 192: | ||
==== AI Data Block in TR4-5 ==== | ==== AI Data Block in TR4-5 ==== | ||
- | Beginning with TR4, AI objects are //not kept along with other entities//. Instead, they have their own structure, which is basically simplified [[opentomb:trs: | + | Beginning with TR4, AI objects are //not kept along with other entities//. Instead, they have their own structure, which is basically simplified [[trs: |
The format of AI object structure as follows: | The format of AI object structure as follows: |