Quote:
Originally Posted by BHaType
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[] propname, SendProp out);
bool ChangePropBits(const char[] netclass, const char[] propname, int bits)
{
SendProp prop;
if ( !Proxy_FindSendProp(netclass, propname, prop) )
return false;
StoreToAddress(prop.me + view_as<Address>(12), bits, NumberType_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.