Warning! Reading the code of this BASE may cause a severe brain aneurysm (not really).
Viewer Discretion is Advised
A small project of mine aims to add more features to the default AddNPC. While Your good old AddNPC works as intended, I find it very limited. Therefore I present you this monstrosity.
- Ability to set localized % damage resistance/vulnerability
- Ability to set output % damage increase/decrease:
Damage resistance based on body parts.
- Ability to set random or specified body groups,
- Ability to set random or specified skins,
- Ability to set a custom material,
- Ability to override or edit sounds,
- Ability to edit the model scale,
- Ability to edit bones,
Scale, position, angle, or to enable jigglebones.
- Ability to add custom dispositions/relations,
Based on names, entity classes, NPC factions, and VJ classes.
- Ability to increase/decrease the speed or even replace certain activities like reloading,
- Ability to set weapon proficiency and range,
- Full save and dupe support,
- Available custom functions to customize engine NPCs even further,
- Kill feed NPC's name support,
- Build in health regeneration mechanic,
- Support for in-engine entities,
Ever wanted a spawnable Citadel Super Suit Charger?
- Support for the Hammer Editor?
In theory you can change NPC's/Entity's parentname KeyValue to a certain ANP NPC/Entity name, which will be applied on the map load.
- Level Transition support,
Half-Life 2 campaign maps for example.
- anplus_reload_ents
The BASE will look over all of the currently spawned NPCs and if it finds an NPC with a matching ANPlus NPC name (and entity class) it will turn that NPC into one.
- anplus_set_ent ANPNAME
Allows you to turn any NPC (with a matching entity class) into an ANPlus NPC.
- anplus_start_invasion
A command to start the invasion.
- anplus_ff_disabled 0/1
Disable the Anti-Friendly Fire feature.