Editing User:Orin/Sandbox/Entity Additions
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 4: | Line 4: | ||
<div style="float:right;clear:all;padding:0 1em;">__TOC__</div> | <div style="float:right;clear:all;padding:0 1em;">__TOC__</div> | ||
All entity-oriented feature additions: Inputs, Outputs, Targetting, etc. are all documented within their own heaps of lists. | All entity-oriented feature additions: Inputs, Outputs, Targetting, etc. are all documented within their own heaps of lists. Remember to visit the [https://developer.valvesoftware.com/wiki/List_of_Team_Fortress_2_Entities VDC] for any confusion about the entities shown here. | ||
A set of terms are commonly used in this page. Glossary of the terms: | |||
<!-- Should this be a template? --> | |||
<div class="mw-collapsible mw-collapsed" style="float:left; overflow:auto; border:1px grey solid; display:inline-block;"> | |||
<div class="mw-collapsible-content" style="padding-right:6em; max-width:22em;"> | |||
* <code>int</code> - Integer. A plain number. | |||
* <code>float</code> - A "number" with decimals. | |||
* <code>string</code> - A word, or a string of characters. | |||
* <code><datatype></code> - Required parameter. | |||
* <code>[datatype]</code> - Optional parameter. | |||
</div></div><br clear="all"> | |||
== I/O Expansions == | == I/O Expansions == | ||
Line 27: | Line 36: | ||
=== Entity I/O Additions === | === Entity I/O Additions === | ||
==== <div style="font-size: 110%;">All Entities</div> ==== | ==== <div style="font-size: 110%;">All Entities</div> ==== | ||
<b>Inputs</b> | <b>Inputs</b> | ||
* $FireUserAsActivator1-4 <string> | |||
** Acts like FireUser1-4, but the entity becomes the !activator, and the parameter is passed in OnUser1-4 output | |||
*$FireUser5-8 <string> | |||
** Fires custom $onuser5-8 output | |||
* $TakeDamage <int> | |||
** Take specified amount of damage | |||
* $TakeDamageFromActivator <int> | |||
** Take specified amount of damage, the !activator is the damage inflictor | |||
* $SetModel <string> | |||
** Set custom model | |||
* $SetModelOverride <string> | |||
** Set custom model, only changes the appearence | |||
* $SetModelSpecial <string> | |||
** Set custom model, in a special way, it does less additional changes to the entity | |||
* $SetOwner <entity> | |||
** Set entity owner | |||
* $InheritOwner <entity> | |||
** Set entity owner to the passed entity owner | |||
* $InheritParent <entity> | |||
** Set entity parent to the passed entity parent | |||
* $GetKeyValue <string> | |||
** Fire OnUser1 output, with key value as a parameter | |||
* $MoveType <int>,<int> | |||
** Set move type | |||
* $PlaySound <string> | |||
** Play sound from this entity | |||
* $StopSound <string> | |||
** Stop playing sound from this entity | |||
* $SetLocalOrigin <vector> | |||
** Set origin relative to parent | |||
* $SetLocalAngles <vector> | |||
** Set angles relative to parent | |||
* $SetLocalVelocity <vector> | |||
** Set velocity relative to parent | |||
* $TeleportToEntity <entity> | |||
** Teleport to specified entity | |||
* $MoveRelative <vector> | |||
** Move relative to parent (world) | |||
* $RotateRelative <vector> | |||
** Rotate relative to parent (world) | |||
*$SetKey$(keyvalue name) <string> | |||
**Set keyvalue to specified value | |||
*$GetKey$(keyvalue name) <string> | |||
**parameter format: entity|input|default value | |||
**example: !activator|$DisplayTextCenter|def | |||
**Trigger the input of an entity, with keyvalue as a paramer (default value if not found) | |||
*$SetVar$(variable name) <string> | |||
**Set custom entity variable | |||
*$GetVar$(variable name) <string> | |||
**parameter format: entity|input|default value | |||
**example: !activator|$DisplayTextCenter|def | |||
**Trigger the input of an entity, with variable as a paramer (default value if not found) | |||
*$SetData$([https://raw.githubusercontent.com/powerlord/tf2-data/master/datamaps.txt datamap] prop name) <string> | |||
**Set datamap property to specified value | |||
*$GetData$([https://raw.githubusercontent.com/powerlord/tf2-data/master/datamaps.txt datamap] prop name) <string> | |||
**parameter format: entity|input|default value | |||
**example: !activator|$DisplayTextCenter|def | |||
**Trigger the input of an entity, with datamap prop as a paramer (default value if not found) | |||
*$SetProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name) <string> | |||
**Set send property to specified value | |||
*$GetProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name) <string> | |||
**parameter format: entity|input|default value | |||
**example: !activator|$DisplayTextCenter|def | |||
**Trigger the input of an entity, with send prop as a paramer (default value if not found) | |||
Trigger the input of an entity, with keyvalue as a | |||
Trigger the input of an entity, with variable as a | |||
Trigger the input of an entity, with datamap prop as a | |||
Trigger the input of an entity, with send prop as a | |||
<b>Outputs</b> | <b>Outputs</b> | ||
* $OnUser5-8 <string> | |||
** Called when $FireUser5-8 input is used | |||
* $OnKilled | |||
** Fired when the entity is killed. The calling entity no longer exist and cannot be accessed | |||
==== <div style="font-size:110%;">logic_case</u> ==== | ==== <div style="font-size:110%;">logic_case</u> ==== |