Since the CS:GO update 2 days back. It appears that this macro is returning false for some unknown reason:
#define STEAMWORKS_AVAILABLE() (GetFeatureStatus(FeatureType_Native, "SteamWorks_IsLoaded") == FeatureStatus_Available)
If i replace the calls to STEAMWORKS_AVAILABLE to SteamWorks_IsLoaded - everything appears work fine.
Has anyone else had this type of weird behaviour since the last CS:GO patch?
Thanks in advance
You can see the code in question here
This is really strange because It's only happening with motdf.smx - Every other plugin I'm running right now is detecting SteamWorks correctly, Using exactly the same macro.
Found the problem.
GetFeatureStatus will only work with a function that your calling inside your plugin not for the extension as a whole. So make sure that when using GetFeatureStatus - It's actually a function you're calling inside your base plugin - Not just the extension itself.
For example, I was using SteamWorks_IsLoaded() and not actually calling that function directly inside the plugin. Which made GetFeatureStatus return false.