Skip to content

Entity: Cobra

Adngel edited this page Feb 15, 2023 · 1 revision

cobraPic

Description:

Included in TR3, cobra or rattle snakes are enemies that doesn't chase Lara, instead they remains dormant until the player get close, then the cobra rises and try to bite the player. If hit, it causes poison.

Links:


OCB and AI

No OCB or AI objects in use.

Behaviour

  • HP: 8
  • Damage: 80
  • Poison power: 8

Snake has different states depending of Lara's distance.

  • If Lara is further than 2 sectors and half, the snake goes to sleep.
  • If Lara is closer than 1 sectors and half, the snake rises up.
  • If Lara is closer than 1 sectors, the snake attacks.

If the cobra is rising up or attacking, it rotates facing to Lara, as long as there were not obstacles between it and the target.


Technical

  • Itemflags[2] - temporal space for the health during "Not Targetable" phase (on sleep state).

Conversion Requirements

  • Cobra can be taken from TR3 games, Temple ruins and Nevada desert.
  • To correct the death animation: please change the STATE ID of ANIMATION 5: "COBRA_ANIM_DEATH" from 0 to 4

Clone this wiki locally