Entity (Source 2): Difference between revisions
Jump to navigation
Jump to search
Note:These types are only from perspective of map editors and are based on FGD definitions or how map compilers deal with them [confirm]
(Created page with "{{LanguageBar}} {{Source topicon}} {{TabsBar|main=gs2|base=Entity}} {{cleanup|Keep only source 2 info}} An object defined within {{gldsrc|4}}, {{src|4}} or {{source2|4}} as having characteristics which differentiate it from "the world" (world brushes). == Types of entities == {{note|These types are only from perspective of map editors and are based on FGD definitions or how map compilers deal with them {{confirm}}}} {| class="wikitable" style="width...") |
CHILLMODEA (talk | contribs) (general cleanup) |
||
Line 1: | Line 1: | ||
{{LanguageBar}} {{ | {{LanguageBar}} {{Source2 topicon}} | ||
{{TabsBar|main=gs2|base=Entity}} | {{TabsBar|main=gs2|base=Entity}} | ||
An entity is an object within {{source2|4}} defined by having characteristics which differentiate it from the [[worldspawn|world]]. | |||
An object | |||
== Types of entities == | == Types of entities == | ||
Line 11: | Line 9: | ||
|- | |- | ||
!Types | !Types | ||
!Info | !Info | ||
|- | |- | ||
! colspan=" | ! colspan="2" | By Form | ||
|- | |- | ||
|align="center"|[[Point entity]] | |align="center"|[[Point entity]] | ||
| | |Created at a specific position point on the [[coordinates|grid]]. Some require a model to be selected for them in order to function fully. | ||
|- | |- | ||
|align="center"|[[Mesh entity]] | |align="center"|[[Mesh entity]] | ||
| | |Mesh entities replace the {{source|2}} [[brush entity|brush entities]]. Since {{Source2|2}} no longer uses a [[BSP]] brush structure, entities that need to be associated with geometry are now tied to Hammer meshes instead. | ||
|- | |- | ||
|align="center"|[[Path entity]] | |align="center"|[[Path entity]] | ||
| | |Only recently added. They can be created with the currently hidden Path Tool (Shift + P). | ||
|- | |- | ||
! colspan=" | ! colspan="2" | By Internality | ||
|- | |- | ||
|align="center"|[[Internal entity]] | |align="center"|[[Internal entity]] | ||
| | |Processed by {{src2}} [[resourcecompiler]] then either deleted or merged into another entity. They do not exist when the map is running, so they won't count to the [[entity limit]].<br>Internal entities get special treatment by the map compile tools, and are removed from the final product, usually stored in a special chunk. | ||
|- | |- | ||
|align="center"|[[:Category:Non-internal entity|Non-Internal entity]] | |align="center"|[[:Category:Non-internal entity|Non-Internal entity]] | ||
| | |Not processed by {{src2}} [[resourcecompiler]] and remains as a separate entity.<br>These are typically interactive objects or characters that the player can interact with or that affect gameplay. | ||
|} | |} | ||
== Limitations == | == Limitations == | ||
{{Main|Entity limit}} | {{Main|Entity limit}} | ||
For reasons of memory allocation, there is a limit to the number of | For reasons of memory allocation, there is a limit to the number of entities {{source2|4}} can manage at once. | ||
The combined size (in bytes) of a map's entity data should also be considered, even if the number of entities is within safe limits. Large amounts of [[Source BSP File Format#Entity|entdata]] can take a noticeably long time to transmit from server to client, and may lead to crashes. | The combined size (in bytes) of a map's entity data should also be considered, even if the number of entities is within safe limits. Large amounts of [[Source BSP File Format#Entity|entdata]] can take a noticeably long time to transmit from server to client, and may lead to crashes. | ||
Line 59: | Line 49: | ||
* [[S_PreserveEnts|preserved entity]] | * [[S_PreserveEnts|preserved entity]] | ||
* [[Void]] | * [[Void]] | ||
Latest revision as of 19:02, 8 October 2025
An entity is an object within Source 2 defined by having characteristics which differentiate it from the world.
Types of entities

Types | Info |
---|---|
By Form | |
Point entity | Created at a specific position point on the grid. Some require a model to be selected for them in order to function fully. |
Mesh entity | Mesh entities replace the ![]() ![]() |
Path entity | Only recently added. They can be created with the currently hidden Path Tool (Shift + P). |
By Internality | |
Internal entity | Processed by ![]() Internal entities get special treatment by the map compile tools, and are removed from the final product, usually stored in a special chunk. |
Non-Internal entity | Not processed by ![]() These are typically interactive objects or characters that the player can interact with or that affect gameplay. |
Limitations
Main article: Entity limit
For reasons of memory allocation, there is a limit to the number of entities Source 2 can manage at once.
The combined size (in bytes) of a map's entity data should also be considered, even if the number of entities is within safe limits. Large amounts of entdata can take a noticeably long time to transmit from server to client, and may lead to crashes.
See also
- Category:Entities
- Adding Point Entities (part of a series of tutorials)
- Creating Brush Entities (ditto)
- Entity creation (a quick reference)
- Entities in Depth
- List of Entities
- Coding Your First Entity
- Console command dump_entity_sizes
- Constraint
- preserved entity
- Void