Thread: SetClientDvar ?

Results 1 to 4 of 4
  1. #1
    TermsGaming's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    18
    My Mood
    Twisted

    Question SetClientDvar ?

    Hey guys,


    So i was wondering if anyone had the address for setclientdvar for cod5 1.7, or if anyone could tell me how to go on about finding it. Ive been looking around in ollybdg but im not exactly sure what i am looking for, Most likely a call adress ? any help would be appreciated

  2. #2
    Z-Nation's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    47.614028°N 122.194015°W
    Posts
    1,831
    Reputation
    136
    Thanks
    4,328
    My Mood
    Amazed
    What dvar are you trying to set to/trying to find?
    Like Something that i did or what i've uploaded?




     

    • Join Date: 09-13-2013
    • PREMIUM Since: 11-5-2015

     

  3. #3
    TermsGaming's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    18
    My Mood
    Twisted
    I am looking for the offset in memory that is called to set any dvar so that after ive unlocked dvars instead of looking for each memory address i just call the set dvar by doing something like this :

    Code:
    //found this on some site
    static void (*hSendCommand)(int bla1,int bla2,char *bla3) = (void (__cdecl *)(int,int,char *))0x004F9AB0;
    Code:
    hSendCommand(1,1,"cg_thirdPerson 1");
    As this method seems less trouble then finding each pointer for each address but im unsure if this would actually work
    Last edited by TermsGaming; 04-23-2016 at 01:47 AM.

  4. #4
    gerherhtherherdhher's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    171
    Reputation
    26
    Thanks
    900
    My Mood
    Sad
    Quote Originally Posted by TermsGaming View Post
    I am looking for the offset in memory that is called to set any dvar so that after ive unlocked dvars instead of looking for each memory address i just call the set dvar by doing something like this :

    Code:
    //found this on some site
    static void (*hSendCommand)(int bla1,int bla2,char *bla3) = (void (__cdecl *)(int,int,char *))0x004F9AB0;
    Code:
    hSendCommand(1,1,"cg_thirdPerson 1");
    As this method seems less trouble then finding each pointer for each address but im unsure if this would actually work
    I had a look for you. "hSendCommand" is actually called Cmd_ExecuteSingleCommand btw and in WaW it is located at 0x0055CD90!
    Last edited by gerherhtherherdhher; 04-24-2016 at 08:40 PM.

  5. The Following 2 Users Say Thank You to gerherhtherherdhher For This Useful Post:

    gogogokitty (04-24-2016),TermsGaming (04-26-2016)