MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / IsLANServer

Method IsLANServer

core/HalfLife2.cpp:787–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

785}
786
787bool CHalfLife2::IsLANServer()
788{
789 static ConVar *sv_lan = icvar->FindVar("sv_lan");
790
791 if (!sv_lan)
792 {
793 return false;
794 }
795
796 return (sv_lan->GetInt() != 0);
797}
798
799bool CHalfLife2::KVLoadFromFile(KeyValues *kv, IBaseFileSystem *filesystem, const char *resourceName, const char *pathID)
800{

Callers 6

UpdateAuthIdsMethod · 0.80
IsAuthStringValidatedMethod · 0.80
BanIdentityFunction · 0.80
RemoveBanFunction · 0.80
BanClientFunction · 0.80
SteamIdToLocalFunction · 0.80

Calls 1

GetIntMethod · 0.45

Tested by

no test coverage detected