-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: cl+sv: make an exported function in HL modding bases that will return compile-time tables with the required content #490
Comments
While I was doing #494 issue, I thought that it would be possible to simply export save data of classes and get access to them by symbols, which would to solve issue of server-side offsets for half that surely Although we still have to came up with concept of our linked list for the rest stuff and I think it should look like this: typedef struct bxt_data_s
{
char *classname; // CBasePlayer
char *name; // m_rgAmmoLast
unsigned int offset; // 0x1337
unsigned int size; // 32
BXT_FIELDTYPE type; // FIELD_INTEGER
struct bxt_data_s *next;
} bxt_data_t; BXT_FIELDTYPE is inherited from FIELDTYPE: BunnymodXT/HLSDK/engine/eiface.h Lines 366 to 388 in 1196334
|
This is needed in the future to support BXT by modders themself in their SDKs
Most likely this will be an exported global variable with our custom structure, in which we will store the following elements:
CBasePlayer
)m_rgAmmoLast
)4919
(0x1337 in hex))32
)Macro for export:
The text was updated successfully, but these errors were encountered: