From 916a1d0b4abb685f108e45ecb90c2d58d4fd8896 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Thu, 28 Nov 2019 18:51:36 -0600 Subject: [PATCH] Updated Base NPC (markdown) --- Base-NPC.md | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/Base-NPC.md b/Base-NPC.md index 14e646c..949775d 100644 --- a/Base-NPC.md +++ b/Base-NPC.md @@ -10,27 +10,28 @@ Some I/O were ported from other games or were already possible through other, mo ### Inputs --- -* **SetHealthFraction** `` - Sets this NPC's health as a ratio in between 0 and 1. This input already existed on npc_helicopter, but it was expanded to be used on any NPC. +* **SetHealthFraction** `` - Sets a NPC's health as a ratio in between 0 and 1. This input already existed on npc_helicopter, but it was expanded to be used on any NPC. --- -* **GiveWeaponHolstered** `` - Gives the NPC the specified weapon, but make it start holstered (meaning the NPC has to get it out on their own). -* **ChangeWeapon** `` - Holsters the NPC's current weapon, and then unholsters the specified weapon. -* **PickupWeapon** `` - Tells the NPC to look for and pick up the specified weapon entity, which should already be in the world. -* **PickupItem** `` - Tells the NPC to look for and pick up the specified item, like a health vial or even a frag grenade. +* **GiveWeaponHolstered** `` - Gives a NPC the specified weapon, but make it start holstered (meaning the NPC has to get it out on their own). +* **ChangeWeapon** `` - Holsters a NPC's current weapon, and then unholsters the specified weapon. +* **PickupWeapon** `` - Makes a NPC look for and pick up the specified weapon, which should be an entity in the world. +* **PickupItem** `` - Makes a NPC look for and pick up the specified item, like a health vial or even a frag grenade. + +[[Additional weapon inputs exist.|Base Combat Character]] + --- -* **SetFriendlyFire** `` - Overrides how this NPC should treat friendly fire. 0 = No friendly fire, 1 = Friendly fire, 2 = Use NPC settings/no override -* **SetDynamicInteractions** `` - Sets this NPC's ability to use dynamic interactions. 0 = No interactions allowed, 1 = All interactions allowed, 2 = Non-Mapbase interactions only -* **SetProficiencyOverride** `` - Overrides this NPC's weapon proficiency. -* **SetForceServerRagdoll** `` - Forces this NPC to turn into a serverside prop_ragdoll instead of a clientside ragdoll when it dies. +* **SetFriendlyFire** `` - Overrides how the game should treat friendly fire towards a specific NPC. 0 = No friendly fire, 1 = Friendly fire, 2 = Use NPC settings/no override +* **SetDynamicInteractions** `` - Sets a NPC's ability to use dynamic interactions. 0 = No interactions allowed, 1 = All interactions allowed, 2 = Non-Mapbase interactions only --- -* **AddCapabilities** `` - Adds the specified `Capability_t` capabilities to the NPC. See (Enum-Reference)[Enum Reference] for more info. -* **RemoveCapabilities** `` - Removes the specified `Capability_t` capabilities to the NPC. See (Enum-Reference)[Enum Reference] for more info. +* **AddCapabilities** `` - Adds the specified `Capability_t` capabilities to a NPC. See (Enum-Reference)[Enum Reference] for more info. +* **RemoveCapabilities** `` - Removes the specified `Capability_t` capabilities to a NPC. See (Enum-Reference)[Enum Reference] for more info. --- -* **SetCondition** `` - Adds the specified condition to this NPC. -* **RemoveCondition** `` - Removes the specified condition from this NPC. +* **SetCondition** `` - Adds the specified condition to a NPC. +* **RemoveCondition** `` - Removes the specified condition from a NPC. --- -* **SetHintGroup** `` - Sets this NPC's hint group. +* **SetHintGroup** `` - Sets a NPC's hint group. --- -* **SetThinkNPC** `` - Sets this entity's general think function to `CallNPCThink`. A float can be passed to delay this by a specific time. +* **SetThinkNPC** `` - Sets an entity's general think function to `CallNPCThink`. A float can be passed to delay this by a specific time. ### Outputs --- @@ -43,8 +44,6 @@ Some I/O were ported from other games or were already possible through other, mo ### KeyValues --- -* **Friendly fire override** `` - Overrides how this NPC should treat friendly fire. 0 = No friendly fire, 1 = Friendly fire, 2 = Use NPC settings/no override -* **Dynamic interactions enabled** `` - Sets this NPC's ability to use dynamic interactions. 0 = No interactions allowed, 1 = All interactions allowed, 2 = Non-Mapbase interactions only -* **Proficiency override** `` - Overrides a NPC's weapon proficiency. -* **Force server ragdoll** `` - Forces this NPC to turn into a serverside prop_ragdoll instead of a clientside ragdoll when it dies. -* **Spawn with StartScripting** `` - Spawns the NPC in the StartScripting state. +* **Friendly fire override** `` - Overrides how the game should treat friendly fire towards a specific NPC. 0 = No friendly fire, 1 = Friendly fire, 2 = Use NPC settings/no override +* **Dynamic interactions enabled** `` - Sets a NPC's ability to use dynamic interactions. 0 = No interactions allowed, 1 = All interactions allowed, 2 = Non-Mapbase interactions only +* **Spawn with StartScripting** `` - Spawns a NPC in the StartScripting state.