Changing Enemy Characteristics
by Bedazzled

The use of the Enemy= command allows various characteristics of enemies to be changed. For instance their resistance to Lara's gunfire or how much damage they cause to Lara. They can also be configured as mortal or immortal and even explode when killed. Obviously common sense should be used. While it's fun to watch a crocodile explode when killed with pistols it's not very realistic.

The command is used in the [level] section of the script and has the following syntax: 

Enemy=Slot,HP (Vitality), NEF_flags, TombFlags, Extra, Damage1, Damage2, Damage3

Slot ...............The slot the enemy occupies in the level wad.
HP ................ The enemies resistance to Lara's gunfire.
NEF_flags....... These set a particular behaviour for the slot.
TombFlags ..... This field should be set to IGNORE.
Extra ............ This field is used only with the Wraith 1-4 and the TEETH_SPIKE objects.

Damage1,2,3 fields These fields determine the amount of damage the enemy will cause Lara. Because some enemies can use several weapons against Lara these fields allow you to set different amounts of damage for each weapon.

The table below shows each enemy slot along with the recommended range of values which can be used in each of its damage fields (Arg1,2,3). Also shown is the enemies default damage field values along with the weapon used where relevant to the enemy.




When the Extra field is used with Wraiths 1-4 a value of 0 will disable burning Lara and a value of 1 will enable burning Lara to death.

WRAITH1 Arg1: 0 -1000 Default Flame=ENABLED
WRAITH2 Arg1: 0 -1000 Default Flame=DISABLED
WRAITH3 Arg1: 0 -1000 Default Flame=DISABLED
WRAITH4 Arg1: 0 -1000 Default Flame=DISABLED

The Extra field is also used with the TEETH_SPIKES slot; if you set a value of 1 in the Extra field Lara can walk through the spikes without taking damage. This works only if the teeth spikes have an ocb setting of 20. (Pointing North and static)

NEF_flags

NEF_EXPLODE 

Using this flag the enemy will explode instantly when killed.

NEF_EXPLODE_AFTER

Using this flag the enemy will explode after its death animation has ended.

NEF_ONLY_EXPLODE

The enemy can only be killed with explosive ammo.

NEF_SET_AS_MORTAL

Will transform immortal enemies into mortals.

NEF_NON_TARGET

Lara will not target an enemy with this flag and it becomes immortal.

NEF_NONE

Reserved do not use. If you want to omit a NEF_ flag enter IGNORE

NEF_SET_AS_CREATURE

Experimental, do not use.

NEF_HIT flags

These set the behaviour of Lara's shots on an enemy only one NEF_HIT flag.

NEF_HIT_DEFAULT

This has the same effect as omitting a NEF_HIT flag

NEF_HIT_BLOOD

This will cause blood splatter on the enemy in response to Lara's shots.

NEF_HIT_FRAGMENTS

NEF_HIT_SMOKE

When combining NEF_flags use the plus symbol as shown in this example.

Enemy=BADDY_1,100,NEF_HIT_BLOOD+NEF_EXPLODE,IGNORE,100