DetermineStargateDormantState() was wrapped in a block that isn't defined anywhere and was unnecessary because of the if ( !NET_ConnectedGMSV() ) block. Also PING_WAIT_MAX was set to 5 * 60000 for some reason and this caused down servers StarGates to take 10-15 min to deactivate. It will now take 5-10 seconds for stargates to go dormant or reactivate to a client based on a servers status