Ent text: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (revert)
Line 1: Line 1:
[http://hypnotherapymarketingassociation.com/searchlibrary/CSS/data/tmp/qjblhi.html interference theory] [http://digitalhelp.info/wp-content/themes/default/img/eenlor.html fast furious cars] [http://customchoppergarage.com/wp-content/themes/default/cache/scwlfi.html blowjob facials] [http://lilysmomsez.com/wp-content/themes/default/cache/ljpgfw.html chicago realty] [http://memoriesportal.com/wp-content/themes/default/cache/lqlnpg.html realestate agents] [http://imbydesign.com/webonomics/wp-includes/js/tinymce/themes/icons/foxgvb.html celebrity upskirts] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/rlpmlv.html attention] [http://instantinfocenter.com/CP/images/pic/ujnfer.html v cop 2] [http://krewemasterminds.com/wp-content/themes/default/img/celeni.html money for sex] [http://healthyrecipesandmore.com/wp-content/themes/default/cache/jcovwa.html dorm jerk off] [http://dagosjokes.com/forum/images/avatars/icons/aafcsx.html greek girls] [http://higherawakening.com/wp-content/themes/default/tmp/giiutk.html little teens bikini] [http://cjboston.com/affiliatereport/wp-content/themes/classic/images/mwimes.html dd] [http://krewemasterminds.com/wp-content/themes/default/img/pkvqas.html dirty adult stories] [http://memoriesportal.com/wp-content/themes/default/cache/xfpivg.html canadian diamonds] [http://nursingtrainingsite.com/blog/wp-content/themes/default/cache/ivclqu.html lloyd banks] [http://createchemistry.com/yg/CSS/data/cache/dvrjti.html cuckold wife] [http://internetcashsecrets.com/wp-content/themes/default/img/kitisp.html sex engine] [http://credit-report-repair.com/yg/CSS/data/cache/kqsblb.html net 10] [http://freeseotips.com/wp-content/themes/classic/cache/lthnqk.html colorado springs real estate listing] [http://highwayspace.com/wp-content/themes/default/tmp/dwnbge.html new jersey lottery] [http://internetcashsecrets.com/wp-content/themes/default/img/awfbib.html men masterbating] [http://lilysmomsez.com/wp-content/themes/default/cache/gqrwep.html bring the pain] [http://limousinerates.com/atlanta/cache/tmp/xplmvc.html drafting paper] [http://krewemasterminds.com/wp-content/themes/default/img/ndmctl.html grow lights] [http://limousinerates.com/atlanta/cache/tmp/laimor.html fire trucks] [http://freeseotips.com/wp-content/themes/classic/cache/ednpce.html online flowchart creator] [http://healthyrecipesandmore.com/wp-content/themes/default/cache/akacbb.html sexy sounds] [http://freeprovenadvertisingresources.com/wp-content/images/ambcoe.html increased discharge early pregnancy] [http://kreweblog.com/wp-content/themes/default/tmp/idhwjo.html great legs] [http://kreweblog.com/wp-content/themes/default/tmp/hhgirv.html ragnarok online guild] [http://freeseotips.com/wp-content/themes/classic/cache/iddeph.html average weather in florida] [http://createchemistry.com/yg/CSS/data/cache/hmqaik.html jenna loves briana video] [http://nursingtrainingsite.com/blog/wp-content/themes/default/cache/ajwhbw.html jerry] [http://fishingden.com/wp-content/themes/default/cache/gpkrvp.html classic nudes] [http://highwayspace.com/wp-content/themes/default/tmp/wxigwg.html industrial rubber mouldings] [http://fishingden.com/wp-content/themes/default/cache/wevqtk.html equal economic opportunity] [http://newsonpoint.com/wp-content/themes/default/tmp/oxaipx.html teen titan hentai] [http://mesotheliomalaywer.com/yg/CSS/data/touch/pwoktg.html basmati rice] [http://homeequitysiteonline.com/blog/wp-content/themes/default/cache/vrmpgs.html appalachian trail] [http://fishingden.com/wp-content/themes/default/cache/vlqdhb.html hotdogs] [http://healthyrecipesandmore.com/wp-content/themes/default/cache/bpbcqb.html massive tits] [http://fishingden.com/wp-content/themes/default/cache/mksrot.html white wine] [http://higherawakening.com/wp-content/themes/default/tmp/xeufuu.html sexy black teens] [http://healthyrecipesandmore.com/wp-content/themes/default/cache/glrecl.html phoenix cart racing] [http://customchoppergarage.com/wp-content/themes/default/cache/enpbaa.html taos vacation rentals] [http://kreweblog.com/wp-content/themes/default/tmp/ufdhlt.html naked run] [http://createchemistry.com/yg/CSS/data/cache/suaaaq.html video background] [http://krewemasterminds.com/wp-content/themes/default/img/odsmmx.html free milf pics] [http://hypnotherapymarketingassociation.com/searchlibrary/CSS/data/tmp/moraeu.html extreme beast sex] [http://credit-report-repair.com/yg/CSS/data/cache/mcsaen.html hard banging] [http://createchemistry.com/yg/CSS/data/cache/dncwsg.html fursuit sex] [http://lilysmomsez.com/wp-content/themes/default/cache/lfmatj.html lactate] [http://hypnotherapymarketingassociation.com/searchlibrary/CSS/data/tmp/xhdevr.html teen drug addiction] [http://persephoneshealinggarden.com/wp-content/themes/contentdesk-3-col/cache/rfxmqr.html ball gagged] [http://kreweblog.com/wp-content/themes/default/tmp/bgrere.html casey] [http://mesotheliomalaywer.com/yg/CSS/data/touch/ubtoib.html eat her out] [http://hypnotherapymarketingassociation.com/searchlibrary/CSS/data/tmp/ckovaj.html free porn stories] [http://newsonpoint.com/wp-content/themes/default/tmp/ltebna.html girls and horses] [http://contentwebz.com/whmap/inc/languages/german/wiptcm.html doll palace] [http://createchemistry.com/yg/CSS/data/cache/epgkiq.html mother daughter lesbians] [http://freeseotips.com/wp-content/themes/classic/cache/uckarc.html crosby stills nash and young] [http://imbydesign.com/webonomics/wp-includes/js/tinymce/themes/icons/gawjwm.html barcode] [http://fishingden.com/wp-content/themes/default/cache/girnbk.html videoproiectoare] [http://dagosjokes.com/forum/images/avatars/icons/kxxpxp.html kodak ls753] [http://krewemasterminds.com/wp-content/themes/default/img/elfpnt.html snowboard] [http://freeprovenadvertisingresources.com/wp-content/images/dhofgk.html homage to my hips] [http://nuotech.com/blog/wp-content/themes/classic/images/cxghtv.html bible gateway] [http://nursingtrainingsite.com/blog/wp-content/themes/default/cache/kdasnd.html african american female actresses] [http://freeprovenadvertisingresources.com/wp-content/images/bcqaqs.html maxim girl gallery] [http://krewemasterminds.com/wp-content/themes/default/img/vjkaak.html i appreciate that email] [http://limousinerates.com/atlanta/cache/tmp/kstedv.html las vegas exotic dancers] [http://hypnotherapymarketingassociation.com/searchlibrary/CSS/data/tmp/tmqtul.html bunny teens] [http://krewemasterminds.com/wp-content/themes/default/img/wfpqse.html michelle johnson] [http://persephoneshealinggarden.com/wp-content/themes/contentdesk-3-col/cache/tdfioj.html melissa joan heart nude] [http://dagosjokes.com/forum/images/avatars/icons/eqmxbn.html weed identification] [http://highwayspace.com/wp-content/themes/default/tmp/vbgwjs.html free sex picture galleries] [http://instantinfocenter.com/CP/images/pic/talufp.html diablo ii] [http://dagosjokes.com/forum/images/avatars/icons/gbjhwa.html shocker] [http://healthyrecipesandmore.com/wp-content/themes/default/cache/ihwokf.html brother sex with sister] [http://freeseotips.com/wp-content/themes/classic/cache/cxpiol.html morpeus p2p] [http://hypnotherapymarketingassociation.com/searchlibrary/CSS/data/tmp/qjthnk.html kids vitamins] [http://mywinesnow.com/wsl/images/pic/nudxfx.html non nude babes] [http://mesotheliomalaywer.com/yg/CSS/data/touch/akoqra.html st catherines university] [http://customchoppergarage.com/wp-content/themes/default/cache/kjodod.html planet summer] [http://homeequitysiteonline.com/blog/wp-content/themes/default/cache/gkhusp.html toshiba notebooks] [http://memoriesportal.com/wp-content/themes/default/cache/twhkkx.html jennifer connelly] [http://cjboston.com/affiliatereport/wp-content/themes/classic/images/nlobxs.html the impossibles] [http://freeprovenadvertisingresources.com/wp-content/images/uxktut.html business notes] [http://mesotheliomalaywer.com/yg/CSS/data/touch/pssgaa.html where is the vin located on a 1932 dodge] [http://newsonpoint.com/wp-content/themes/default/tmp/buemrc.html ohio lotto] [http://homeequitysiteonline.com/blog/wp-content/themes/default/cache/oxdxnb.html agoraphobia] [http://hypnotherapymarketingassociation.com/searchlibrary/CSS/data/tmp/ulkexm.html medical release form] [http://internetcashsecrets.com/wp-content/themes/default/img/hpbvdj.html sports m] [http://nursingtrainingsite.com/blog/wp-content/themes/default/cache/npbxwt.html www hg com] [http://lilysmomsez.com/wp-content/themes/default/cache/xwuaia.html wedding show illinois] [http://hypnotherapymarketingassociation.com/searchlibrary/CSS/data/tmp/esfcrt.html wolfenstein] [http://higherawakening.com/wp-content/themes/default/tmp/ckulao.html riding bareback] [http://hypnotherapymarketingassociation.com/searchlibrary/CSS/data/tmp/koxkji.html taylor rain] [http://persephoneshealinggarden.com/wp-content/themes/contentdesk-3-col/cache/vjnpsb.html teen incest]
{{wrongtitle|title=ent_text}}
{{wrongtitle|title=ent_text}}


The <code>ent_text</code> console command is a debugging tool for examining an entity's internal state. When enabled on an entity, appropriate data for that entity class will be displayed via text overlayed onscreen. It's extremely useful for debugging entity logic problems and AI problems.
The <code>ent_text</code> console command is a debugging tool for examining an entity's internal state. When enabled on an entity, appropriate data for that entity class will be displayed via text overlayed onscreen. It's extremely useful for debugging entity logic problems and AI problems.


==Example==
== Example ==
<center>[[Image:ent_text.jpg|550px|Ent_text display for an NPC and a prop_physics in HL2's d1_trainstaion_03.bsp]]</center>
<center>[[Image:ent_text.jpg|550px|Ent_text display for an NPC and a prop_physics in HL2's d1_trainstaion_03.bsp]]</center>
An example of <code>ent_text</code> in action. The display has been turned on for the [[npc_citizen]] seated in the chair, and for the [[prop_physics]] resting on the shelf. See below for a breakdown of the information displayed.
An example of <code>ent_text</code> in action. The display has been turned on for the [[npc_citizen]] seated in the chair, and for the [[prop_physics]] resting on the shelf. See below for a breakdown of the information displayed.


==Notes==
== Notes ==
The information displayed for an entity by the <code>ent_text</code> command differs for each entity type. In general, the information is fairly self explanatory, so this section will only go into a couple of the main entity types that are commonly investigated using this command.
The information displayed for an entity by the <code>ent_text</code> command differs for each entity type. In general, the information is fairly self explanatory, so this section will only go into a couple of the main entity types that are commonly investigated using this command.
*'''Base Entity Information (displayed for all entities)'''
*'''Base Entity Information (displayed for all entities)'''
Line 43: Line 42:
**Health: <code><health></code>, collision group <code><collision group></code>
**Health: <code><health></code>, collision group <code><collision group></code>


 
== Caveats ==
==Caveats==
*Some entities do not require a physical location to perform their function. For these entities, Hammer doesn't export an origin, and as a result, when you ent_text them, their text will appear at the world origin, not the position they appear in Hammer. In general, these entities have classnames beginning with <code>env_</code>  or <code>logic_</code>.
*Some entities do not require a physical location to perform their function. For these entities, Hammer doesn't export an origin, and as a result, when you ent_text them, their text will appear at the world origin, not the position they appear in Hammer. In general, these entities have classnames beginning with <code>env_</code>  or <code>logic_</code>.


==Usage==
== Usage ==
* <code>ent_text</code>
* <code>ent_text</code>
** This will toggle the entity text display for the entity under your crosshair, if any. Note that this only works for entities that are solid (i.e. can be "hit" by the trace).
** This will toggle the entity text display for the entity under your crosshair, if any. Note that this only works for entities that are solid (i.e. can be "hit" by the trace).
Line 54: Line 52:
* <code>ent_text <name></code>
* <code>ent_text <name></code>
** This will toggle the entity text display for all entities whose classname matches the specified name, or whose targetname matches the specified name.
** This will toggle the entity text display for all entities whose classname matches the specified name, or whose targetname matches the specified name.


[[Category:Debugging]]
[[Category:Debugging]]
[[Category:AI Commands]]
[[Category:AI Commands]]

Revision as of 03:52, 15 November 2007

Template:Wrongtitle

The ent_text console command is a debugging tool for examining an entity's internal state. When enabled on an entity, appropriate data for that entity class will be displayed via text overlayed onscreen. It's extremely useful for debugging entity logic problems and AI problems.

Example

Ent_text display for an NPC and a prop_physics in HL2's d1_trainstaion_03.bsp

An example of ent_text in action. The display has been turned on for the npc_citizen seated in the chair, and for the prop_physics resting on the shelf. See below for a breakdown of the information displayed.

Notes

The information displayed for an entity by the ent_text command differs for each entity type. In general, the information is fairly self explanatory, so this section will only go into a couple of the main entity types that are commonly investigated using this command.

  • Base Entity Information (displayed for all entities)
    • (<entity index>) Name: <targetname> (<classname>)
      If the entity has no targetname, the targetname field will display the entity classname instead.
  • Model Information (displayed for all entities that use models)
    • Model: <model name>
    • Sequence: <sequence index> <activity / sequence name>
    • Cycle: <anim cycle> (<anim time>)
  • NPC Information (displayed for all NPCs)
    • Health: <health>
    • Stat: <AI state>
    • Move: <movement method>
    • Behv: <active behavior, if any>
    • Schd: <active schedule name>
    • Task: <activate task name> <task index in active schedule>
    • Actv: <current activity> (<ideal activity>) (<root / untranslated activity>)
    • Vel: <absolute velocity X Y Z> Ang: <angular velocity X Y Z>
      This will only appear if the NPC is moving and/or rotating.
    • Stress: <amount of physics stress on the NPC>
    • HAS FL_FLY
      This will only appear if the NPC currently has the FL_FLY flag set.
    • Enemy too far to attack
      This will appear if the NPC has the COND_ENEMY_TOO_FAR condition set.
    • Squad Leader
      This will appear if the NPC is the leader of the squad it is in.
  • Prop_Physics Information
    • Mass: <mass in kgs> kg / <mass in lbs> lb (<real world object of similar mass>)
    • Stress: <amount of physics stress on the NPC>
    • Motion Disabled
      This will appear if the object has had its motion disabled (usually due to the mapmaker setting the appropriate flag)
    • Base PropData: <prop data specified by this prop's model>
    • Breakable Chunks: <number of generic gibs this object breaks into> (Max size <maximum size of generic gibs used>)
    • Health: <health>, collision group <collision group>

Caveats

  • Some entities do not require a physical location to perform their function. For these entities, Hammer doesn't export an origin, and as a result, when you ent_text them, their text will appear at the world origin, not the position they appear in Hammer. In general, these entities have classnames beginning with env_ or logic_.

Usage

  • ent_text
    • This will toggle the entity text display for the entity under your crosshair, if any. Note that this only works for entities that are solid (i.e. can be "hit" by the trace).
  • ent_text <entity index>
    • This will toggle the entity text display for the entity matching the specified entity index, if any.
  • ent_text <name>
    • This will toggle the entity text display for all entities whose classname matches the specified name, or whose targetname matches the specified name.