This article's documentation is for anything that uses the Source engine. Click here for more information.

Entity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Good amount of info, it shouldn't be a draft anymore)
 
(84 intermediate revisions by 34 users not shown)
Line 1: Line 1:
[http://coral.servemp3.com/fitness-franchises.htm fitness franchises] [http://allies.servemp3.com/resources/printed-circuit.html printed circuit] [http://allies.servemp3.com/resources/trading-room.html trading room] [http://estate.servemp3.com/html/satisfaction-mp3.html satisfaction mp3] [http://coral.servemp3.com/download-free.htm download free games for all mobile phones] [http://ousel.servemp3.com/fozya.html fozya] [http://along.servemp3.com/view/mature-and-two.htm mature and two boy] [http://wails.servemp3.com/the-palm-restaurant.html the palm restaurant denver co] [http://cease.servemp3.com/twinks-gallery.html twinks gallery] [http://estate.servemp3.com/html/fucking-action.html fucking action] [http://cease.servemp3.com/roc.html roc] [http://coral.servemp3.com/asian-free-galleries.htm asian free galleries] [http://grise.servemp3.com/small/weather-stations.htm weather stations] [http://estate.servemp3.com/html/one-last-breath.html one last breath] [http://wails.servemp3.com/nutria.html nutria] [http://wails.servemp3.com/car-race-sale.html car race sale scca] [http://falter.servemp3.com/respect.html respect] [http://along.servemp3.com/view/nelly-furtado.htm nelly furtado powerless] [http://coral.servemp3.com/rare-old-books.htm rare old books] [http://estate.servemp3.com/html/aspect-business.html aspect business home opportunity] [http://grise.servemp3.com/small/truck-tractors.htm truck tractors] [http://uglier.servemp3.com/resources/custom-cable-assembly.html custom cable assembly] [http://falter.servemp3.com/cheap-flight.html cheap flight ticket] [http://wails.servemp3.com/auto-financing.html auto financing with bad credit connecticut] [http://sheets.servemp3.com/articles/antivirus-downloads.html antivirus downloads] [http://beard.servemp3.com/data/woman-dior-sun.html woman dior sun glasses] [http://uglier.servemp3.com/resources/preteen-boys.html preteen boys] [http://beard.servemp3.com/data/sex-stories-free.html sex stories free] [http://cease.servemp3.com/schoolgirl-discipline.html schoolgirl discipline] [http://wails.servemp3.com/trevor-stokol.html trevor stokol] [http://wails.servemp3.com/cats-the-musical.html cats the musical] [http://sheets.servemp3.com/articles/kansas-state.html kansas state board] [http://wails.servemp3.com/human-skin.html human skin] [http://sheets.servemp3.com/articles/canada-fishing.html canada fishing camps] [http://sheets.servemp3.com/articles/cruel.html cruel] [http://ousel.servemp3.com/phone-area-code.html phone area code] [http://sheets.servemp3.com/articles/splish-splash.html splish splash] [http://sheets.servemp3.com/articles/manga-hot.html manga hot] [http://cease.servemp3.com/togos-great.html togos great sandwiches] [http://sheets.servemp3.com/articles/preteen-in-bikini.html preteen in bikini] [http://beard.servemp3.com/data/disney-cartoons.html disney cartoons characters] [http://wails.servemp3.com/mother-fuckincets.html mother fuckincets son] [http://cease.servemp3.com/las-vegas-italian.html las vegas italian catering] [http://uglier.servemp3.com/resources/fuse-tv.html fuse tv] [http://falter.servemp3.com/oregon-employment.html oregon employment department] [http://sheets.servemp3.com/articles/snap-shots-gay.html snap shots gay] [http://beard.servemp3.com/data/older-lesbian.html older lesbian lovemaking] [http://uglier.servemp3.com/resources/canadian-diamonds.html canadian diamonds] [http://grise.servemp3.com/small/art-teacher-classroom.htm art teacher classroom supplies] [http://along.servemp3.com/view/the-incredibles.htm the incredibles naked] [http://grise.servemp3.com/small/candylist.htm candylist] [http://wails.servemp3.com/twinkie.html twinkie] [http://falter.servemp3.com/sturgis-women.html sturgis women] [http://cease.servemp3.com/giant-cock-free.html giant cock free] [http://wails.servemp3.com/kids-birthday.html kids birthday parties] [http://beard.servemp3.com/data/termidor.html termidor] [http://along.servemp3.com/view/coloring-book.htm coloring book pages] [http://coral.servemp3.com/mediaplayer.htm mediaplayer] [http://falter.servemp3.com/creamed-pussy-pie.html creamed pussy pie] [http://uglier.servemp3.com/resources/free-shemale.html free shemale video] [http://allies.servemp3.com/resources/roomba-discovery.html roomba discovery] [http://coral.servemp3.com/ass-spread.htm ass spread] [http://coral.servemp3.com/pictures-of-naked.htm pictures of naked girls] [http://ousel.servemp3.com/nelly-tip-drill.html nelly tip drill uncensored] [http://ousel.servemp3.com/aphrodisiac.html aphrodisiac] [http://wails.servemp3.com/thieme-tom.html thieme tom] [http://falter.servemp3.com/pissing-girl.html pissing girl] [http://coral.servemp3.com/daphne-nude.htm daphne nude] [http://estate.servemp3.com/html/gift-certificates.html gift certificates] [http://falter.servemp3.com/pictures-of-people.html pictures of people fucking] [http://grise.servemp3.com/small/wow-cd-key.htm wow cd key] [http://cease.servemp3.com/gag-school.html gag school] [http://wails.servemp3.com/jojo-the-singer.html jojo the singer] [http://ousel.servemp3.com/real-vampires.html real vampires] [http://ousel.servemp3.com/trample-gallery.html trample gallery] [http://estate.servemp3.com/html/stripping-videos.html stripping videos] [http://estate.servemp3.com/html/callgirls.html callgirls] [http://beard.servemp3.com/data/hung-hunks-galleries.html hung hunks galleries] [http://cease.servemp3.com/retard-sex.html retard sex] [http://grise.servemp3.com/small/atk-janelle.htm atk janelle] [http://falter.servemp3.com/marsha.html marsha] [http://grise.servemp3.com/small/giant-panda.htm giant panda] [http://along.servemp3.com/view/portland-cement.htm portland cement] [http://cease.servemp3.com/natalia-cruze.html natalia cruze] [http://grise.servemp3.com/small/rock-you-like.htm rock you like a hurricane] [http://along.servemp3.com/view/jergens-natural.htm jergens natural glow] [http://uglier.servemp3.com/resources/mature-secretaries.html mature secretaries] [http://estate.servemp3.com/html/software-child.html software child day care center] [http://falter.servemp3.com/teenpanties.html teenpanties] [http://cease.servemp3.com/help-me.html help me] [http://grise.servemp3.com/small/location-dubai.htm location dubai map] [http://grise.servemp3.com/small/dating-sites-for.htm dating sites for married people] [http://ousel.servemp3.com/minotaur.html minotaur] [http://beard.servemp3.com/data/psk-modulation.html psk modulation] [http://wails.servemp3.com/new-jersey-furniture.html new jersey furniture refinishing] [http://cease.servemp3.com/pumped.html pumped] [http://allies.servemp3.com/resources/lindsey-lohan-naked.html lindsey lohan naked] [http://sheets.servemp3.com/articles/new-online-casino.html new online casino] [http://along.servemp3.com/view/bra-busting-cleavage.htm bra busting cleavage] [http://beard.servemp3.com/data/unique-poems-for.html unique poems for mothers day]
{{LanguageBar}} {{Source topicon}}
A object defined within the [[Source Engine]] as having characteristics which differentiate it from "the [[worldspawn|world]]" (world brushes).
{{TabsBar|main=gs2|base=Entity}}


== Types ==
Entity is an object defined within {{src|4}} usually for the purpose of being interact-able by players or by other entities via [[I/O]] system. The world, which is a combination of all world brushes, {{ent|func_detail}} and {{ent|prop_static}} entities, is represented by an entity called {{ent|worldspawn}}.
There are three main types of entities:
 
* [[Brush entity]]
== Types of entities ==
* [[Point entity]]
Entities can be separated into few different type. From the perspective of [[Hammer]] editor they can be separated based on how they are created in the editor which is determined by their [[FGD]] definition.
* [[Node]]
 
{| class="wikitable" style="width:100%"
! colspan=2 | By map editor
|-
! Types !! Info
|-
| align="center" | [[Brush entity]]
|A '''Brush entity''' is created by ''tying'' an entity to a BSP geometry [[brush]] in the map, giving the brush a specific effect or ability defined by the entity ''tied'' to it. When compiled the tied brushes are turned into [[bmodel|brush model]] used by this entity.
|-
| align="center" | [[Point entity]]
|'''Point entities''' are '''entities''' created at a specific position point on the [[coordinates|grid]]. Some require a model to be selected for them in order to function fully.
|}
 
{| class="wikitable" style="width:100%"
! colspan=2 | By how it's processed
|-
! Types !! Info
|-
|align="center"|[[:Category:Internal entities|Internal entity]]
|'''Internal entities''' are those which are processed by [[VBSP]] 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:Semi-internal entities|Semi&#8209;internal&nbsp;entity]]
|'''Semi-internal entities''' are those entities which remain as an entity in the map and the compiler also does something special based on their classname in the same way as with internal entities.
For example [[func_areaportal]] brush model is moved to world by [[VBSP]] leaving the entity without any brush in a map file. Or [[func_detail_blocker]] which blocks creation of detail sprites during compile and remains in a map possibly just as an information for decompilers. Or even the [[light]] related entities which are processed by [[VRAD]] to compute lighting.
|-
|align="center"|[[:Category:Non-internal entities|Non&#8209;Internal&nbsp;entity]]
|'''Non-internal entities''' are not processed by [[VBSP]] (other than in case of brush entities converting the associated brushes into [[bmodel]]s) and remain as a separate entity.<br>These are typically interactive objects or characters that the player can interact with or that affect gameplay.
|}
 
{| class="wikitable" style="width:100%"
! colspan=2 | General separation from the game's perspective based on intended use
|-
! Types !! Info
|-
| align="center" | [[Brush&nbsp;entity]]
| Entities that use a [[bmodel|brush model]].
|-
| align="center" | [[Model&nbsp;entity]]
| Entities that use a [[3D model|studio model]]. For example {{ent|prop_static}}, {{ent|prop_physics}}, {{ent|prop_dynamic}}, {{ent|player}}, {{ent|npc_alyx}}. (they are almost always subclasses of [[CBaseAnimating]])
|-
| align="center" | [[Point&nbsp;entity]]
| Entities whose position is relevant for its functionality and don't use 3D model, most often no visual representation with exception of particles, sprites, decals. For example {{ent|info_target}}, {{ent|env_sprite}}, {{ent|infodecal}}, {{ent|info_particle_system}} (often derived from [[CPointEntity]] but it's not the rule)
|-
| align="center" | [[Logical&nbsp;entity]]
| Entities whose position is irrelevant to its functionality. For example {{ent|logic_auto}}, {{ent|logic_relay}}, {{ent|math_counter}}, {{ent|info_director}} (often derived from [[CLogicalEntity]] but it's not the rule as even logic_auto isn't)
|}
{{wikinote|Entity pages on this wiki should use the "in-game" separation to classify them}}
 
== Limitations ==
{{Main|Entity limit}}
For reasons of memory allocation, there is a limit to the number of '''entities''' {{source|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.


== See also ==
== See also ==
* [[Entity Creation]]
* [[: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]]
* [[List of entities]]
* [[Internal entity]]
* Coding [[Your First Entity]]
* Console command {{ent|dump_entity_sizes}}
* [[S_PreserveEnts|preserved entity]]


[[Category:Glossary]]
__NOTOC__
[[Category:Source]]

Latest revision as of 06:35, 25 May 2025

English (en)Deutsch (de)Español (es)Hrvatski (hr)Português (pt)Русский (ru)中文 (zh)Translate (Translate)

Entity is an object defined within Source Source usually for the purpose of being interact-able by players or by other entities via I/O system. The world, which is a combination of all world brushes, func_detail and prop_static entities, is represented by an entity called worldspawn.

Types of entities

Entities can be separated into few different type. From the perspective of Hammer editor they can be separated based on how they are created in the editor which is determined by their FGD definition.

By map editor
Types Info
Brush entity A Brush entity is created by tying an entity to a BSP geometry brush in the map, giving the brush a specific effect or ability defined by the entity tied to it. When compiled the tied brushes are turned into brush model used by this entity.
Point entity Point entities are entities created at a specific position point on the grid. Some require a model to be selected for them in order to function fully.
By how it's processed
Types Info
Internal entity Internal entities are those which are processed by VBSP 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.
Internal entities get special treatment by the map compile tools and are removed from the final product, usually stored in a special chunk.
Semi‑internal entity Semi-internal entities are those entities which remain as an entity in the map and the compiler also does something special based on their classname in the same way as with internal entities.

For example func_areaportal brush model is moved to world by VBSP leaving the entity without any brush in a map file. Or func_detail_blocker which blocks creation of detail sprites during compile and remains in a map possibly just as an information for decompilers. Or even the light related entities which are processed by VRAD to compute lighting.

Non‑Internal entity Non-internal entities are not processed by VBSP (other than in case of brush entities converting the associated brushes into bmodels) and remain as a separate entity.
These are typically interactive objects or characters that the player can interact with or that affect gameplay.
General separation from the game's perspective based on intended use
Types Info
Brush entity Entities that use a brush model.
Model entity Entities that use a studio model. For example prop_static, prop_physics, prop_dynamic, player, npc_alyx. (they are almost always subclasses of CBaseAnimating)
Point entity Entities whose position is relevant for its functionality and don't use 3D model, most often no visual representation with exception of particles, sprites, decals. For example info_target, env_sprite, infodecal, info_particle_system (often derived from CPointEntity but it's not the rule)
Logical entity Entities whose position is irrelevant to its functionality. For example logic_auto, logic_relay, math_counter, info_director (often derived from CLogicalEntity but it's not the rule as even logic_auto isn't)
Wiki Note:Entity pages on this wiki should use the "in-game" separation to classify them

Limitations

Main article:  Entity limit

For reasons of memory allocation, there is a limit to the number of entities Source Source 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