Editing Additions to existing entities
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 1: | Line 1: | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
== Targeting == | == Targeting == | ||
* You can target parent of specified entity by adding @p@. @p@!activator would target parent of the activator entity | * You can target parent of specified entity by adding @p@. @p@!activator would target parent of the activator entity | ||
* You can target children of specified entity by adding @c@ prefix. @c@!activator would target children of the activator entity | * You can target children of specified entity by adding @c@ prefix. @c@!activator would target children of the activator entity | ||
*Target all entities in a box by adding @bbxmin ymin zmin xmax ymax zmax@ prefix. @bb-100 -100 -100 100 100 100@prop_dynamic would target prop_dynamic entities inside -100 -100 -100 100 100 100 | *Target all entities in a box by adding @bbxmin ymin zmin xmax ymax zmax@ prefix. @bb-100 -100 -100 100 100 100@prop_dynamic would target prop_dynamic entities inside -100 -100 -100 100 100 100 box | ||
*Target entities matching the filter by adding @f@ prefix. @f@filtername@entityname would target all entityname that pass the filtername filter | *Target entities matching the filter by adding @f@ prefix. @f@filtername@entityname would target all entityname that pass the filtername filter | ||
*Target entity from datamap/sendprop by adding @e@ prefix. @e@m_hOwnerEntity@!activator would target the owner entity of !activator. You can also target in array with $. @e@m_hMyWeapons$1@!activator would target secondary weapon of !activator. | *Target entity from datamap/sendprop by adding @e@ prefix. @e@m_hOwnerEntity@!activator would target the owner entity of !activator. You can also target in array with $. @e@m_hMyWeapons$1@!activator would target secondary weapon of !activator. | ||
Line 37: | Line 34: | ||
===Spawnflags=== | ===Spawnflags=== | ||
*'''[64]''' - Spawn as mini-sentry | *'''[64]''' - Spawn as mini-sentry | ||
== Teleporter (obj_teleporter) == | == Teleporter (obj_teleporter) == | ||
Line 89: | Line 40: | ||
*$TeleportWhere <string> | *$TeleportWhere <string> | ||
**Teleport bots from specified botspawn name. It is possible to add multiple TeleportWhere keys. "all" name will teleport all bots, "small" will teleport all small bots, "giants" will teleport giants and their squad | **Teleport bots from specified botspawn name. It is possible to add multiple TeleportWhere keys. "all" name will teleport all bots, "small" will teleport all small bots, "giants" will teleport giants and their squad | ||
==Weapon Mimic (tf_point_weapon_mimic)== | ==Weapon Mimic (tf_point_weapon_mimic)== | ||
Line 144: | Line 57: | ||
**Set custom kill icon | **Set custom kill icon | ||
*$weaponname <string> | *$weaponname <string> | ||
**Set mimic weapon name, custom weapon names are allowed. | **Set mimic weapon name, custom weapon names are allowed. example: The Righteous Bison | ||
*$firetime <float> | *$firetime <float> | ||
**Delay between shots for $StartFiring input | **Delay between shots for $StartFiring input | ||
=== Inputs === | === Inputs === | ||
Line 175: | Line 83: | ||
*When tank starts deploying, and there is at least one PointTemplate assigned to it, "OnUser4" output is activated | *When tank starts deploying, and there is at least one PointTemplate assigned to it, "OnUser4" output is activated | ||
=== Outputs=== | === Outputs=== | ||
Line 302: | Line 200: | ||
*$AddCurrencyGlobal <int> | *$AddCurrencyGlobal <int> | ||
**Add currency to all players | **Add currency to all players | ||
== player == | == player == | ||
Line 402: | Line 298: | ||
*$BotCommand <string> | *$BotCommand <string> | ||
**Forces the bot to perform an action. Examples: | **Forces the bot to perform an action. Examples: | ||
***interrupt_action -posent targetmove -lookposent targetlook -duration 10 -waituntildone -ondoneattributes AfterDone | ***interrupt_action -posent targetmove -lookposent targetlook -duration 10 -waituntildone -ondoneattributes AfterDone | ||
****Move to entity targetmove, while looking at entity targetlook. Wait 10 seconds after moving to the target entity, then ChangeAttributes to AfterDone | ****Move to entity targetmove, while looking at entity targetlook. Wait 10 seconds after moving to the target entity, then ChangeAttributes to AfterDone | ||
***interrupt_action -posent targetkill -lookposent targetkill -killlook | ***interrupt_action -posent targetkill -lookposent targetkill -killlook | ||
****Move to entity targetkill and try to destroy it | ****Move to entity targetkill and try to destroy it | ||
***interrupt_action -pos 0 0 0 -lookpos 100 100 100 | ***interrupt_action -pos 0 0 0 -lookpos 100 100 100 | ||
****Move to position 0 0 0 while looking at position 100 100 100 | ****Move to position 0 0 0 while looking at position 100 100 100 | ||
***stop interrupt action | ***stop interrupt action | ||
****Stops current interrupt action | ****Stops current interrupt action | ||
***despawn | ***despawn | ||
****Forces to bot to despawn | ****Forces to bot to despawn | ||
Line 448: | Line 325: | ||
*$TauntFromItem2 <string> | *$TauntFromItem2 <string> | ||
**Forces the player to taunt with specified item index. Also allows to modify attack time for "taunt attack". Example: 1179|-0.5 | **Forces the player to taunt with specified item index. Also allows to modify attack time for "taunt attack". Example: 1179|-0.5 | ||
==trigger_hurt== | ==trigger_hurt== | ||
Line 495: | Line 349: | ||
==game_ui== | ==game_ui== | ||
The server will no longer crash if the player using the entity disconnected from the server | The server will no longer crash if the player using the entity disconnected from the server | ||
==All entities == | ==All entities == | ||
Line 627: | Line 402: | ||
**Rotate relative to parent (world) | **Rotate relative to parent (world) | ||
*$GetEntIndex <string> | *$GetEntIndex <string> | ||
**parameter format: entity|input | **parameter format: entity|input | ||
**example: !activator|$DisplayTextCenter | **example: !activator|$DisplayTextCenter | ||
**Triggers the input of an entity, with entity index as parameter | |||
*$RemoveOutput <string> | *$RemoveOutput <string> | ||
**remove outputs with given name | **remove outputs with given name | ||
Line 641: | Line 416: | ||
**Set keyvalue to specified value | **Set keyvalue to specified value | ||
*$GetKey$(keyvalue name) <string> | *$GetKey$(keyvalue name) <string> | ||
**parameter format: entity|input|default value | **parameter format: entity|input|default value | ||
**example: !activator|$DisplayTextCenter|def | **example: !activator|$DisplayTextCenter|def | ||
** Trigger the input of an entity, with keyvalue as a paramer (default value if not found) | |||
*$SetVar$(variable name) <string> | *$SetVar$(variable name) <string> | ||
**Set custom entity variable | **Set custom entity variable | ||
*$GetVar$(variable name) <string> | *$GetVar$(variable name) <string> | ||
**parameter format: entity|input|default value | **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> | *$SetData$([https://raw.githubusercontent.com/powerlord/tf2-data/master/datamaps.txt datamap] prop name) <string> | ||
**Set datamap property to specified value | **Set datamap property to specified value | ||
*$GetData$([https://raw.githubusercontent.com/powerlord/tf2-data/master/datamaps.txt datamap] prop name) <string> | *$GetData$([https://raw.githubusercontent.com/powerlord/tf2-data/master/datamaps.txt datamap] prop name) <string> | ||
**parameter format: entity|input|default value | **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)[$(array)] <string> | *$SetProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name)[$(array)] <string> | ||
**Set send property to specified value. Can also set arrays. | **Set send property to specified value. Can also set arrays. | ||
Line 668: | Line 438: | ||
***sets player ammo type array to 3, which is metal carried | ***sets player ammo type array to 3, which is metal carried | ||
*$GetProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name)[$(array)] <string> | *$GetProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name)[$(array)] <string> | ||
**parameter format: entity|input|default value | **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) | ||
*$SetClientProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name)[$(array)] <string> | *$SetClientProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name)[$(array)] <string> | ||
**Set fake send prop value only seen by players. Can also set arrays. Useful for setting fake mission name or wave number, as $SetProp would trigger unwanted behavior | **Set fake send prop value only seen by players. Can also set arrays. Useful for setting fake mission name or wave number, as $SetProp would trigger unwanted behavior | ||
Line 696: | Line 463: | ||
*$ShowToAll | *$ShowToAll | ||
**Shows previously hidden entity to all players | **Shows previously hidden entity to all players | ||
===Outputs=== | ===Outputs=== |