Page 1 of 1

How can I reconstruct CCheckTransmitInfo?

Posted: Fri Dec 05, 2014 7:38 pm
by Doldol
I have hooked CBaseCombatCharacter::SetTransmit(CCheckTransmitInfo*, bool), how can I reconstruct CCheckTransmitInfo? There doesn't seem to be a lot of information about it that I could find and use.

I think it is or contains a pointer to the player's Edict? But if I try to interpret it as one I don't really get anything that makes sense, and I would have no clue how I could get the pointer to the player's edict from it (or what the offsets are), if that assumption is even correct!

Posted: Fri Dec 05, 2014 8:04 pm
by Ayuto
http://forums.eventscripts.com/viewtopic.php?f=90&t=45739&start=22

I think this should do the trick.

Syntax: Select all

class CCheckTransmitInfo(CustomType, metaclass=manager):
m_pClientEnt = manager.pointer_attribute('Edict', 0)

Posted: Fri Dec 05, 2014 9:07 pm
by Doldol
Yay thanks! It worked after I changed Edict to edict_t.

Posted: Fri Dec 05, 2014 9:11 pm
by Ayuto
Ahh, yes. Sorry, I forgot that we look up the class by its C++ name. :)