Raised This Month: $7 Target: $400
 1% 

Determine a Client's OS


Post New Thread Reply   
 
Thread Tools Display Modes
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 05-27-2015 , 12:42   Re: Determine a Client's OS
Reply With Quote #41

Quote:
Originally Posted by Dr. McKay View Post
The following exist on Mac and not on Windows. Waiting on a Linux dump to determine once and for all.
Quote:
Originally Posted by Dr. McKay View Post
New gamedata with L4D2 support is in my repo.
Not as important (for L4D2), as you already got it fixed... However -

Do you just need the output of "cvarlist" on a (newly installed) client? Or would you need to be digging deeper than that?
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-27-2015 , 20:48   Re: Determine a Client's OS
Reply With Quote #42

Quote:
Originally Posted by arne1288 View Post
Not as important (for L4D2), as you already got it fixed... However -

Do you just need the output of "cvarlist" on a (newly installed) client? Or would you need to be digging deeper than that?
Just the output of cvarlist. I already got L4D2, though I could use a dump for CS:GO on Linux.
__________________
Dr. McKay is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-28-2015 , 00:19   Re: Determine a Client's OS
Reply With Quote #43

I also added joy_gamecontroller_config for Linux on CS:GO after verifying that it exists on the Linux version. Can any Applers make sure that it doesn't exist on Mac?
__________________
Dr. McKay is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 01-14-2019 , 03:09   Re: Determine a Client's OS
Reply With Quote #44

Time to bump this age-old thread!

The windows cvar "windows_speaker_config" no longer exists on CS:GO as of 10/3/2018, and the last appearance of MacOS that I've seen is 5/29/2016.

Edit: As of 4/9/19 I've obtained cvar lists from Windows, Linux, and Mac on CS:GO, and have updated detect_os.games.txt, which I've attached. Mac & Windows specific cvars broke some time ago, Linux has been fine.

Having some issues with Bitbucket's mercurial so when I get some free time I'll look into PR'ing the change to Dr McKay's repo. I'll also do my best to keep it up to date (for at least CS:GO) in case of future issues on my github: https://github.com/sneak-it/PlayerAn...t_os.games.txt
Attached Files
File Type: txt detect_os.games.txt (672 Bytes, 128 views)
__________________

Last edited by sneaK; 04-10-2019 at 01:11.
sneaK is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-20-2019 , 08:01   Re: Determine a Client's OS
Reply With Quote #45

Updated the plugin:
  1. Added a global forward for plugins to use.
  2. Added plugin information.
  3. Updated the plugin to the latest syntax.

Code:
enum OperatingSystem {
	OS_Unknown = -1,
	OS_Windows = 0,
	OS_Linux = 1,
	OS_Mac = 2,
};

forward void OnParseOS(int client, OperatingSystem os);
Attached Files
File Type: sp Get Plugin or Get Source (detect_os.sp - 307 views - 3.3 KB)

Last edited by Drixevel; 10-20-2019 at 08:02.
Drixevel is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode