Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: COD4 Need help with saving data

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ... connecting
    Join Date
    Oct 2015
    Location
    Netherlands
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    That would be exactly what I am looking for! Going to dive in on that now, thanks!

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    I never worked much with CoD4, but in CoD2 it's just setcvar("foo", "test") and getcvar("foo")
    timescale 0.01

  3. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    I just tested it fast, made link to iw3mp.exe and added +set dedicated 2

    Code:
    map mp_bog
    set foo 123
    map_rotate
    foo ------> will print 123, as expected from CoD2
    So cvar is clearly there, right? Or GSC cannot access them?

    Edit: I just recalled the functions are named setdvar(key, value) and getdvar(key) in CoD4.
    timescale 0.01

  4. #4
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by kung foo man View Post
    I just tested it fast, made link to iw3mp.exe and added +set dedicated 2

    Code:
    map mp_bog
    set foo 123
    map_rotate
    foo ------> will print 123, as expected from CoD2
    So cvar is clearly there, right? Or GSC cannot access them?

    Edit: I just recalled the functions are named setdvar(key, value) and getdvar(key) in CoD4.
    Just tested on my dedicated COD4 box - didn't work.

    Next!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •