Raised This Month: $ Target: $400
 0% 

possible to increase stringtable size?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ProjectSky
AlliedModders Donor
Join Date: Aug 2020
Old 07-20-2021 , 08:03   possible to increase stringtable size?
Reply With Quote #1

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 pThisDHookReturn hReturnDHookParam hParams)
{
    
char tableName[64];
    
hParams.GetObjectVarString(10ObjectValueType_StringtableNamesizeof(tableName));
    
int size hParams.Get(2);

    
PrintToServer("tableName: %s, Size: %d"tableNamesize);

    if (
strcmp(tableName"MeleeWeapons") == 0)
    {
        
hParams.Set(232); // increase meleeweapons table size to 32
        
return MRES_ChangedHandled;
    }

    return 
MRES_Ignored;

Code:
MeleeWeapons: 14/32 (44% full) //after modification
ProjectSky is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode