From 47cc89fc868b22e58b786fdee954dc6c032b68ef Mon Sep 17 00:00:00 2001 From: Blixibon Date: Fri, 17 May 2019 10:09:23 -0500 Subject: [PATCH] Some more info --- Base-Entity.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Base-Entity.md b/Base-Entity.md index 63228c0..45f3fa2 100644 --- a/Base-Entity.md +++ b/Base-Entity.md @@ -1,4 +1,6 @@ -Mapbase makes several changes to the base entity class that every single entity in the Source engine derives from. This means every entity in the FGD possesses these changes. +This page lists all changes to `CBaseEntity`, the class that every single entity in the Source engine derives from. This means the all entities in Hammer technically possess these changes (except for internal entities removed on compile), although whether they actually show up depend on how relevant they are. (e.g. "Draw/UndrawEntity" is irrelevant on logic entities) + +Some I/O were ported from other games or were already possible through other, more complicated means (e.g. AddOutput). ### Inputs --- @@ -10,6 +12,22 @@ New User I/O that could pass parameters: * **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. +--- +* **FreeChildren** `` - Unparents all entities parented to this entity in a movement hierarchy. +--- +* **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. +--- +* **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 ---