We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Took me a bit but I got this bug reproduced without hand-patched binary dependencies.
Dump available on Accelerator.
bot
#pragma semicolon 1 #include <sourcemod> #include <sdktools> #include <dhooks> #pragma newdecls required Handle g_DHookGiveNamedItem; public void OnPluginStart() { Handle hGameConf = LoadGameConfigFile("tf2.items"); if (!hGameConf) { SetFailState("Failed to load gamedata (tf2.items)."); } g_DHookGiveNamedItem = DHookCreate(GameConfGetOffset(hGameConf, "GiveNamedItem"), HookType_Entity, ReturnType_Unknown, ThisPointer_CBaseEntity, .callback = OnGivePlayerItemPre); DHookAddParam(g_DHookGiveNamedItem, HookParamType_CharPtr); DHookAddParam(g_DHookGiveNamedItem, HookParamType_Int); DHookAddParam(g_DHookGiveNamedItem, HookParamType_Int); DHookAddParam(g_DHookGiveNamedItem, HookParamType_Bool); delete hGameConf; for (int i = 1; i <= MaxClients; i++) { if (IsClientInGame(i)) { OnClientPutInServer(i); } } } public void OnClientPutInServer(int client) { DHookEntity(g_DHookGiveNamedItem, false, client); } MRESReturn OnGivePlayerItemPre(int client, Handle hReturn, Handle hParams) { return MRES_Ignored; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Took me a bit but I got this bug reproduced without hand-patched binary dependencies.
Dump available on Accelerator.
Steps to reproduce
bot
command works here.Source code
The text was updated successfully, but these errors were encountered: