Results 1 to 8 of 8
  1. #1
    habitat666's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    1

    Detect If Player In Match

    Hey all.

    Wondering if anyone has a good/easy/reliable way to detect if a player is in a match and not just the lobby. Been looking around, but I'm afraid I am just not using the best search terms.

    Anyway, this can be C++ and/or C#.

    Thanks!

    Apologies if this is the wrong forum. I thought it'd fit here.

  2. #2
    SammyDoge1's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Tried looking behind you...?
    Posts
    2,207
    Reputation
    62
    Thanks
    2,147
    My Mood
    Tired
    Quote Originally Posted by habitat666 View Post
    Hey all.

    Wondering if anyone has a good/easy/reliable way to detect if a player is in a match and not just the lobby. Been looking around, but I'm afraid I am just not using the best search terms.

    Anyway, this can be C++ and/or C#.

    Thanks!

    Apologies if this is the wrong forum. I thought it'd fit here.
    Afaik you need to use(Read) structures in the game, Not sure how to use/find them.





  3. #3
    Horror's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    51,4.
    Posts
    6,920
    Reputation
    574
    Thanks
    5,050
    My Mood
    Twisted
    Aren't there strings for the player names once the match has started ? I just checked those to see if there were players back in MW3
     

    Minion+ : February 2014 - January 2015
    Counter Strike: Global Offensive Minion : November 2014 - January 2015
    Alliance of Valiant Arms Minion : August 2014 - January 2015
    Need For Speed World Minion : January 2014 - January 2015
    Rust Minion : January 2014 - January 2015
    Call of Duty Minion : January 2013 - January 2015
    Editor : December 2012 - April 2013
    Donator : March 2014 - Current
    Member : October 2010 - Current

    Previously known as "Isaakske".

  4. #4
    habitat666's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    1
    Sorry for my very late reply, been a touch busy with little time to post.

    Thanks for the answers, guys. I'll keep looking.

  5. #5
    cardoow's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Posts
    215
    Reputation
    28
    Thanks
    766
    My Mood
    Amazed
    Quote Originally Posted by habitat666 View Post
    Hey all.

    Wondering if anyone has a good/easy/reliable way to detect if a player is in a match and not just the lobby. Been looking around, but I'm afraid I am just not using the best search terms.

    Anyway, this can be C++ and/or C#.

    Thanks!

    Apologies if this is the wrong forum. I thought it'd fit here.
    Code:
    typedef struct {
    	gameState_t		gameState;			// gamestate from server
    	glconfig_t		glconfig;			// rendering configuration
    	float			screenXScale;		// derived from glconfig
    	float			screenYScale;
    	float			screenXBias;
    
    	int				serverCommandSequence;	// reliable command stream counter
    	int				processedSnapshotNum;// the number of snapshots cgame has requested
    
    	qboolean		localServer;		// detected on startup by checking sv_running
    
    	// parsed from serverinfo
    	gametype_t		gametype;
    	int				dmflags;
    	int				teamflags;
    	int				fraglimit;
    	int				capturelimit;
    	int				timelimit;
    	int				maxclients;
    	char			mapname[MAX_QPATH];
    	char			redTeam[MAX_QPATH];
    	char			blueTeam[MAX_QPATH];
    
    	int				voteTime;
    	int				voteYes;
    	int				voteNo;
    	qboolean		voteModified;			// beep whenever changed
    	char			voteString[MAX_STRING_TOKENS];
    
    	int				teamVoteTime[2];
    	int				teamVoteYes[2];
    	int				teamVoteNo[2];
    	qboolean		teamVoteModified[2];	// beep whenever changed
    	char			teamVoteString[2][MAX_STRING_TOKENS];
    
    	int				levelStartTime;
    
    	int				scores1, scores2;		// from configstrings
    	int				redflag, blueflag;		// flag status from configstrings
    	int				flagStatus;
    
    	qboolean  newHud;
    
    	//
    	// locally derived information from gamestate
    	//
    	qhandle_t		gameModels[MAX_MODELS];
    	sfxHandle_t		gameSounds[MAX_SOUNDS];
    
    	int				numInlineModels;
    	qhandle_t		inlineDrawModel[MAX_MODELS];
    	vec3_t			inlineModelMidpoints[MAX_MODELS];
    
    	clientInfo_t	clientinfo[MAX_CLIENTS];
    
    	// teamchat width is *3 because of embedded color codes
    	char			teamChatMsgs[TEAMCHAT_HEIGHT][TEAMCHAT_WIDTH*3+1];
    	int				teamChatMsgTimes[TEAMCHAT_HEIGHT];
    	int				teamChatPos;
    	int				teamLastChatPos;
    
    	int cursorX;
    	int cursorY;
    	qboolean eventHandling;
    	qboolean mouseCaptured;
    	qboolean sizingHud;
    	void *capturedItem;
    	qhandle_t activeCursor;
    
    	// orders
    	int currentOrder;
    	qboolean orderPending;
    	int orderTime;
    	int currentVoiceClient;
    	int acceptOrderTime;
    	int acceptTask;
    	int acceptLeader;
    	char acceptVoice[MAX_NAME_LENGTH];
    
    	// media
    	cgMedia_t		media;
    
    } cgs_t;
    this class is from the quake3 engine sdk, its still there in cod ghosts

  6. #6
    Horror's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    51,4.
    Posts
    6,920
    Reputation
    574
    Thanks
    5,050
    My Mood
    Twisted
    Quote Originally Posted by cardoow View Post
    this class is from the quake3 engine sdk, its still there in cod ghosts
    Well not every beginner can use it just like that doh
     

    Minion+ : February 2014 - January 2015
    Counter Strike: Global Offensive Minion : November 2014 - January 2015
    Alliance of Valiant Arms Minion : August 2014 - January 2015
    Need For Speed World Minion : January 2014 - January 2015
    Rust Minion : January 2014 - January 2015
    Call of Duty Minion : January 2013 - January 2015
    Editor : December 2012 - April 2013
    Donator : March 2014 - Current
    Member : October 2010 - Current

    Previously known as "Isaakske".

  7. #7
    cardoow's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Posts
    215
    Reputation
    28
    Thanks
    766
    My Mood
    Amazed
    Quote Originally Posted by Horror View Post

    Well not every beginner can use it just like that doh
    I hope every beginner is able to memory scan for values

  8. #8
    habitat666's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by cardoow View Post
    this class is from the quake3 engine sdk, its still there in cod ghosts
    Heh... they don't change much over the years, eh?

    Thanks for this.

Similar Threads

  1. [Detected] Red and Blue player models [Never detected] By kila58 | Beta
    By kila58 in forum Counter-Strike 2 Hacks
    Replies: 173
    Last Post: 04-26-2014, 03:09 AM
  2. [Help] Counter Strike: Source Detect If Player Is Touching Ground
    By MangWTF in forum General Game Hacking
    Replies: 0
    Last Post: 07-19-2012, 11:04 AM
  3. [Question]How to detect if the player hits ground?
    By NOOBJr in forum Combat Arms Coding Help & Discussion
    Replies: 12
    Last Post: 03-16-2011, 06:02 AM
  4. [Help] Detecting player hits and timers!
    By master131 in forum Call of Duty Modern Warfare 2 Help
    Replies: 0
    Last Post: 08-24-2010, 06:28 PM
  5. ZG .184 Private Matches looking for players
    By wesdaddy in forum Call of Duty Modern Warfare 2 Help
    Replies: 21
    Last Post: 02-20-2010, 08:32 AM