View Single Post
Sappykun
Member
Join Date: Nov 2019
Old 11-06-2021 , 18:31   Re: Modifying datatables to remove env_sprite scale limit
Reply With Quote #3

Quote:
Originally Posted by BHaType View Post
A long time ago I already wrote plugin which uses interface to find sendprops. You can use it as a reference.
https://pastebin.com/hb5J6XuR

Code example:
PHP Code:
native bool Proxy_FindSendProp(const char[] netclass, const char[] propnameSendProp out);

bool ChangePropBits(const char[] netclass, const char[] propnameint bits)
{
    
SendProp prop;
    
    if ( !
Proxy_FindSendProp(netclasspropnameprop) )
        return 
false;
        
    
StoreToAddress(prop.me view_as<Address>(12), bitsNumberType_Int32);
    return 
true;
}

bool result ChangePropBits("CSprite""m_fScale"12); 
Thank you for the detailed response.

I edited your plugin to call ChangePropBits("CSprite", "m_flSpriteScale", 12) on plugin load, but it makes my client crash when I try to join.

I also am unable to join the server after I change the class table CRC, regardless of whether or not I have sv_sendtables set to 1. If I don't change the value, I get the expected "Server uses different class tables" error.
If I do change the value, I get a different, rather amusing error:



Also, would you be able to explain to me what 12 is supposed to represent? I see it referred in gubka's code as well, but it looks like an arbitrary number.
Sappykun is offline