Results 1 to 10 of 14

Thread: COD4 Need help with saving data

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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

  2. #2
    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
  •