[EntProps] Array Ent Prop Has No Offset Value?
I'm trying to access the data stored to CTFPlayer detailing the buildings an engineer has built - from using dtwatchent it's become apparent that this information is being stored to the "player_object_array" ent prop:
Console output from dtwatchent when deploying a dispenser: Code:
+ DT_TFPlayer m_nNewSequenceParity, DPT_Int, index 480, bits 3, value 5 Code:
-Member: m_nPlayerCondEx (offset 180) (type integer) (bits 15) I'm hoping someone who knows more about this than I do can at least point me in the right direction or tell me if it's even currently possible, as I would love to be able to at least read from this array even if I can't modify the data (which is my ultimate aim). Thanks for any info or help anyone can provide |
Re: [EntProps] Array Ent Prop Has No Offset Value?
the SourceMod documentation for GetEntDataArray implies that the proper way to read this is:
PHP Code:
|
Re: [EntProps] Array Ent Prop Has No Offset Value?
Thanks for the reply Powerlord, however, I've already tried all of the examples below and the value returned for the offset from each function call is always zero (or -1 for the last 2 which show the escaped quotes are necessary to access the "player_object_array" property by name).
I'm not sure if maybe the example from the API worked at one point but no longer does, or if it was just an untested example that has never worked, but it seems the standard offset retrieval functions do not work for arrays, or at least not the CTFPlayer "player_object_array" array :(. Code:
FindSendPropOffs("CTFPlayer", "player_object_array_element") == 0 Again, any input on a way around this would be greatly appreciated :). |
Re: [EntProps] Array Ent Prop Has No Offset Value?
That isn't a standard array netprop, you're not going to be able to read it with SourceMod.
|
Re: [EntProps] Array Ent Prop Has No Offset Value?
Thanks for the info asherkin :), just to clarify - even going the C++/extension route would not afford me access to this array?
What about the approach of using something like DHooks, or creating detours, to modify the parameters/returns of functions which write to and/or read from this array? |
Re: [EntProps] Array Ent Prop Has No Offset Value?
Quote:
You could modify it with C++ "easily", and probably also from a SourcePawn plugin using 1.4's memory addressing features, but it would be quite complex to do. |
All times are GMT -4. The time now is 08:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.