View Single Post
MasterMind420
BANNED
Join Date: Nov 2010
Old 08-14-2018 , 21:53   Re: The operating system of server
Reply With Quote #5

Quote:
Originally Posted by psychonic View Post
Unless there's some major API gap, you shouldn't need to care what OS is from SourceMod. May I ask what the use case is?
I know that if I wanted to I could use OS detection to merge L4D2 Thirpersonshoulder Shotgun Sound Fix. I think using EmitGameSoundToClient on windows caused crashes so I made two versions one for windows which uses EmitSoundToClient and linux which uses EmitGameSoundToClient. On a side not original poster the server_spawn event in the documentation says WIN32 or LINUX nothing about MAC so if this does indeed detect it then it would be better to use your function if someone has need for that.
MasterMind420 is offline