Results 1 to 5 of 5

Thread: reading team info

  1. #1
    Private
    Join Date
    Jan 2016
    Posts
    17
    Thanks
    4
    Thanked 4 Times in 4 Posts

    reading team info

    I am wondering is it possible to read in COD2 in which team I am playing currently (not in-game)? But from the running game process/memory address, or to fetch team info via rcon from server (they could have included that in status)?

  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
    So the bot doesn't teamkill? ;^)

    Sure it's possible, just look at the sources and their ESP hud implementations.
    timescale 0.01

  3. #3
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Please be more specific about your intentions on using this, in order for us to help you.

    Do you want to build a web-page that shows the players+teams, do you own the server where this runs on, do you want to run this on your client only?
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  4. #4
    Private
    Join Date
    Jan 2016
    Posts
    17
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Hmm bot? I think you misunderstood me..
    No, I just want to get info in which team I am currently playing (allies or axis) via a external program (that has no further interaction with the game other than getting the team info) either from the running game or from server via rcon. But I am not sure if that info can be obtained..

    @IzNoGoD
    No not a web-page, I own the server. Okay the intention is ambilight based on team, so a simple program running on the same PC as the game that gets and checks for the current team I am playing
    And actually I just now realized that even if its possible to get the info from the server its not really smart haha
    Last edited by v1rto; 18th March 2016 at 19:00.

  5. #5
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    @BratokHR has done it in his bot. Some referenses:

    https://github.com/BratokHR/CrazyBot.../types.cpp#L21
    https://github.com/BratokHR/CrazyBot...ot/types.h#L26
    https://github.com/BratokHR/CrazyBot...zybot.cpp#L560

    The Clientinfo_t structure has some basic info about the client, including team.
    sudo apt-get rekt

  6. The Following User Says Thank You to voron00 For This Useful Post:

    kung foo man (18th March 2016)

Posting Permissions

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