How can I reconstruct CCheckTransmitInfo?

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
Doldol
Senior Member
Posts: 200
Joined: Sat Jul 07, 2012 7:09 pm
Location: Belgium

How can I reconstruct CCheckTransmitInfo?

Postby Doldol » Fri Dec 05, 2014 7:38 pm

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!
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Fri Dec 05, 2014 8:04 pm

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)
User avatar
Doldol
Senior Member
Posts: 200
Joined: Sat Jul 07, 2012 7:09 pm
Location: Belgium

Postby Doldol » Fri Dec 05, 2014 9:07 pm

Yay thanks! It worked after I changed Edict to edict_t.
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Fri Dec 05, 2014 9:11 pm

Ahh, yes. Sorry, I forgot that we look up the class by its C++ name. :)

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 159 guests