Angry[MWR] Dvar struct changes?

Posts 1–3 of 3 · Page 1 of 1
[MWR] Dvar struct changes?
Anybody know what they did to the dvar struct? There's like a whole 16 bytes that affect the dvar value

Edit: Also they done some shit with cbuf, they seem to have removed pretty much all references too it, anyone know whats up with this?
Quote Originally Posted by aresdGHERhgerdherhrh View Post
Anybody know what they did to the dvar struct? There's like a whole 16 bytes that affect the dvar value

Edit: Also they done some shit with cbuf, they seem to have removed pretty much all references too it, anyone know whats up with this?
Function to hash string :

Code:
unsigned int SL_GetCanonicalString(const char *str)
{
    unsigned int result;
    if (str)
    {
        unsigned int hash = (tolower(*str) ^ 0x319712C3) * 0xB3CB2E29;
        for (int i = 1; i <= strlen(str); i++)
            hash = (tolower(str[i]) ^ hash) * 0xB3CB2E29;
        result = hash;
    }
    else
    {
        result = 0;
    }
    return result;
}
Quote Originally Posted by SeNsoR.H4x View Post
Function to hash string :

Code:
unsigned int SL_GetCanonicalString(const char *str)
{
    unsigned int result;
    if (str)
    {
        unsigned int hash = (tolower(*str) ^ 0x319712C3) * 0xB3CB2E29;
        for (int i = 1; i <= strlen(str); i++)
            hash = (tolower(str[i]) ^ hash) * 0xB3CB2E29;
        result = hash;
    }
    else
    {
        result = 0;
    }
    return result;
}
It's not finding the vars that I'm struggling with it's that they changed the way the value works :c
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?