AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Entity Info (https://forums.alliedmods.net/showthread.php?t=13738)

pizzahut 05-27-2005 16:21

Entity Info
 
1 Attachment(s)
I wanted to find out where certain infos about sentry guns are stored in TFC, as things like the team and owner keys are *not* used for these. So I wrote a plugin that dumps all keys of an entity to console, except for the empty ones (value zero or empty string).

You need the engine module for this plugin.

Instructions: Look at an entity, press attack. You can use a melee weapon from a distance to avoid damage. A HUD message will come up with the number (id) of the entity, and informing you that more info is available in the console. To save the data, enter the command condump in console. This will write a plain ASCII file.

Example:
Quote:

You finish building the sentry gun.
-xS- pizzahut has built a sentry gun
Entity 308 [Looking at the mounted sentry gun here.]
EV_INT_movetype = 5
EV_INT_solid = 3
EV_INT_sequence = 2
EV_INT_modelindex = 151
EV_INT_watertype = -1
EV_INT_flags = 32
EVINT_colormap = 41110
EV_FL_nextthink = 50.254356
EV_FL_frame = 127.990234
EV_FL_animtime = 50.154358
EV_FL_framerate = 1.000000
EV_FL_health = 150.000000
EV_FL_takedamage = 2.000000
EV_FL_max_health = 150.000000
EV_VEC_origin = (-572.000000,-1404.000000,-218.781967)
EV_VEC_angles = (0.000000,184.053955,0.000000)
EV_VEC_absmin = (-589.000000,-1421.000000,-219.781967)
EV_VEC_absmax = (-555.000000,-1387.000000,-169.781967)
EV_VEC_mins = (-16.000000,-16.000000,0.000000)
EV_VEC_maxs = (16.000000,16.000000,48.00000)
EV_VEC_size = (32.000000,32.000000,48.000000)
EV_VEC_view_ofs = (0.000000,0.000000,22.000000)
EV_ENT_pContainingEntity = 308
EV_SZ_classname = building_sentrygun
EV_SZ_model = models/sentry1.mdl
EV_BYTE_controller1 = 238
EV_BYTE_controller2 = 127
You put some shells into your sentry gun.
Entity 304 [I'm looking at the base (the feet) of the sentry here.]
EV_INT_movetype = 6
EV_INT_solid = 2
EV_INT_modelindex = 154
EV_INT_watertype = -1
EV_INT_flags = 544
EV_FL_takedamage = 2.000000
EV_VEC_origin = (-572.000000,-1404.000000,-239.981964)
EV_VEC_angles = (0.00000,184.053955,0.000000)
EV_VEC_absmin = (-589.000000,-1421.000000,-240.981964)
EV_VEC_absmax = (-555.000000,-1387.000000,-234.981964)
EV_VEC_mins = (-16.000000,-16.000000,0.000000)
EV_VEC_maxs = (16.000000,16.000000,4.000000)
EV_VEC_size = (32.000000,32.000000,4.000000)
EV_ENT_pContainingEntity = 304
EV_SZ_classname = building_sentrygun_base
EV_SZ_model = models/base.mdl
You put some shells into your sentry gun.
] condump
Btw, the condump command has a bug, where occasionally a single character is missing. Like this excerpt from above example is missing an underscore:
Quote:

EVINT_colormap = 41110

sixcentgeorge 08-30-2006 10:28

Re: Entity Info
 
work great ;]

DJEarthQuake 07-16-2020 01:58

Re: Entity Info
 
Updated Entity Info plugin with Cvar entity_info 0|1. That turns the plugin on or off. Also optimized this for admins only instead of looping it through all players. I've used this to explore and fix many idiosyncrasies of maps from invalid classnames, to you-name-it, stop broken door sound.

pizzahut 08-29-2020 15:55

Re: Entity Info
 
DJEarthQuake wants to continue this plugin. If his updated version gets approved, this thread (old plugin) can be unapproved.


All times are GMT -4. The time now is 05:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.