iw7-mod/data/cdata/ui_scripts/Conditions/InFrontend.lua

30 lines
556 B
Lua
Raw Normal View History

if not Engine.InFrontend() then
return
end
-- GENERAL
Engine.SetDvarBool("daily_login_bonus_enabled", false)
function CONDITIONS.IsStoreAllowed(self)
return true
end
function CODTV.IsCODTVEnabled()
return false
end
-- MP
if CONDITIONS.InFrontendPublicMP then
function CONDITIONS.IsServerBrowserAllowed(self)
return true
end
function CONDITIONS.IsGameBattlesAllowed(self)
return CONDITIONS.IsServerBrowserAllowed(self)
end
end
-- MP PRIVATE
if CONDITIONS.InFrontend and Engine.IsCoreMode() and (IsPrivateMatch() or IsSystemLink()) then
end