View Full Version : reading team info
v1rto
18th March 2016, 18:19
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)?
kung foo man
18th March 2016, 18:32
So the bot doesn't teamkill? ;^)
Sure it's possible, just look at the sources and their ESP hud implementations.
IzNoGoD
18th March 2016, 18:47
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?
v1rto
18th March 2016, 18:49
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
voron00
18th March 2016, 19:43
@BratokHR (https://killtube.org/member.php?875-BratokHR) has done it in his bot. Some referenses:
https://github.com/BratokHR/CrazyBot/blob/master/CrazyBot/types.cpp#L21
https://github.com/BratokHR/CrazyBot/blob/master/CrazyBot/types.h#L26
https://github.com/BratokHR/CrazyBot/blob/master/CrazyBot/crazybot.cpp#L560
The Clientinfo_t structure has some basic info about the client, including team.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.