diff --git a/Base-Entity.md b/Base-Entity.md index 45f3fa2..a26fdf8 100644 --- a/Base-Entity.md +++ b/Base-Entity.md @@ -9,25 +9,47 @@ New User I/O that could pass parameters: * **PassUser2** `` - Fires OutUser2 with the any parameter. * **PassUser3** `` - Fires OutUser3 with the any parameter. * **PassUser4** `` - Fires OutUser4 with the any parameter. - +--- * **FireRandomUser** `` - Fires OnUser1, OnUser2, OnUser3, or OnUser4 with a 25% chance of each. * **PassRandomUser** `` - Fires OutUser1, OutUser2, OutUser3, or OutUser4 with a 25% chance of each, passing any parameter. --- -* **FireOutput** `` - Fires the named output on this entity. Format: `::::` (OnDeath:hl3cardgame:gaben). Everything beyond the output name is optional. -* **RemoveOutput** `` - Removes all instances of the named output on this entity. Wildcards are supported, meaning you could just pass '*' to wipe all outputs from this entity. -* **AcceptInput** `` - Fires the named input on this entity. Format: `::::` (SetTarget:cheese). Everything beyond the input name is optional. Mind the fact this is arranged differently from FireOutput, having the parameter right after the input name. -* **CancelPending** `` - Cancels any events fired by this entity that are currently pending in the I/O event queue. This input originated from logic_relay, but it's been promoted to a base input so anyone could cancel their outputs. +* **SetTarget** `` - A special new input designed to change an entity's "target", including things like path_track paths and env_gunfire targets. By default, this changes the common `target` keyvalue on entities. Some entities override SetTarget for their own keyvalues, e.g. `scripted_sequence`'s target NPC. This also calls `Activate()`, which is commonly used to assign m_target to cached entity handles. +* **SetOwnerEntity** `` - Sets the owner entity. Owner entities are used for kill credit, non-collision, etc. --- -* **FreeChildren** `` - Unparents all entities parented to this entity in a movement hierarchy. +* **SetHealth** `` - Sets an entity's health. This input already existed on several entities, but now it's part of all entities. +* **AddHealth/RemoveHealth** `` - Adds to/removes from an entity's health. These inputs already existed on props and func_breakables, but now they're part of all entities, including NPCs. +* **SetMaxHealth** `` - Sets an entity's maximum health. This will not change the entity's current health unless it exceeds the new maximum. --- -* **SetLocalOrigin** `` - Sets this entity's origin in the map. -* **SetLocalAngles** `` - Set this entity's angles. -* **SetLocalVelocity** `` - Sets this entity's current velocity. -* **SetLocalAngularVelocity** `` - Sets this entity's current angular velocity. +* **FireOutput** `` - Fires the named output on an entity. Format: `::::` (OnDeath:hl3cardgame:gaben). Everything beyond the output name is optional. +* **RemoveOutput** `` - Removes all instances of the named output on an entity. Wildcards are supported, meaning you could just pass '*' to wipe all outputs from this entity. +* **AcceptInput** `` - Fires the named input an this entity. Format: `::::` (SetTarget:cheese). Everything beyond the input name is optional. Mind the fact this is arranged differently from FireOutput, having the parameter right after the input name. +* **CancelPending** `` - Cancels any events fired by an entity that are currently pending in the I/O event queue. This input originated from logic_relay, but it's been promoted to a base input so any entity could cancel their outputs. +--- +* **FreeChildren** `` - Unparents all entities parented to an entity in a movement hierarchy. +--- +* **SetLocalOrigin** `` - Sets an entity's origin in the map. +* **SetLocalAngles** `` - Set an entity's angles. +* **SetLocalVelocity** `` - Sets an entity's current velocity. +* **SetLocalAngularVelocity** `` - Sets an entity's current angular velocity. +--- +* **AddSpawnFlags** `` - Adds spawnflag(s) to an entity. Many spawnflags have their respective numbers suffixed in Mapbase's FGD. +* **RemoveSpawnFlags** `` - Removes spawnflag(s) from an entity. Many spawnflags have their respective numbers suffixed in Mapbase's FGD. +* **SetRenderMode** `` - Sets an entity's render mode. +* **SetRenderFX** `` - Sets an entity's render FX. +* **AddEffects** `` - Adds to an entity's effects flags. +* **RemoveEffects** `` - Removes from an entity's effects flags. +* **DrawEntity** `` - Draws an entity if it was undrawn before. Equivalent to `RemoveEffects > 32`. +* **UndrawEntity** `` - Undraws an entity if it was drawn before. Equivalent to `AddEffects > 32`. +* **AddEFlags** `` - Adds to an entity's EFlags. +* **RemoveEFlags** `` - Removes from an entity's EFlags. +* **SetMoveType** `` - Sets an entity's movetype. +* **SetCollisionGroup** `` - Sets an entity's collision group. +--- +* **Touch** `` - Simulates the specified entity touching the entity receiving this input. (e.g. a trigger receiving this input with a player as the parameter will be triggered by that player) +--- +* **KillIfNotVisible** `` - Kills this entity if it's not visible to any players. +* **KillWhenNotVisible** `` - Kills this entity when it's not visible to any players. A specific amount of time before this is evaluated can be passed. --- -* **AddSpawnFlags** `` - Adds spawnflag(s) to this entity. Many spawnflags have their respective numbers suffixed in Mapbase's FGD. -* **RemoveSpawnFlags** `` - Removes spawnflag(s) to this entity. Many spawnflags have their respective numbers suffixed in Mapbase's FGD. -* **RemoveSpawnFlags** `` - Removes spawnflag(s) to this entity. Many spawnflags have their respective numbers suffixed in Mapbase's FGD. ### Outputs ---