View Single Post
Re: Another Source SDK question ...
Old
  (#8)
XAD
Member
 
Status: Offline
Posts: 4
Join Date: Jan 2005
Default Re: Another Source SDK question ... - 13-02-2005

Quote:
Originally Posted by botman
...some people would consider modifying C++ vtables kind of "hackish" and you might not want to do things that way, but for now, that's about the only way to modify CBaseEntity or CBasePlayer member variables.
FYI: Changing vtables does not give you access to class variables directly but a way to hook function calls...

CBaseEntity and CBasePlayer vars can often be accessed by changing from private to public in the ".h" files, but you better of accessing the functions reading and setting them (which often are private but can be changed to public). But you might more often be interrested in hooking the functions calls than actually read the vars as they get updated in some complex ways (f.ex the player damage stuff)... Also some local function variables are possible to access by hooking other appropriate functions...

/X
  
Reply With Quote