Results 1 to 3 of 3
  1. #1
    aresdGHERhgerdherhrh's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    107
    Reputation
    30
    Thanks
    521

    Angry [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?
    Last edited by aresdGHERhgerdherhrh; 02-09-2017 at 02:00 AM.

  2. #2
    SeNsoR.H4x's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Location
    Belgium
    Posts
    133
    Reputation
    10
    Thanks
    828
    My Mood
    Drunk
    Quote Originally Posted by SamTheDope 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;
    }

  3. The Following User Says Thank You to SeNsoR.H4x For This Useful Post:

    Silent (02-09-2017)

  4. #3
    aresdGHERhgerdherhrh's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    107
    Reputation
    30
    Thanks
    521
    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

Similar Threads

  1. [Info] Config_mp.cfg changes your dvar base
    By lordxchris in forum Call of Duty Advanced Warfare Coding/Resources
    Replies: 0
    Last Post: 01-22-2015, 04:16 AM
  2. [Request] Is it possible to change Dvars with .net? When yes how
    By Nordiii in forum Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    Replies: 1
    Last Post: 09-11-2014, 12:45 PM
  3. [Help] Changing cvars dvars.
    By Izochor in forum Call of Duty 1 Hacks
    Replies: 5
    Last Post: 11-24-2013, 03:58 PM
  4. Changing Dvars and More then 2 weapons...
    By GoDZeN in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 12-03-2010, 08:39 AM
  5. change dvar when exit the server
    By foasdgg in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 5
    Last Post: 10-29-2010, 06:21 AM