like the L4D MeleeWeapons table(16)
i try to use dhook to increase it, but it not work, maybe it needs to be modified client?
PHP Code:
public MRESReturn CB_CreateStringTable(Address pThis, DHookReturn hReturn, DHookParam hParams)
{
char tableName[64];
hParams.GetObjectVarString(1, 0, ObjectValueType_String, tableName, sizeof(tableName));
int size = hParams.Get(2);
PrintToServer("tableName: %s, Size: %d", tableName, size);
if (strcmp(tableName, "MeleeWeapons") == 0)
{
hParams.Set(2, 32); // increase meleeweapons table size to 32
return MRES_ChangedHandled;
}
return MRES_Ignored;
}
Code:
MeleeWeapons: 14/32 (44% full) //after modification