Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
trs:npc_behaviour [2017/02/02 20:56]
stohrendorf ↷ Page moved from opentomb:trs:npc_behaviour to trs:npc_behaviour
trs:npc_behaviour [2017/11/17 12:19] (current)
stohrendorf
Line 1: Line 1:
 +{{indexmenu_n>6}}
 +
 ====== Non-Player Character Behaviour ====== ====== Non-Player Character Behaviour ======
  
Line 85: Line 87:
 }; };
 </code> </code>
-In ''%%OverlapIndex%%'', the high bit is sometimes set; this occurs in front of swinging doors and the likeThat basically means they are unpassable by large enemies, like the T-Rex.+The ''%%OverlapIndex%%'' contains a block mask for path finding by enemies in two highest bits: Bit 15 (blockable) and bit 14 (blocked)The first one marks it as unpassable by large enemies, like the [[:items:details:tr1:trex|T-Rex (ID 18)]], the [[:items:details:tr1:mutant|Mutant (ID 20)]] or the [[:items:details:tr1:centaur|Centaur (ID 23)]] and is always set behind doors. The second one marks it unpassable for other enemies and is set for movable blocks (if blockable bit is set), for closed doors and for some flip maps (set at start).
  
 === Overlaps === === Overlaps ===
trs/npc_behaviour.1486065401.txt.gz · Last modified: 2017/02/02 20:56 (external edit)
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0