Raised This Month: $ Target: $400
 0% 

Solved TF2 Entity properites


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cieniu97
Junior Member
Join Date: Sep 2021
Location: Poland
Old 10-04-2021 , 06:45   TF2 Entity properites
Reply With Quote #1

Intro:
Hello there!
I am writing Advanced Logger Plugin for tf2, that logs interesting ingame events into separate txt file.
I've already got much help here

Context:
I was programming object_deflected event lately.
https://wiki.alliedmods.net/Team_For...ject_deflected

My goal is to log information what was deflected. Was it rocket, pipebomb, medics arrow etc.
There is object_entindex in there. I was trying to figure out how to get information about what was reflected. The only thing that came up on my mind was something like this:

PHP Code:
GetEntProp(indexProp_Send"isRocket"
But I can't find anywhere any list of properities that can be used to determine it.

Question:
Where can I find list of all properties that can be reached through GetEntProp?
Is there a better way to achieve my goal?

Last edited by Cieniu97; 10-04-2021 at 08:36.
Cieniu97 is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 10-04-2021 , 06:56   Re: TF2 Entity properites
Reply With Quote #2

You can run
PHP Code:
sm_dump_netprops netprops.txt 
and
PHP Code:
sm_dump_datamaps datamaps.txt 
These will create text files in the game folder where also the bin and maps and models folder are.

Keep in mind that you should only use this on a development / local server as it does significantly increase the entity count and it might even lead to crashes. So be sure to restart the server after entering those commands.
xerox8521 is offline
Cieniu97
Junior Member
Join Date: Sep 2021
Location: Poland
Old 10-04-2021 , 08:36   Re: TF2 Entity properites
Reply With Quote #3

I've figured out workaround.

SOLUTION:
PHP Code:
int object_entindex event.GetInt("object_entindex");
char entityName[128];
GetEntityClassname(object_entindexentityNamesizeof(entityName)); 
By the way. I have no clue how u move around on netprops and datamaps. There are like million of lines in there without any description.

Thanks anyway. You pushed me on right track
Cieniu97 is offline
Reply



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 04:49.


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