Updated Base Entity (markdown)

Blixibon 2019-09-16 10:18:38 -05:00
parent 30ef0d0da3
commit 0c8fcf2f01

@ -1,4 +1,4 @@
This page lists all changes to `CBaseEntity`, the class that every single entity in the Source engine derives from. This means every entity in Hammer technically possesses these changes, but whether they actually show up depend on how relevant the changes are to a certain entity. (e.g. "Draw/UndrawEntity" is irrelevant on logic entities)
This page lists changes to `CBaseEntity`, which every single entity in the Source engine derives from. This means every entity in Hammer technically possesses these changes, but whether they actually show up depend on how relevant the changes are to a certain entity. (e.g. "Enable/DisableDraw" is irrelevant on logic entities)
Some I/O were ported from other games or were already possible through other, more complicated means (e.g. keyvalues changed with AddOutput).
@ -36,10 +36,11 @@ New User I/O that could pass parameters:
* **RemoveSpawnFlags** `<integer>` - Removes spawnflag(s) from this entity. Many spawnflags have their respective numbers suffixed in Mapbase's FGD.
* **SetRenderMode** `<integer>` - Sets this entity's render mode.
* **SetRenderFX** `<integer>` - Sets this entity's render FX.
* **SetViewHideFlags** `<flags>` - Sets view ID hide flags. See [Drawing entities in specific view IDs](Drawing-entities-in-specific-view-IDs) for more information.
* **AddEffects** `<integer>` - Adds to this entity's effects flags.
* **RemoveEffects** `<integer>` - Removes from this entity's effects flags.
* **DrawEntity** `<void>` - Draws this entity if it was undrawn before. Equivalent to `RemoveEffects > 32`.
* **UndrawEntity** `<void>` - Undraws this entity if it was drawn before. Equivalent to `AddEffects > 32`.
* **EnableDraw** `<void>` - Draws this entity if it was undrawn before. Equivalent to `RemoveEffects > 32`. This was originally named `DrawEntity`, but it was changed to `EnableDraw` for the input in Portal 2.
* **DisableDraw** `<void>` - Undraws this entity if it was drawn before. Equivalent to `AddEffects > 32`. This was originally named `UndrawEntity`, but it was changed to `DisableDraw` for the input in Portal 2.
* **AddEFlags** `<integer>` - Adds to this entity's EFlags.
* **RemoveEFlags** `<integer>` - Removes from this entity's EFlags.
* **SetMoveType** `<integer>` - Sets this entity's movetype.
@ -66,4 +67,6 @@ New User I/O that could pass parameters:
### KeyValues
---
No new keyvalues have actually been added to CBaseEntity, although the owner entity can now be accessed with the **OwnerEntity** keyvalue and m_fFlags can now be accessed with the aptly named **m_fFlags** keyvalue, but neither are actually used in any base FGD classes to avoid clutter.
* **View ID nodraw** `<flags>` - Controls whether an entity shouldn't be drawn in specific parts of the view rendering process. See [Drawing entities in specific view IDs](Drawing-entities-in-specific-view-IDs) for more information.
---
The owner entity can now be accessed with the **OwnerEntity** keyvalue and m_fFlags can now be accessed with the aptly named **m_fFlags** keyvalue, but neither are actually used in any base FGD classes to avoid clutter.