Raised This Month: $70 Target: $400

Entity Info (Pizzahut)

Post New Thread Reply   
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-14-2020 , 06:46   Entity Info (Pizzahut)
Reply With Quote #1

Originally Posted by pizzahut View Post
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.


Btw, the condump command has a bug, where occasionally a single character is missing. Like this excerpt from above example is missing an underscore:
2020 maintenance
  • Cvar entity_info 0|1. That turns the plugin on or off.
  • Optimize (don't loop through bots) and soften code.
  • Restrict to admins only.
Attached Files
File Type: sma Get Plugin or Get Source (entity_info.sma - 19 views - 4.8 KB)
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake is offline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 14:28.

Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode