Raised This Month: $ Target: $400
 0% 

Determine a Client's OS


Post New Thread Reply   
 
Thread Tools Display Modes
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 06-29-2013 , 22:21   Re: Re: Determine a Client's OS
Reply With Quote #31

Quote:
Originally Posted by 11530 View Post
Linux users are such a trustworthy bunch! We'll probably see servers triple in productivity after they're done!
Haha
Doc-Holiday is offline
3a4oT
New Member
Join Date: Nov 2013
Old 11-19-2013 , 04:03   Re: Determine a Client's OS
Reply With Quote #32

hi, you did greate job=))thanx,but how can i do the same for Amx-X??
3a4oT is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 11-23-2013 , 12:09   Re: Determine a Client's OS
Reply With Quote #33

Quote:
Originally Posted by 11530 View Post
Linux users are such a trustworthy bunch! We'll probably see servers triple in productivity after they're done!
Actual experience:
Install 64 bit non-ubuntu lnux distro
Install 32 bit awful version of steam
Wait hl2 to load
Kill process
Launch from command line with whatever switch possible out of desparation
Kill proccess once you hear title music
Get promo item
Reformat
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-03-2013 , 02:04   Re: Determine a Client's OS
Reply With Quote #34

I've been using this for a little while, and apparently mac_fsbackground is incorrect, as it doesn't exist (either that, or nobody uses Macs).

This is on TF2, by the way.
__________________
Dr. McKay is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 12-05-2013 , 13:21   Re: Determine a Client's OS
Reply With Quote #35

Quote:
Originally Posted by Dr. McKay View Post
I've been using this for a little while, and apparently mac_fsbackground is incorrect, as it doesn't exist (either that, or nobody uses Macs).
Updated the first post. New Mac-Cvar = "gl_can_mix_shader_gammas".

Edit: The linux one is outdated as well. Will check that soon.

Edit 2: New Linux-Cvar = "sdl_double_click_size".
__________________

Last edited by GoD-Tony; 12-06-2013 at 08:42.
GoD-Tony is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 12-06-2013 , 09:01   Re: Determine a Client's OS
Reply With Quote #36

Updated the example in the first post to use gamedata. I highly recommend using gamedata for this in your plugins, as the client cvars are constantly changing between updates.
__________________
GoD-Tony is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-22-2015 , 00:06   Re: Determine a Client's OS
Reply With Quote #37

Working on getting the updated cvars for L4D2.

Windows still has windows_speaker_config which is pretty much guaranteed to be Windows only.

The following exist on Mac and not on Windows. Waiting on a Linux dump to determine once and for all.

  • cl_debugrumble
  • cl_rumblescale
  • cl_rumblescale2
  • joy_axis_deadzone
Edit: All of the above except for joy_axis_deadzone are Mac-only. Looks like joy_gamecontroller_config is a good choice for Linux detection. There's also grab_window and gl_dump_stats (a command).
__________________

Last edited by Dr. McKay; 05-26-2015 at 18:08.
Dr. McKay is offline
DabuDos
Junior Member
Join Date: Feb 2015
Location: Germany
Old 05-22-2015 , 04:41   Re: Determine a Client's OS
Reply With Quote #38

Someone here knows if this still works with CS:GO? In CS:S it works fine, I CS:GO it always gives out unknown_os.
DabuDos is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 05-22-2015 , 14:00   Re: Determine a Client's OS
Reply With Quote #39

Quote:
Originally Posted by DabuDos View Post
Someone here knows if this still works with CS:GO? In CS:S it works fine, I CS:GO it always gives out unknown_os.
The only way it wouldn't work in CSGO is if the ConVar(s) aren't in the CSGO client.

Last edited by Drixevel; 05-22-2015 at 14:01.
Drixevel is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-26-2015 , 18:15   Re: Determine a Client's OS
Reply With Quote #40

New gamedata with L4D2 support is in my repo.
__________________
Dr. McKay is offline
Reply



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 00:50.


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