Ent text

From Valve Developer Community
Revision as of 04:35, 13 December 2007 by TroceRlabo (talk | contribs)
Jump to navigation Jump to search

ultimate surrender tag heuer watches avis car rental activex recumbent exercise bike amateur handjobs porn clip publisher publish my children book naked amateur xxx disney cartoons oral sex pictures fiat panda internet banking lucy liu nude stepper motors freesexpictures adirondack chair elton john ticket baby boys names eclipse car audio bassett furniture film of sex young model ambien generic auto blue book puzzle game search engines fat woman photo misoprostol verizonwireless com romance bit torn file sharing travelocity commerce ga super cheap cigarette home alarm miracle suit swim wear kazaa download bear photos cheap flight to orlando ricky ullman shirtless overnight xanax vytorin freebies truck wheels goldie hawn canada travel free people finder pharmacies man clothes mp3 ringtone first timers art myspace background weight loss pills private school car classic haggerty insurance free online personal journal winmx range rover prescription medications ray ban sun glasses iraqvoice normal blood pressure peliculas millionaire match t mobile mda buy armour thyroid man swiss army watch honda crv 2007 citizens sailhawk watch discount wedding favor career site search aquarium screensaver diaper fetish screen tissot touch watch midwest airlines anal cum shot buy vicodin without a prescription sexy single asian gay man lamp parts codeine sheer bikini panerai aciphex online buy tobradex online free blackjack internet car insurance sexy swimwear cache creek casino pharmacy schools wal mart pharmacy portable generator candystand perfume wholesale online lorazepam nike air jordans shoes cigarete on line best home based business winzip download eroticlingerie ford econoline pay day loans online toyota motor homes for sale used pamela girl kissing blockbuster movies phone search canadian reverse phone directory serta memory foam mattress free songs real estate in surfside beach south carolina cytotec tatto free clip jeep couples sex virtualgirl free pornography carpet flooring urban big and tall clothes robots dirt cheap airline tickets bbw sex nike presto benzocaine dunlop tires for motorcycles sex mature panda antivirus download atlanta massage labor laws learn english mesotherapy sony ringtones original watercolor painting phytonadione creative zen mp3 players pallet rack flow kitchen furniture escorts car price free adult video chat animal german sheppard puppies photo sex kawasaki eliminator zip code directory minnesota science museum home based business best diet pill 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.