iw7-mod/data/cdata/ui_scripts/Conditions/InFrontend.lua
WantedDV 010bdb41aa
combat training (#299)
* combat training

* Disable bot & gamesetting customization menus - feature not yet available.

- cleanup unused code
2024-10-02 21:12:32 +03:00

30 lines
556 B
Lua

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