[:3] TF2_PlayerClassData
Psychonic mentioned the existence of the a struct in the TF2 server binary called TFPlayerClassData_t, I went ahead and reversed it and found some thing that may be of interest to others.
I threw everything into a quick extension which provides SM plugins with a bunch of natives for editting class data as an example of what can be done with the data contained in the struct. The code can be found here, along with some SM files and compiled binaries http://hg.paulclothier.com/TF2_PlayerClassData/ Here is the struct, to save you from having to look through the files above PHP Code:
|
Re: [:3] TF2_PlayerClassData
LAZY FLAME!!!!
|
Re: [:3] TF2_PlayerClassData
PHP Code:
|
Re: [:3] TF2_PlayerClassData
Quote:
|
Re: [:3] TF2_PlayerClassData
And your guess is as good as mine!
|
Re: [:3] TF2_PlayerClassData
Code:
uint32 m_iBuildableID[6]; // +704Scout (Class 1) [4,4,4,4,4,4] Sniper (Class 2) [4,4,4,4,4,4] Soldier (Class 3) [4,4,4,4,4,4] Demo (Class 4) [4,4,4,4,4,4] Medic (Class 5) [4,4,4,4,4,4] Heavy (Class 6) [4,4,4,4,4,4] Pyro (Class 7) [4,4,4,4,4,4] Spy (Class 8 )[3,4,4,4,4] Engineer (Class 9) [2,0,1,4,4,4] All straight from the natives Wazz provided. Wonder what the numbers do, and why there's 6. |
Re: [:3] TF2_PlayerClassData
Yea 4 seems to represent nothing. 3 would be a sapper, and I presume the others correlate with m_iObjectType
|
Re: [:3] TF2_PlayerClassData
3 is the object type of the sapper :3
Code:
enum TFObjectType |
Re: [:3] TF2_PlayerClassData
Quote:
Also, I assume the mini-sentry is just a sentry object type, or that it changes per instance based on the item attribute affecting the bearer's object/buildables array. |
Re: [:3] TF2_PlayerClassData
There's probably six simply due to bad planning by Valve, I wouldn't dwell on it too much.
|
Re: [:3] TF2_PlayerClassData
Quote:
Unrelated, does anyone happen to know what object flags are for? m_fObjectFlags |
| All times are GMT -4. The time now is 18:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.