npc_leech

From Valve Developer Community
Jump to navigation Jump to search
Ent watery leech.png
Info.png
This entity is not in the FGD by default.
It should not be put directly in a map because the model lacks the required animations. You can use it with if used a custom model. Included in Enhanced-Black-Mesa-FGD.

npc_leech is a point entity available in Black Mesa Black Mesa. It is a leech from xen border world.

Although Crowbar Collective didn't added leeches to the levels because they "felt like they didn't add anything but frustration to the water parts", this entity appeared with xen public beta versions.

By default, this entity doesn't do anything, because the model from Half-Life 2 Half-Life 2 lacks the required animations. Using Half-Life: Source Half-Life: Source model will make this NPC fully functional, although you will still get some errors in the console.

The AI is clone of what can be seen with monster_leech from Half-Life: Source Half-Life: Source, including some bugs. They cannot swim vertically and are quite passive, this is it's better to use them in water areas where player can't swim.

All keyvalues, inputs and outputs are same as CBaseCombatCharacter.

Represented by class CNPC_Leech.

Note.pngNote:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.

Dedicated Console Variables

Cvar/Command Parameters or default value Descriptor Effect
sk_leech_health 2 Float The amount of health for this NPC.
sk_leech_dmg_bite 2 Float The amount damage from melee attack of this NPC.

See also