mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 14:55:30 +03:00
Some more info
parent
4a943b01f2
commit
47cc89fc86
@ -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** `<void>` - Fires OnUser1, OnUser2, OnUser3, or OnUser4 with a 25% chance of each.
|
||||
* **PassRandomUser** `<any>` - Fires OutUser1, OutUser2, OutUser3, or OutUser4 with a 25% chance of each, passing any parameter.
|
||||
---
|
||||
* **FireOutput** `<string>` - Fires the named output on this entity. Format: `<output name>:<activator>:<caller>:<parameter>:<delay>` (OnDeath:hl3cardgame:gaben). Everything beyond the output name is optional.
|
||||
* **RemoveOutput** `<string>` - 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** `<string>` - Fires the named input on this entity. Format: `<input name>:<parameter>:<activator>:<caller>:<output ID>` (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** `<void>` - 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** `<void>` - Unparents all entities parented to this entity in a movement hierarchy.
|
||||
---
|
||||
* **SetLocalOrigin** `<vector>` - Sets this entity's origin in the map.
|
||||
* **SetLocalAngles** `<vector>` - Set this entity's angles.
|
||||
* **SetLocalVelocity** `<vector>` - Sets this entity's current velocity.
|
||||
* **SetLocalAngularVelocity** `<vector>` - Sets this entity's current angular velocity.
|
||||
---
|
||||
* **AddSpawnFlags** `<integer>` - Adds spawnflag(s) to this entity. Many spawnflags have their respective numbers suffixed in Mapbase's FGD.
|
||||
* **RemoveSpawnFlags** `<integer>` - Removes spawnflag(s) to this entity. Many spawnflags have their respective numbers suffixed in Mapbase's FGD.
|
||||
* **RemoveSpawnFlags** `<integer>` - Removes spawnflag(s) to this entity. Many spawnflags have their respective numbers suffixed in Mapbase's FGD.
|
||||
|
||||
### Outputs
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user