From 2199b6a5fc5d29e223b7e03db84f404145a9d47f Mon Sep 17 00:00:00 2001 From: Lyuu17 Date: Mon, 8 Jul 2024 20:22:06 +0200 Subject: [PATCH] Initial lua support --- .gitmodules | 3 + CMakeLists.txt | 1 + extern/CMakeLists.txt | 3 + extern/lua | 1 + src/CMakeLists.txt | 2 + src/SWBF2/Native/SWBF2.cpp | 6 + src/SWBF2/Native/SWBF2.hpp | 4 + .../Native/Scripting/Lua/LuaCallbacks.cpp | 608 ++++ .../Native/Scripting/Lua/LuaCallbacks.hpp | 13 + src/SWBF2/Native/Scripting/Lua/ScriptCB.cpp | 2902 +++++++++++++++++ src/SWBF2/Native/Scripting/Lua/ScriptCB.hpp | 587 ++++ 11 files changed, 4130 insertions(+) create mode 160000 extern/lua create mode 100644 src/SWBF2/Native/Scripting/Lua/LuaCallbacks.cpp create mode 100644 src/SWBF2/Native/Scripting/Lua/LuaCallbacks.hpp create mode 100644 src/SWBF2/Native/Scripting/Lua/ScriptCB.cpp create mode 100644 src/SWBF2/Native/Scripting/Lua/ScriptCB.hpp diff --git a/.gitmodules b/.gitmodules index 45808f2..f2cec7a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "extern/godot-cpp"] path = extern/godot-cpp url = https://github.com/godotengine/godot-cpp.git +[submodule "extern/lua"] + path = extern/lua + url = https://github.com/Lyuu17/lua.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e702f8..917cea8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,4 +113,5 @@ add_subdirectory(extern) target_link_libraries( ${PROJECT_NAME} PRIVATE godot-cpp + lua ) diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt index 26ed4a3..4772f69 100644 --- a/extern/CMakeLists.txt +++ b/extern/CMakeLists.txt @@ -8,3 +8,6 @@ set_target_properties(godot-cpp PROPERTIES CXX_VISIBILITY_PRESET hidden # visibility needs to be the same as the main library ) + +# lua +add_subdirectory(lua) diff --git a/extern/lua b/extern/lua new file mode 160000 index 0000000..039d13e --- /dev/null +++ b/extern/lua @@ -0,0 +1 @@ +Subproject commit 039d13ea73a9e9ee2b83edad876d941840f661c2 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 90c2f1c..2c5ab12 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,6 +17,8 @@ target_sources(${PROJECT_NAME} "SWBF2/Native/Chunks/UcfbChunk.cpp" "SWBF2/Native/Chunks/WorldChunk.cpp" "SWBF2/Native/Models/Model.cpp" + "SWBF2/Native/Scripting/Lua/LuaCallbacks.cpp" + "SWBF2/Native/Scripting/Lua/ScriptCB.cpp" "SWBF2/Native/Texture/Texture.cpp" "SWBF2/Native/Texture/TextureUtils.cpp" "SWBF2/Native/Hashes.cpp" diff --git a/src/SWBF2/Native/SWBF2.cpp b/src/SWBF2/Native/SWBF2.cpp index 82bc40d..5ef8043 100644 --- a/src/SWBF2/Native/SWBF2.cpp +++ b/src/SWBF2/Native/SWBF2.cpp @@ -5,6 +5,8 @@ namespace SWBF2::Native { + lua_State *SWBF2::m_luaState; + SkyDome SWBF2::m_skyDome; std::string SWBF2::m_curMapName; @@ -27,6 +29,8 @@ namespace SWBF2::Native if (!UcfbChunk::ReadUcfbFile("data/_lvl_pc/common.lvl")) throw std::runtime_error{ "failed to load common.lvl from game directory" }; + + m_luaState = lua_open(); } void SWBF2::Reset() @@ -41,6 +45,8 @@ namespace SWBF2::Native m_models.clear(); m_tex.clear(); m_locl.clear(); + + lua_close(m_luaState); } bool SWBF2::LoadLevelFile(const std::string &levelname) diff --git a/src/SWBF2/Native/SWBF2.hpp b/src/SWBF2/Native/SWBF2.hpp index 8f84211..4441bf7 100644 --- a/src/SWBF2/Native/SWBF2.hpp +++ b/src/SWBF2/Native/SWBF2.hpp @@ -1,6 +1,8 @@ #pragma once +#include + #include "Native/Models/Model.hpp" #include "Native/Texture/Texture.hpp" #include "Native/Objects/ObjectDefinition.hpp" @@ -71,6 +73,8 @@ namespace SWBF2::Native std::unordered_map m_classes; }; + static lua_State *m_luaState; + static SkyDome m_skyDome; static std::string m_curMapName; diff --git a/src/SWBF2/Native/Scripting/Lua/LuaCallbacks.cpp b/src/SWBF2/Native/Scripting/Lua/LuaCallbacks.cpp new file mode 100644 index 0000000..a528d51 --- /dev/null +++ b/src/SWBF2/Native/Scripting/Lua/LuaCallbacks.cpp @@ -0,0 +1,608 @@ + +#include + +#include "Native/SWBF2.hpp" + +#include "Native/Scripting/Lua/LuaCallbacks.hpp" +#include "Native/Scripting/Lua/ScriptCB.hpp" + +namespace SWBF2::Native::Scripting::Lua +{ + static const luaL_reg cbs[] = + { + { "ScriptCB_DoFile", ScriptCB_DoFile }, + { "ScriptCB_GetPlatform", ScriptCB_GetPlatform }, + { "ScriptCB_GetLanguage", ScriptCB_GetLanguage }, + { "ScriptCB_FormatTimeString", ScriptCB_FormatTimeString }, + { "ScriptCB_GetVKeyboardCharacter", ScriptCB_GetVKeyboardCharacter }, + { "ScriptCB_IsLegalGamespyString", ScriptCB_IsLegalGamespyString }, + { "ScriptCB_tounicode", ScriptCB_tounicode }, + { "ScriptCB_UnicodeStrCat", ScriptCB_UnicodeStrCat }, + { "ScriptCB_ununicode", ScriptCB_ununicode }, + { "ScriptCB_getlocalizestr", ScriptCB_getlocalizestr }, + { "ScriptCB_usprintf", ScriptCB_usprintf }, + { "ScriptCB_ustrupper", ScriptCB_ustrupper }, + { "ScriptCB_srand", ScriptCB_srand }, + { "ScriptCB_random", ScriptCB_random }, + { "ScriptCB_GetDateStr", ScriptCB_GetDateStr }, + { "ScriptCB_GetShellActive", ScriptCB_GetShellActive }, + { "ScriptCB_SetAutoAcquireControllers", ScriptCB_SetAutoAcquireControllers }, + { "ScriptCB_ReadAllControllers", ScriptCB_ReadAllControllers }, + { "ScriptCB_UnbindController", ScriptCB_UnbindController }, + { "ScriptCB_GetPrimaryController", ScriptCB_GetPrimaryController }, + { "ScriptCB_GetSecondaryController", ScriptCB_GetSecondaryController }, + { "ScriptCB_IsControllerConnected", ScriptCB_IsControllerConnected }, + { "ScriptCB_IsControllerBound", ScriptCB_IsControllerBound }, + { "ScriptCB_SwapPrimaryController", ScriptCB_SwapPrimaryController }, + { "ScriptCB_SetHotController", ScriptCB_SetHotController }, + { "ScriptCB_RestorePrimaryController", ScriptCB_RestorePrimaryController }, + { "ScriptCB_SetIgnoreControllerRemoval", ScriptCB_SetIgnoreControllerRemoval }, + { "ScriptCB_GetNumControllers", ScriptCB_GetNumControllers }, + { "ScriptCB_GetMaxControllers", ScriptCB_GetMaxControllers }, + { "ScriptCB_GetAutoNetIsDedicated", ScriptCB_GetAutoNetIsDedicated }, + { "ScriptCB_GetAutoNetGameName", ScriptCB_GetAutoNetGameName }, + { "ScriptCB_GetAutoGetPlayerCount", ScriptCB_GetAutoGetPlayerCount }, + { "ScriptCB_SetupAutoNetMissions", ScriptCB_SetupAutoNetMissions }, + { "ScriptCB_SetupAutoNetIsLan", ScriptCB_SetupAutoNetIsLan }, + { "ScriptCB_GetAutoNetScript", ScriptCB_GetAutoNetScript }, + { "ScriptCB_ReadLeftstick", ScriptCB_ReadLeftstick }, + { "ScriptCB_SetQuitPlayer", ScriptCB_SetQuitPlayer }, + { "ScriptCB_GetQuitPlayer", ScriptCB_GetQuitPlayer }, + { "ScriptCB_GetMaxMissionQueue", ScriptCB_GetMaxMissionQueue }, + { "ScriptCB_SetMissionNames", ScriptCB_SetMissionNames }, + { "ScriptCB_SetTeamNames", ScriptCB_SetTeamNames }, + { "ScriptCB_EnterMission", ScriptCB_EnterMission }, + { "ScriptCB_LaunchDemo", ScriptCB_LaunchDemo }, + { "ScriptCB_Reboot", ScriptCB_Reboot }, + { "ScriptCB_GetPausingViewport", ScriptCB_GetPausingViewport }, + { "ScriptCB_GetPausingJoystick", ScriptCB_GetPausingJoystick }, + { "ScriptCB_PausingIsPrimary", ScriptCB_PausingIsPrimary }, + { "ScriptCB_GetBuildStr", ScriptCB_GetBuildStr }, + { "ScriptCB_UpdateScreen", ScriptCB_UpdateScreen }, + { "ScriptCB_UnlockableState", ScriptCB_UnlockableState }, + { "ScriptCB_UnlockUnlockable", ScriptCB_UnlockUnlockable }, + { "ScriptCB_ShouldShowLegal", ScriptCB_ShouldShowLegal }, + { "ScriptCB_PauseDemoTimer", ScriptCB_PauseDemoTimer }, + { "ScriptCB_ShouldShowDemoPostscreen", ScriptCB_ShouldShowDemoPostscreen }, + { "ScriptCB_ShouldCheckDNAS", ScriptCB_ShouldCheckDNAS }, + { "ScriptCB_DoneCheckDNAS", ScriptCB_DoneCheckDNAS }, + { "ScriptCB_HasSeenDNASEULA", ScriptCB_HasSeenDNASEULA }, + { "ScriptCB_SetHasSeenDNASEULA", ScriptCB_SetHasSeenDNASEULA }, + { "ScriptCB_ShouldCheckPatch", ScriptCB_ShouldCheckPatch }, + { "ScriptCB_DoneCheckPatch", ScriptCB_DoneCheckPatch }, + { "ScriptCB_IndexMultipageText", ScriptCB_IndexMultipageText }, + { "ScriptCB_ShowMultipageText", ScriptCB_ShowMultipageText }, + { "ScriptCB_SetDCMap", ScriptCB_SetDCMap }, + { "ScriptCB_HideDownloadableContent", ScriptCB_HideDownloadableContent }, + { "ScriptCB_RestartMission", ScriptCB_RestartMission }, + { "ScriptCB_Unpause", ScriptCB_Unpause }, + { "ScriptCB_SkipToPlayerList", ScriptCB_SkipToPlayerList }, + { "ScriptCB_ResetSkipToPlayerList", ScriptCB_ResetSkipToPlayerList }, + { "ScriptCB_CheckPlayerListDone", ScriptCB_CheckPlayerListDone }, + { "ScriptCB_GetMissionTime", ScriptCB_GetMissionTime }, + { "ScriptCB_Freecamera", ScriptCB_Freecamera }, + { "ScriptCB_IsGameOver", ScriptCB_IsGameOver }, + { "ScriptCB_QuitToShell", ScriptCB_QuitToShell }, + { "ScriptCB_QuitToWindows", ScriptCB_QuitToWindows }, + { "ScriptCB_MinimizeWindow", ScriptCB_MinimizeWindow }, + { "ScriptCB_QuitFromStats", ScriptCB_QuitFromStats }, + { "ScriptCB_GetTeamName", ScriptCB_GetTeamName }, + { "ScriptCB_GetSPProgress", ScriptCB_GetSPProgress }, + { "ScriptCB_SetSPProgress", ScriptCB_SetSPProgress }, + { "ScriptCB_GetLastBattleVictory", ScriptCB_GetLastBattleVictory }, + { "ScriptCB_SetLastBattleVictoryValid", ScriptCB_SetLastBattleVictoryValid }, + { "ScriptCB_MetagameSetBonus", ScriptCB_MetagameSetBonus }, + { "ScriptCB_MetagameSetSide", ScriptCB_MetagameSetSide }, + { "ScriptCB_DisableFlyerShadows", ScriptCB_DisableFlyerShadows }, + { "ScriptCB_EnableScene", ScriptCB_EnableScene }, + { "ScriptCB_PostLoadHack", ScriptCB_PostLoadHack }, + { "ScriptCB_IFObj_SetPos", ScriptCB_IFObj_SetPos }, + { "ScriptCB_IFObj_GetPos", ScriptCB_IFObj_GetPos }, + { "ScriptCB_IFObj_SetBasicRotation", ScriptCB_IFObj_SetBasicRotation }, + { "ScriptCB_IFObj_SetRelativeRotation", ScriptCB_IFObj_SetRelativeRotation }, + { "ScriptCB_IFObj_SetRotation", ScriptCB_IFObj_SetRotation }, + { "ScriptCB_IFObj_SetAlpha", ScriptCB_IFObj_SetAlpha }, + { "ScriptCB_IFObj_GetAlpha", ScriptCB_IFObj_GetAlpha }, + { "ScriptCB_IFObj_SetColor", ScriptCB_IFObj_SetColor }, + { "ScriptCB_IFObj_GetColor", ScriptCB_IFObj_GetColor }, + { "ScriptCB_IFObj_SetZOrder", ScriptCB_IFObj_SetZOrder }, + { "ScriptCB_IFObj_GetZOrder", ScriptCB_IFObj_GetZOrder }, + { "ScriptCB_IFObj_BringToFront", ScriptCB_IFObj_BringToFront }, + { "ScriptCB_IFObj_SendToBack", ScriptCB_IFObj_SendToBack }, + { "ScriptCB_IFObj_Enable", ScriptCB_IFObj_Enable }, + { "ScriptCB_IFObj_IsEnabled", ScriptCB_IFObj_IsEnabled }, + { "ScriptCB_IFObj_IsGroup", ScriptCB_IFObj_IsGroup }, + { "ScriptCB_IFObj_SetVis", ScriptCB_IFObj_SetVis }, + { "ScriptCB_IFObj_SetEnabled", ScriptCB_IFObj_SetEnabled }, + { "ScriptCB_IFObj_GetVis", ScriptCB_IFObj_GetVis }, + { "ScriptCB_IFObj_SetWidthHeight", ScriptCB_IFObj_SetWidthHeight }, + { "ScriptCB_IFObj_GetWidthHeight", ScriptCB_IFObj_GetWidthHeight }, + { "ScriptCB_IFObj_SetPosition", ScriptCB_IFObj_SetPosition }, + { "ScriptCB_IFObj_GetPosition", ScriptCB_IFObj_GetPosition }, + { "ScriptCB_IFObj_MouseOver", ScriptCB_IFObj_MouseOver }, + { "ScriptCB_IFObj_TestHotSpot", ScriptCB_IFObj_TestHotSpot }, + { "ScriptCB_IFObj_CreateHotSpot", ScriptCB_IFObj_CreateHotSpot }, + { "ScriptCB_IFObj_RemoveHotSpot", ScriptCB_IFObj_RemoveHotSpot }, + { "ScriptCB_GetFontHeight", ScriptCB_GetFontHeight }, + { "ScriptCB_IFText_SetString", ScriptCB_IFText_SetString }, + { "ScriptCB_IFText_SetUString", ScriptCB_IFText_SetUString }, + { "ScriptCB_IFText_SetTextPosition", ScriptCB_IFText_SetTextPosition }, + { "ScriptCB_IFText_SetFont", ScriptCB_IFText_SetFont }, + { "ScriptCB_IFText_SetJustify", ScriptCB_IFText_SetJustify }, + { "ScriptCB_IFText_SetTextBreak", ScriptCB_IFText_SetTextBreak }, + { "ScriptCB_IFText_SetTextScale", ScriptCB_IFText_SetTextScale }, + { "ScriptCB_IFText_GetTextScaleX", ScriptCB_IFText_GetTextScaleX }, + { "ScriptCB_IFText_GetTextScaleY", ScriptCB_IFText_GetTextScaleY }, + { "ScriptCB_IFText_GetTextExtent", ScriptCB_IFText_GetTextExtent }, + { "ScriptCB_IFText_GetDisplayRect", ScriptCB_IFText_GetDisplayRect }, + { "ScriptCB_IFText_SetIntercharacterSpacin", ScriptCB_IFText_SetIntercharacterSpacin }, + { "ScriptCB_IFText_GetIntercharacterSpacin", ScriptCB_IFText_GetIntercharacterSpacin }, + { "ScriptCB_IFText_SetTextBox", ScriptCB_IFText_SetTextBox }, + { "ScriptCB_IFText_GetTextBox", ScriptCB_IFText_GetTextBox }, + { "ScriptCB_IFText_SetTextStyle", ScriptCB_IFText_SetTextStyle }, + { "ScriptCB_IFText_SetLeading", ScriptCB_IFText_SetLeading }, + { "ScriptCB_IFText_GetLeading", ScriptCB_IFText_GetLeading }, + { "ScriptCB_IFFlashyText_Setup", ScriptCB_IFFlashyText_Setup }, + { "ScriptCB_IFFlashyText_SetTextColor", ScriptCB_IFFlashyText_SetTextColor }, + { "ScriptCB_IFFlashyText_SetBackground", ScriptCB_IFFlashyText_SetBackground }, + { "ScriptCB_IFFlashyText_SetBackgroundSize", ScriptCB_IFFlashyText_SetBackgroundSize }, + { "ScriptCB_IFFlashyText_SetBackgroundRigh", ScriptCB_IFFlashyText_SetBackgroundRigh }, + { "ScriptCB_IFFlashyText_StartFlashiness", ScriptCB_IFFlashyText_StartFlashiness }, + { "ScriptCB_IFImage_SetTexture", ScriptCB_IFImage_SetTexture }, + { "ScriptCB_IFImage_GetRect", ScriptCB_IFImage_GetRect }, + { "ScriptCB_IFImage_SetRect", ScriptCB_IFImage_SetRect }, + { "ScriptCB_IFImage_GetTexCoords", ScriptCB_IFImage_GetTexCoords }, + { "ScriptCB_IFImage_SetTexCoords", ScriptCB_IFImage_SetTexCoords }, + { "ScriptCB_IFMaskImage_SetMaskTexture", ScriptCB_IFMaskImage_SetMaskTexture }, + { "ScriptCB_IFMaskImage_SetMaskTexCoords", ScriptCB_IFMaskImage_SetMaskTexCoords }, + { "ScriptCB_IFMaskImage_GetMaskTexCoords", ScriptCB_IFMaskImage_GetMaskTexCoords }, + { "ScriptCB_IFBorder_SetTexture", ScriptCB_IFBorder_SetTexture }, + { "ScriptCB_IFBorder_GetRect", ScriptCB_IFBorder_GetRect }, + { "ScriptCB_IFBorder_SetRect", ScriptCB_IFBorder_SetRect }, + { "ScriptCB_IFBorder_GetTexCoords", ScriptCB_IFBorder_GetTexCoords }, + { "ScriptCB_IFBorder_SetTexCoords", ScriptCB_IFBorder_SetTexCoords }, + { "ScriptCB_IFModel_SetModel", ScriptCB_IFModel_SetModel }, + { "ScriptCB_IFModel_SetAnimation", ScriptCB_IFModel_SetAnimation }, + { "ScriptCB_IFModel_QueueAnimation", ScriptCB_IFModel_QueueAnimation }, + { "ScriptCB_IFModel_SetAnimationBanks", ScriptCB_IFModel_SetAnimationBanks }, + { "ScriptCB_IFModel_SetAnimationTime", ScriptCB_IFModel_SetAnimationTime }, + { "ScriptCB_IFModel_AttachModel", ScriptCB_IFModel_AttachModel }, + { "ScriptCB_IFModel_SetScale", ScriptCB_IFModel_SetScale }, + { "ScriptCB_IFModel_GetScale", ScriptCB_IFModel_GetScale }, + { "ScriptCB_IFModel_SetRotation", ScriptCB_IFModel_SetRotation }, + { "ScriptCB_IFModel_GetRotation", ScriptCB_IFModel_GetRotation }, + { "ScriptCB_IFModel_SetTranslation", ScriptCB_IFModel_SetTranslation }, + { "ScriptCB_IFModel_GetTranslation", ScriptCB_IFModel_GetTranslation }, + { "ScriptCB_IFModel_SetDepth", ScriptCB_IFModel_SetDepth }, + { "ScriptCB_IFModel_GetDepth", ScriptCB_IFModel_GetDepth }, + { "ScriptCB_IFModel_SetOmegaY", ScriptCB_IFModel_SetOmegaY }, + { "ScriptCB_IFModel_SetLighting", ScriptCB_IFModel_SetLighting }, + { "ScriptCB_IFModel_UpdateAnimation", ScriptCB_IFModel_UpdateAnimation }, + { "ScriptCB_IFModel_SetAnimationLooping", ScriptCB_IFModel_SetAnimationLooping }, + { "ScriptCB_AddIFScreen", ScriptCB_AddIFScreen }, + { "ScriptCB_SetIFScreenViewport", ScriptCB_SetIFScreenViewport }, + { "ScriptCB_EndIFScreen", ScriptCB_EndIFScreen }, + { "ScriptCB_IsFileExist", ScriptCB_IsFileExist }, + { "ScriptCB_IFObj_GetCPointer", ScriptCB_IFObj_GetCPointer }, + { "ScriptCB_IFObj_SetScreenPosition", ScriptCB_IFObj_SetScreenPosition }, + { "ScriptCB_IFObj_SetUseSafezone", ScriptCB_IFObj_SetUseSafezone }, + { "ScriptCB_EndIFObj", ScriptCB_EndIFObj }, + { "ScriptCB_AddIFText", ScriptCB_AddIFText }, + { "ScriptCB_AddIFFlashyText", ScriptCB_AddIFFlashyText }, + { "ScriptCB_AddIFImage", ScriptCB_AddIFImage }, + { "ScriptCB_AddIFMaskImage", ScriptCB_AddIFMaskImage }, + { "ScriptCB_AddIFBorder", ScriptCB_AddIFBorder }, + { "ScriptCB_AddIFModel", ScriptCB_AddIFModel }, + { "ScriptCB_AddIFContainer", ScriptCB_AddIFContainer }, + { "ScriptCB_SetIFScreen", ScriptCB_SetIFScreen }, + { "ScriptCB_PushScreen", ScriptCB_PushScreen }, + { "ScriptCB_PopScreen", ScriptCB_PopScreen }, + { "ScriptCB_IsScreenInStack", ScriptCB_IsScreenInStack }, + { "ScriptCB_OpenPopup", ScriptCB_OpenPopup }, + { "ScriptCB_ClosePopup", ScriptCB_ClosePopup }, + { "ScriptCB_IsPopupOpen", ScriptCB_IsPopupOpen }, + { "ScriptCB_SetIgnoreInputs", ScriptCB_SetIgnoreInputs }, + { "ScriptCB_OpenMovie", ScriptCB_OpenMovie }, + { "ScriptCB_CloseMovie", ScriptCB_CloseMovie }, + { "ScriptCB_PlayMovie", ScriptCB_PlayMovie }, + { "ScriptCB_IsMoviePlaying", ScriptCB_IsMoviePlaying }, + { "ScriptCB_AreMoviePropertiesPlaying", ScriptCB_AreMoviePropertiesPlaying }, + { "ScriptCB_StopMovie", ScriptCB_StopMovie }, + { "ScriptCB_SetMovieAudioBus", ScriptCB_SetMovieAudioBus }, + { "ScriptCB_IsPropertyPlayingNow", ScriptCB_IsPropertyPlayingNow }, + { "ScriptCB_PlayInGameMovie", ScriptCB_PlayInGameMovie }, + { "ScriptCB_StopInGameMovie", ScriptCB_StopInGameMovie }, + { "ScriptCB_GetScreenInfo", ScriptCB_GetScreenInfo }, + { "ScriptCB_GetSafeScreenInfo", ScriptCB_GetSafeScreenInfo }, + { "ScriptCB_IsErrorBoxOpen", ScriptCB_IsErrorBoxOpen }, + { "ScriptCB_OpenErrorBox", ScriptCB_OpenErrorBox }, + { "ScriptCB_CloseErrorBox", ScriptCB_CloseErrorBox }, + { "ScriptCB_GetErrorLevel", ScriptCB_GetErrorLevel }, + { "ScriptCB_GetConsoleCmds", ScriptCB_GetConsoleCmds }, + { "ScriptCB_DoConsoleCmd", ScriptCB_DoConsoleCmd }, + { "ScriptCB_GetLeaderBoardPlayerData", ScriptCB_GetLeaderBoardPlayerData }, + { "ScriptCB_DownloadLeaderBoardData", ScriptCB_DownloadLeaderBoardData }, + { "ScriptCB_LeaderBoardDownloadDone", ScriptCB_LeaderBoardDownloadDone }, + { "ScriptCB_CancelLeaderBoardPlayerData", ScriptCB_CancelLeaderBoardPlayerData }, + { "ScriptCB_SetLeaderBoardID", ScriptCB_SetLeaderBoardID }, + { "ScriptCB_ResetLeaderBoardPlayerData", ScriptCB_ResetLeaderBoardPlayerData }, + { "ScriptCB_EnumerateLeaderBoard", ScriptCB_EnumerateLeaderBoard }, + { "ScriptCB_EnumerateLeaderBoardDone", ScriptCB_EnumerateLeaderBoardDone }, + { "ScriptCB_GetEnumerateLeaderBoardData", ScriptCB_GetEnumerateLeaderBoardData }, + { "ScriptCB_IsEnableLeaderBoard", ScriptCB_IsEnableLeaderBoard }, + { "ScriptCB_SetSunlight", ScriptCB_SetSunlight }, + { "ScriptCB_ResetControl", ScriptCB_ResetControl }, + { "ScriptCB_SetBinding", ScriptCB_SetBinding }, + { "ScriptCB_GetActionFromIdx", ScriptCB_GetActionFromIdx }, + { "ScriptCB_GetKeyBoardCmds", ScriptCB_GetKeyBoardCmds }, + { "ScriptCB_EnableCursor", ScriptCB_EnableCursor }, + { "ScriptCB_MrMrsEval", ScriptCB_MrMrsEval }, + { "ScriptCB_GetEntityMesh", ScriptCB_GetEntityMesh }, + { "ScriptCB_GetEntityWeaponMesh", ScriptCB_GetEntityWeaponMesh }, + { "ScriptCB_GetEntityLabel", ScriptCB_GetEntityLabel }, + { "ScriptCB_GetIFaceLighting", ScriptCB_GetIFaceLighting }, + { "ScriptCB_SetIFaceLighting", ScriptCB_SetIFaceLighting }, + { "ScriptCB_RemoveTexture", ScriptCB_RemoveTexture }, + { "ScriptCB_ShowLoadDisplay", ScriptCB_ShowLoadDisplay }, + { "ScriptCB_SetInputRepeat", ScriptCB_SetInputRepeat }, + { "ScriptCB_GetLoginList", ScriptCB_GetLoginList }, + { "ScriptCB_IsCurProfileDirty", ScriptCB_IsCurProfileDirty }, + { "ScriptCB_IsProfileDirty", ScriptCB_IsProfileDirty }, + { "ScriptCB_SetProfileNotDirty", ScriptCB_SetProfileNotDirty }, + { "ScriptCB_LoadSavePopupResult", ScriptCB_LoadSavePopupResult }, + { "ScriptCB_DoInitialMemcardCheck", ScriptCB_DoInitialMemcardCheck }, + { "ScriptCB_StartInitialMemcardCheck", ScriptCB_StartInitialMemcardCheck }, + { "ScriptCB_StartPreOp", ScriptCB_StartPreOp }, + { "ScriptCB_IsPlayerLoggedIn", ScriptCB_IsPlayerLoggedIn }, + { "ScriptCB_GetCurrentProfileName", ScriptCB_GetCurrentProfileName }, + { "ScriptCB_GetProfileName", ScriptCB_GetProfileName }, + { "ScriptCB_GetCurrentProfileNetName", ScriptCB_GetCurrentProfileNetName }, + { "ScriptCB_GetCurrentPCTitleVersion", ScriptCB_GetCurrentPCTitleVersion }, + { "ScriptCB_AddProfile", ScriptCB_AddProfile }, + { "ScriptCB_SwapActiveProfileSlots", ScriptCB_SwapActiveProfileSlots }, + { "ScriptCB_StartLoadProfile", ScriptCB_StartLoadProfile }, + { "ScriptCB_MakeFakeProfiles", ScriptCB_MakeFakeProfiles }, + { "ScriptCB_SetProfileAsDefault", ScriptCB_SetProfileAsDefault }, + { "ScriptCB_RestoreDefaultProfile", ScriptCB_RestoreDefaultProfile }, + { "ScriptCB_MarkCurrentProfile", ScriptCB_MarkCurrentProfile }, + { "ScriptCB_ReloadMarkedProfile", ScriptCB_ReloadMarkedProfile }, + { "ScriptCB_HasProfileChanged", ScriptCB_HasProfileChanged }, + { "ScriptCB_StartDeleteProfile", ScriptCB_StartDeleteProfile }, + { "ScriptCB_StartSaveProfile", ScriptCB_StartSaveProfile }, + { "ScriptCB_StartLoadMetagame", ScriptCB_StartLoadMetagame }, + { "ScriptCB_StartSaveMetagame", ScriptCB_StartSaveMetagame }, + { "ScriptCB_StartDeleteMetagame", ScriptCB_StartDeleteMetagame }, + { "ScriptCB_IsCurrentMetagame", ScriptCB_IsCurrentMetagame }, + { "ScriptCB_StartLoadCampaign", ScriptCB_StartLoadCampaign }, + { "ScriptCB_StartSaveCampaign", ScriptCB_StartSaveCampaign }, + { "ScriptCB_StartDeleteCampaign", ScriptCB_StartDeleteCampaign }, + { "ScriptCB_IsCurrentCampaign", ScriptCB_IsCurrentCampaign }, + { "ScriptCB_TrimLoginName", ScriptCB_TrimLoginName }, + { "ScriptCB_GetUniqueLoginName", ScriptCB_GetUniqueLoginName }, + { "ScriptCB_IsUniqueLoginName", ScriptCB_IsUniqueLoginName }, + { "ScriptCB_MarkMemoryCard", ScriptCB_MarkMemoryCard }, + { "ScriptCB_CheckMemoryCardMark", ScriptCB_CheckMemoryCardMark }, + { "ScriptCB_IsMemoryCardUnformatted", ScriptCB_IsMemoryCardUnformatted }, + { "ScriptCB_IsMemoryCardInsertted", ScriptCB_IsMemoryCardInsertted }, + { "ScriptCB_DoesProfileExistOnCard", ScriptCB_DoesProfileExistOnCard }, + { "ScriptCB_InMemoryProfileMode", ScriptCB_InMemoryProfileMode }, + { "ScriptCB_SetMemoryProfileMode", ScriptCB_SetMemoryProfileMode }, + { "ScriptCB_CheckIfOkToExitMemoryMode", ScriptCB_CheckIfOkToExitMemoryMode }, + { "ScriptCB_GetSavedMetagameList", ScriptCB_GetSavedMetagameList }, + { "ScriptCB_StartNewMetagame", ScriptCB_StartNewMetagame }, + { "ScriptCB_DoesMetagameExistOnCard", ScriptCB_DoesMetagameExistOnCard }, + { "ScriptCB_GetSavedCampaignList", ScriptCB_GetSavedCampaignList }, + { "ScriptCB_StartNewCampaign", ScriptCB_StartNewCampaign }, + { "ScriptCB_DoesCampaignExistOnCard", ScriptCB_DoesCampaignExistOnCard }, + { "ScriptCB_Logout", ScriptCB_Logout }, + { "ScriptCB_SaveMetagameState", ScriptCB_SaveMetagameState }, + { "ScriptCB_LoadMetagameState", ScriptCB_LoadMetagameState }, + { "ScriptCB_ClearMetagameState", ScriptCB_ClearMetagameState }, + { "ScriptCB_IsMetagameStateSaved", ScriptCB_IsMetagameStateSaved }, + { "ScriptCB_SaveCampaignState", ScriptCB_SaveCampaignState }, + { "ScriptCB_LoadCampaignState", ScriptCB_LoadCampaignState }, + { "ScriptCB_ClearCampaignState", ScriptCB_ClearCampaignState }, + { "ScriptCB_IsCampaignStateSaved", ScriptCB_IsCampaignStateSaved }, + { "ScriptCB_SetInTrainingMission", ScriptCB_SetInTrainingMission }, + { "ScriptCB_GetInTrainingMission", ScriptCB_GetInTrainingMission }, + { "ScriptCB_SaveMissionSetup", ScriptCB_SaveMissionSetup }, + { "ScriptCB_LoadMissionSetup", ScriptCB_LoadMissionSetup }, + { "ScriptCB_ClearMissionSetup", ScriptCB_ClearMissionSetup }, + { "ScriptCB_IsMissionSetupSaved", ScriptCB_IsMissionSetupSaved }, + { "ScriptCB_PlayerSuicide", ScriptCB_PlayerSuicide }, + { "ScriptCB_AutoNetJoin", ScriptCB_AutoNetJoin }, + { "ScriptCB_GetOnlineService", ScriptCB_GetOnlineService }, + { "ScriptCB_SetAmHost", ScriptCB_SetAmHost }, + { "ScriptCB_GetAmHost", ScriptCB_GetAmHost }, + { "ScriptCB_GetWasHost", ScriptCB_GetWasHost }, + { "ScriptCB_InNetGame", ScriptCB_InNetGame }, + { "ScriptCB_SetInNetGame", ScriptCB_SetInNetGame }, + { "ScriptCB_InMultiplayer", ScriptCB_InMultiplayer }, + { "ScriptCB_InNetSession", ScriptCB_InNetSession }, + { "ScriptCB_NetWasHost", ScriptCB_NetWasHost }, + { "ScriptCB_NetWasDedicated", ScriptCB_NetWasDedicated }, + { "ScriptCB_NetWasDedicatedQuit", ScriptCB_NetWasDedicatedQuit }, + { "ScriptCB_NetWasClient", ScriptCB_NetWasClient }, + { "ScriptCB_IsDedicated", ScriptCB_IsDedicated }, + { "ScriptCB_SetDedicated", ScriptCB_SetDedicated }, + { "ScriptCB_IsInShell", ScriptCB_IsInShell }, + { "ScriptCB_IsAutoNet", ScriptCB_IsAutoNet }, + { "ScriptCB_EndAutoNet", ScriptCB_EndAutoNet }, + { "ScriptCB_GetAutoNetMode", ScriptCB_GetAutoNetMode }, + { "ScriptCB_OpenNetShell", ScriptCB_OpenNetShell }, + { "ScriptCB_IsNetworkOn", ScriptCB_IsNetworkOn }, + { "ScriptCB_CloseNetShell", ScriptCB_CloseNetShell }, + { "ScriptCB_IsBootInvitePending", ScriptCB_IsBootInvitePending }, + { "ScriptCB_GetAutoAssignTeams", ScriptCB_GetAutoAssignTeams }, + { "ScriptCB_SetNumBots", ScriptCB_SetNumBots }, + { "ScriptCB_GetGameName", ScriptCB_GetGameName }, + { "ScriptCB_SetGameName", ScriptCB_SetGameName }, + { "ScriptCB_SetConnectType", ScriptCB_SetConnectType }, + { "ScriptCB_GetConnectType", ScriptCB_GetConnectType }, + { "ScriptCB_EnableJournal", ScriptCB_EnableJournal }, + { "ScriptCB_EnablePlayback", ScriptCB_EnablePlayback }, + { "ScriptCB_GetLatestError", ScriptCB_GetLatestError }, + { "ScriptCB_GetError", ScriptCB_GetError }, + { "ScriptCB_ClearError", ScriptCB_ClearError }, + { "ScriptCB_IsLoginDone", ScriptCB_IsLoginDone }, + { "ScriptCB_IsLoggedIn", ScriptCB_IsLoggedIn }, + { "ScriptCB_GetLoginName", ScriptCB_GetLoginName }, + { "ScriptCB_StartLoginDedicatedServer", ScriptCB_StartLoginDedicatedServer }, + { "ScriptCB_StartLogin", ScriptCB_StartLogin }, + { "ScriptCB_CancelLogin", ScriptCB_CancelLogin }, + { "ScriptCB_TrackLoginErrors", ScriptCB_TrackLoginErrors }, + { "ScriptCB_IsGuest", ScriptCB_IsGuest }, + { "ScriptCB_BeginLobby", ScriptCB_BeginLobby }, + { "ScriptCB_GetLobbyPlayerlist", ScriptCB_GetLobbyPlayerlist }, + { "ScriptCB_UpdateLobby", ScriptCB_UpdateLobby }, + { "ScriptCB_HasServerLaunched", ScriptCB_HasServerLaunched }, + { "ScriptCB_LaunchLobby", ScriptCB_LaunchLobby }, + { "ScriptCB_CancelLobby", ScriptCB_CancelLobby }, + { "ScriptCB_LobbyAction", ScriptCB_LobbyAction }, + { "ScriptCB_VoteKick", ScriptCB_VoteKick }, + { "ScriptCB_VoteOrNominate", ScriptCB_VoteOrNominate }, + { "ScriptCB_BeginSessionList", ScriptCB_BeginSessionList }, + { "ScriptCB_ClearPrevSessionId", ScriptCB_ClearPrevSessionId }, + { "ScriptCB_GetSessionListPercent", ScriptCB_GetSessionListPercent }, + { "ScriptCB_UpdateSessionList", ScriptCB_UpdateSessionList }, + { "ScriptCB_LaunchSessionList", ScriptCB_LaunchSessionList }, + { "ScriptCB_CancelSessionList", ScriptCB_CancelSessionList }, + { "ScriptCB_PauseSessionList", ScriptCB_PauseSessionList }, + { "ScriptCB_IsSessionReady", ScriptCB_IsSessionReady }, + { "ScriptCB_GetExtraSessionInfo", ScriptCB_GetExtraSessionInfo }, + { "ScriptCB_GetFilters", ScriptCB_GetFilters }, + { "ScriptCB_SetFilters", ScriptCB_SetFilters }, + { "ScriptCB_ApplyFilters", ScriptCB_ApplyFilters }, + { "ScriptCB_GetSessionSortMode", ScriptCB_GetSessionSortMode }, + { "ScriptCB_SetSessionSortMode", ScriptCB_SetSessionSortMode }, + { "ScriptCB_SetAsFavorite", ScriptCB_SetAsFavorite }, + { "ScriptCB_GetSessionList", ScriptCB_GetSessionList }, + { "ScriptCB_NextHost", ScriptCB_NextHost }, + { "ScriptCB_PreviousHost", ScriptCB_PreviousHost }, + { "ScriptCB_IsSpecialJoinPending", ScriptCB_IsSpecialJoinPending }, + { "ScriptCB_IsCmdlineJoinPending", ScriptCB_IsCmdlineJoinPending }, + { "ScriptCB_IsGamespyArcadePasswordReady", ScriptCB_IsGamespyArcadePasswordReady }, + { "ScriptCB_GetCmdlineLogin", ScriptCB_GetCmdlineLogin }, + { "ScriptCB_BeginQuickmatch", ScriptCB_BeginQuickmatch }, + { "ScriptCB_BeginJoinIP", ScriptCB_BeginJoinIP }, + { "ScriptCB_BeginJoinSpecial", ScriptCB_BeginJoinSpecial }, + { "ScriptCB_UpdateQuickmatch", ScriptCB_UpdateQuickmatch }, + { "ScriptCB_LaunchQuickmatch", ScriptCB_LaunchQuickmatch }, + { "ScriptCB_CancelQuickmatch", ScriptCB_CancelQuickmatch }, + { "ScriptCB_IsQuickmatchDone", ScriptCB_IsQuickmatchDone }, + { "ScriptCB_IsQuickmatchPassworded", ScriptCB_IsQuickmatchPassworded }, + { "ScriptCB_CanSupportMaxPlayers", ScriptCB_CanSupportMaxPlayers }, + { "ScriptCB_IsBadNetworkConnection", ScriptCB_IsBadNetworkConnection }, + { "ScriptCB_BeginJoin", ScriptCB_BeginJoin }, + { "ScriptCB_UpdateJoin", ScriptCB_UpdateJoin }, + { "ScriptCB_LaunchJoin", ScriptCB_LaunchJoin }, + { "ScriptCB_CancelJoin", ScriptCB_CancelJoin }, + { "ScriptCB_IsJoinDone", ScriptCB_IsJoinDone }, + { "ScriptCB_BeginLeave", ScriptCB_BeginLeave }, + { "ScriptCB_UpdateLeave", ScriptCB_UpdateLeave }, + { "ScriptCB_LaunchLeave", ScriptCB_LaunchLeave }, + { "ScriptCB_CancelLeave", ScriptCB_CancelLeave }, + { "ScriptCB_IsLeaveDone", ScriptCB_IsLeaveDone }, + { "ScriptCB_IsNetHWPresent", ScriptCB_IsNetHWPresent }, + { "ScriptCB_IsNetCableIn", ScriptCB_IsNetCableIn }, + { "ScriptCB_SetNoticeNoCable", ScriptCB_SetNoticeNoCable }, + { "ScriptCB_GetIPAddr", ScriptCB_GetIPAddr }, + { "ScriptCB_SetNetLoginName", ScriptCB_SetNetLoginName }, + { "ScriptCB_GetLobbyPlayerFlags", ScriptCB_GetLobbyPlayerFlags }, + { "ScriptCB_GetGSProfileInfo", ScriptCB_GetGSProfileInfo }, + { "ScriptCB_SetGSProfileInfo", ScriptCB_SetGSProfileInfo }, + { "ScriptCB_BeginFriends", ScriptCB_BeginFriends }, + { "ScriptCB_CancelFriends", ScriptCB_CancelFriends }, + { "ScriptCB_UpdateFriends", ScriptCB_UpdateFriends }, + { "ScriptCB_GetFriendStateStr", ScriptCB_GetFriendStateStr }, + { "ScriptCB_GetFriendActions", ScriptCB_GetFriendActions }, + { "ScriptCB_DoFriendAction", ScriptCB_DoFriendAction }, + { "ScriptCB_GetFriendListIcon", ScriptCB_GetFriendListIcon }, + { "ScriptCB_AllowSkipDNAS", ScriptCB_AllowSkipDNAS }, + { "ScriptCB_CheckForPatch", ScriptCB_CheckForPatch }, + { "ScriptCB_SkipToNTGUI", ScriptCB_SkipToNTGUI }, + { "ScriptCB_GetSkipToNTGUIProfileName", ScriptCB_GetSkipToNTGUIProfileName }, + { "ScriptCB_ResetSkipToNTGUI", ScriptCB_ResetSkipToNTGUI }, + { "ScriptCB_GetLobbyPlayerCount", ScriptCB_GetLobbyPlayerCount }, + { "ScriptCB_VoiceEnable", ScriptCB_VoiceEnable }, + { "ScriptCB_GetVoiceEnable", ScriptCB_GetVoiceEnable }, + { "ScriptCB_SetVoiceLocalEchoEnable", ScriptCB_SetVoiceLocalEchoEnable }, + { "ScriptCB_SetVoiceSendPreset", ScriptCB_SetVoiceSendPreset }, + { "ScriptCB_GetVoiceSendPreset", ScriptCB_GetVoiceSendPreset }, + { "ScriptCB_SetVoiceReceivePreset", ScriptCB_SetVoiceReceivePreset }, + { "ScriptCB_GetVoiceReceivePreset", ScriptCB_GetVoiceReceivePreset }, + { "ScriptCB_SetVoiceSendEnable", ScriptCB_SetVoiceSendEnable }, + { "ScriptCB_GetVoiceSendStatus", ScriptCB_GetVoiceSendStatus }, + { "ScriptCB_SetVoiceReceiveEnable", ScriptCB_SetVoiceReceiveEnable }, + { "ScriptCB_GetVoiceReceiveStatus", ScriptCB_GetVoiceReceiveStatus }, + { "ScriptCB_GetVoiceRenderConnected", ScriptCB_GetVoiceRenderConnected }, + { "ScriptCB_GetVoiceCaptureConnected", ScriptCB_GetVoiceCaptureConnected }, + { "ScriptCB_GetVoiceTVGain", ScriptCB_GetVoiceTVGain }, + { "ScriptCB_CanClientLeaveStats", ScriptCB_CanClientLeaveStats }, + { "ScriptCB_SearchStatsRank", ScriptCB_SearchStatsRank }, + { "ScriptCB_GetBandwidth", ScriptCB_GetBandwidth }, + { "ScriptCB_SetBandwidth", ScriptCB_SetBandwidth }, + { "ScriptCB_GetPlayerAwardsEnabled", ScriptCB_GetPlayerAwardsEnabled }, + { "ScriptCB_SetPlayerAwardsEnabled", ScriptCB_SetPlayerAwardsEnabled }, + { "ScriptCB_LastSignInError", ScriptCB_LastSignInError }, + { "ScriptCB_SetSplitscreen", ScriptCB_SetSplitscreen }, + { "ScriptCB_GetNumCameras", ScriptCB_GetNumCameras }, + { "ScriptCB_IsSplitscreen", ScriptCB_IsSplitscreen }, + { "ScriptCB_WasSplitscreen", ScriptCB_WasSplitscreen }, + { "ScriptCB_SetPlayerSide", ScriptCB_SetPlayerSide }, + { "ScriptCB_SetDifficulty", ScriptCB_SetDifficulty }, + { "ScriptCB_GetDifficulty", ScriptCB_GetDifficulty }, + { "ScriptCB_GetCTFCaptureLimit", ScriptCB_GetCTFCaptureLimit }, + { "ScriptCB_GetHuntMaxTimeLimit", ScriptCB_GetHuntMaxTimeLimit }, + { "ScriptCB_GetHuntScoreLimit", ScriptCB_GetHuntScoreLimit }, + { "ScriptCB_ShowHuntScoreLimit", ScriptCB_ShowHuntScoreLimit }, + { "ScriptCB_GetCTFMaxTimeLimit", ScriptCB_GetCTFMaxTimeLimit }, + { "ScriptCB_GetAssaultScoreLimit", ScriptCB_GetAssaultScoreLimit }, + { "ScriptCB_GetUberScoreLimit", ScriptCB_GetUberScoreLimit }, + { "ScriptCB_SetUberScoreLimit", ScriptCB_SetUberScoreLimit }, + { "ScriptCB_GetCONMaxTimeLimit", ScriptCB_GetCONMaxTimeLimit }, + { "ScriptCB_GetCONNumBots", ScriptCB_GetCONNumBots }, + { "ScriptCB_GetCTFNumBots", ScriptCB_GetCTFNumBots }, + { "ScriptCB_GetASSNumBots", ScriptCB_GetASSNumBots }, + { "ScriptCB_SetNumBots_", ScriptCB_SetNumBots_ }, + { "ScriptCB_GetFunctionIdForAnalogId", ScriptCB_GetFunctionIdForAnalogId }, + { "ScriptCB_SetFunctionIdForAnalogId", ScriptCB_SetFunctionIdForAnalogId }, + { "ScriptCB_GetFunctionIdForButtonId", ScriptCB_GetFunctionIdForButtonId }, + { "ScriptCB_SetFunctionIdForButtonId", ScriptCB_SetFunctionIdForButtonId }, + { "ScriptCB_SetSpectatorMode", ScriptCB_SetSpectatorMode }, + { "ScriptCB_GetSpectatorMode", ScriptCB_GetSpectatorMode }, + { "ScriptCB_SetCanSwitchSides", ScriptCB_SetCanSwitchSides }, + { "ScriptCB_SetGameRules", ScriptCB_SetGameRules }, + { "ScriptCB_GetGameRules", ScriptCB_GetGameRules }, + { "ScriptCB_SetAIDifficulty", ScriptCB_SetAIDifficulty }, + { "ScriptCB_IsMetaAllMapsOn", ScriptCB_IsMetaAllMapsOn }, + { "ScriptCB_SetMetaAllMapsOn", ScriptCB_SetMetaAllMapsOn }, + { "ScriptCB_GetYAxisFlip", ScriptCB_GetYAxisFlip }, + { "ScriptCB_SetYAxisFlip", ScriptCB_SetYAxisFlip }, + { "ScriptCB_GetMouseTurnAssist", ScriptCB_GetMouseTurnAssist }, + { "ScriptCB_SetMouseTurnAssist", ScriptCB_SetMouseTurnAssist }, + { "ScriptCB_GetControlScale", ScriptCB_GetControlScale }, + { "ScriptCB_SetControlScale", ScriptCB_SetControlScale }, + { "ScriptCB_ResetGameOptionsToDefault", ScriptCB_ResetGameOptionsToDefault }, + { "ScriptCB_ResetSoundToDefault", ScriptCB_ResetSoundToDefault }, + { "ScriptCB_ResetOnlineOptionsToDefault", ScriptCB_ResetOnlineOptionsToDefault }, + { "ScriptCB_ResetControlsToDefault", ScriptCB_ResetControlsToDefault }, + { "ScriptCB_GetGeneralOptions", ScriptCB_GetGeneralOptions }, + { "ScriptCB_SetGeneralOptions", ScriptCB_SetGeneralOptions }, + { "ScriptCB_IsHorizontalSplitScreen", ScriptCB_IsHorizontalSplitScreen }, + { "ScriptCB_SetHorizontalSplitScreen", ScriptCB_SetHorizontalSplitScreen }, + { "ScriptCB_SetHUDScale", ScriptCB_SetHUDScale }, + { "ScriptCB_GetHUDScale", ScriptCB_GetHUDScale }, + { "ScriptCB_NextToolTipState", ScriptCB_NextToolTipState }, + { "ScriptCB_PrevToolTipState", ScriptCB_PrevToolTipState }, + { "ScriptCB_SetToolTipState", ScriptCB_SetToolTipState }, + { "ScriptCB_ResetToolTips", ScriptCB_ResetToolTips }, + { "ScriptCB_SetControlMode", ScriptCB_SetControlMode }, + { "ScriptCB_GetControlMode", ScriptCB_GetControlMode }, + { "ScriptCB_GetSideSelectButtonSetting", ScriptCB_GetSideSelectButtonSetting }, + { "ScriptCB_SetOnlineOpts", ScriptCB_SetOnlineOpts }, + { "ScriptCB_GetOnlineOpts", ScriptCB_GetOnlineOpts }, + { "ScriptCB_GetNetGameDefaults", ScriptCB_GetNetGameDefaults }, + { "ScriptCB_SetNetGameDefaults", ScriptCB_SetNetGameDefaults }, + { "ScriptCB_GetNetHeroDefaults", ScriptCB_GetNetHeroDefaults }, + { "ScriptCB_SetNetHeroDefaults", ScriptCB_SetNetHeroDefaults }, + { "ScriptCB_GetMouseSensitivity", ScriptCB_GetMouseSensitivity }, + { "ScriptCB_GetJoySensitivity", ScriptCB_GetJoySensitivity }, + { "ScriptCB_GetDeadZone", ScriptCB_GetDeadZone }, + { "ScriptCB_SetMouseSensitivity", ScriptCB_SetMouseSensitivity }, + { "ScriptCB_SetJoySensitivity", ScriptCB_SetJoySensitivity }, + { "ScriptCB_SetDeadZone", ScriptCB_SetDeadZone }, + { "ScriptCB_IsJoystickEnabled", ScriptCB_IsJoystickEnabled }, + { "ScriptCB_SetJoystickEnabled", ScriptCB_SetJoystickEnabled }, + { "ScriptCB_SetReticuleTransparency", ScriptCB_SetReticuleTransparency }, + { "ScriptCB_GetReticuleTransparency", ScriptCB_GetReticuleTransparency }, + { "ScriptCB_FillResolutionTable", ScriptCB_FillResolutionTable }, + { "ScriptCB_FillMultisampleTable", ScriptCB_FillMultisampleTable }, + { "ScriptCB_SetResolution", ScriptCB_SetResolution }, + { "ScriptCB_GetIdealResolution", ScriptCB_GetIdealResolution }, + { "ScriptCB_GetCustomResolution", ScriptCB_GetCustomResolution }, + { "ScriptCB_GetPCVideoOptions", ScriptCB_GetPCVideoOptions }, + { "ScriptCB_GetCustomVideoOptions", ScriptCB_GetCustomVideoOptions }, + { "ScriptCB_GetAutodetectPCVideoOptions", ScriptCB_GetAutodetectPCVideoOptions }, + { "ScriptCB_SetPCVideoOptions", ScriptCB_SetPCVideoOptions }, + { "ScriptCB_SetPCBrightnessContrast", ScriptCB_SetPCBrightnessContrast }, + { "ScriptCB_IsPCVideoFixedFunction", ScriptCB_IsPCVideoFixedFunction }, + { "ScriptCB_GetProfileJoinIP", ScriptCB_GetProfileJoinIP }, + { "ScriptCB_SetProfileJoinIP", ScriptCB_SetProfileJoinIP }, + { "ScriptCB_ResetPCVideoOptionsToDefault", ScriptCB_ResetPCVideoOptionsToDefault }, + { "ScriptCB_SetMouseMark", ScriptCB_SetMouseMark }, + { "ScriptCB_ResetMouseMark", ScriptCB_ResetMouseMark }, + { "ScriptCB_CheckMouseMark", ScriptCB_CheckMouseMark }, + { "ScriptCB_GetKeyboardPCFlags", ScriptCB_GetKeyboardPCFlags }, + { "ScriptCB_EnableCursor_", ScriptCB_EnableCursor_ }, + { "ScriptCB_SndBusFade", ScriptCB_SndBusFade }, + { "ScriptCB_SndPlaySound", ScriptCB_SndPlaySound }, + { "ScriptCB_SetBleedingRepeatTime", ScriptCB_SetBleedingRepeatTime }, + { "ScriptCB_SetSpawnDisplayGain", ScriptCB_SetSpawnDisplayGain }, + { "ScriptCB_PlayInGameMusic", ScriptCB_PlayInGameMusic }, + { "ScriptCB_StopInGameMusic", ScriptCB_StopInGameMusic }, + { "ScriptCB_EnableCommandPostVO", ScriptCB_EnableCommandPostVO }, + { "ScriptCB_EnableHeroMusic", ScriptCB_EnableHeroMusic }, + { "ScriptCB_EnableHeroVO", ScriptCB_EnableHeroVO }, + { "ScriptCB_TriggerSoundRegionEnable", ScriptCB_TriggerSoundRegionEnable }, + { "ScriptCB_GetVolumes", ScriptCB_GetVolumes }, + { "ScriptCB_SetVolumes", ScriptCB_SetVolumes }, + { "ScriptCB_EffectsEnabled", ScriptCB_EffectsEnabled }, + { "ScriptCB_ToggleEffects", ScriptCB_ToggleEffects }, + { "ScriptCB_HWSupport", ScriptCB_HWSupport }, + { "ScriptCB_GetOutputMode", ScriptCB_GetOutputMode }, + { "ScriptCB_PreviousOutputMode", ScriptCB_PreviousOutputMode }, + { "ScriptCB_NextOutputMode", ScriptCB_NextOutputMode }, + { "ScriptCB_SetOutputMode", ScriptCB_SetOutputMode }, + { "ScriptCB_GetMixConfig", ScriptCB_GetMixConfig }, + { "ScriptCB_PreviousMixConfig", ScriptCB_PreviousMixConfig }, + { "ScriptCB_NextMixConfig", ScriptCB_NextMixConfig }, + { "ScriptCB_SetMixConfig", ScriptCB_SetMixConfig }, + { "ScriptCB_GetEAXVersion", ScriptCB_GetEAXVersion }, + { "ScriptCB_GetMixConfigChanged", ScriptCB_GetMixConfigChanged }, + { "ScriptCB_SetBassManagement", ScriptCB_SetBassManagement }, + { "ScriptCB_GetBassManagement", ScriptCB_GetBassManagement }, + { "ScriptCB_PlayAuditionEffect", ScriptCB_PlayAuditionEffect }, + { "ScriptCB_SetShellMusic", ScriptCB_SetShellMusic }, + { "ScriptCB_SetShellMusicInterval", ScriptCB_SetShellMusicInterval }, + { "ScriptCB_IsShellMusicPlaying", ScriptCB_IsShellMusicPlaying }, + { "ScriptCB_ShellPlayDelayedStream", ScriptCB_ShellPlayDelayedStream }, + { "ScriptCB_SoundEnable", ScriptCB_SoundEnable }, + { "ScriptCB_SoundDisable", ScriptCB_SoundDisable }, + { "ScriptCB_SetDopplerFactor", ScriptCB_SetDopplerFactor }, + { "ScriptCB_ClientGotStats", ScriptCB_ClientGotStats }, + { "ScriptCB_SetTeamStatsSortMode", ScriptCB_SetTeamStatsSortMode }, + { "ScriptCB_GetTeamstats", ScriptCB_GetTeamstats }, + { "ScriptCB_TeamStatsGetTeam1", ScriptCB_TeamStatsGetTeam1 }, + { "ScriptCB_TeamStatsGetTeamColor", ScriptCB_TeamStatsGetTeamColor }, + { "ScriptCB_TeamStatsSetTitles", ScriptCB_TeamStatsSetTitles }, + { "ScriptCB_PersonalStatsSetTitles", ScriptCB_PersonalStatsSetTitles }, + { "ScriptCB_TeamStatsValidatePos", ScriptCB_TeamStatsValidatePos }, + { "ScriptCB_GetPersonalStats", ScriptCB_GetPersonalStats }, + { "ScriptCB_GetAwardStats", ScriptCB_GetAwardStats }, + { "ScriptCB_GetMedalStats", ScriptCB_GetMedalStats }, + { "ScriptCB_GetCareerPersonalStats", ScriptCB_GetCareerPersonalStats }, + { "ScriptCB_GetCareerRank", ScriptCB_GetCareerRank }, + { "ScriptCB_GetCareerMedals", ScriptCB_GetCareerMedals }, + { "ScriptCB_GetCareerMedalLevel", ScriptCB_GetCareerMedalLevel }, + { "ScriptCB_SetPlayerStatsPoints", ScriptCB_SetPlayerStatsPoints }, + { "ScriptCB_GetRank", ScriptCB_GetRank }, + { "ScriptCB_GetPlayerIDAtRank", ScriptCB_GetPlayerIDAtRank } + }; + + void LuaCallbacks::Init() + { + for (const auto &cb : cbs) + { + RegisterCallback(cb.name, cb.func); + } + } + + void LuaCallbacks::RegisterCallback(const char *name, lua_CFunction func) + { + lua_pushcfunction(SWBF2::m_luaState, func); + lua_pushstring(SWBF2::m_luaState, name); + lua_insert(SWBF2::m_luaState, -2); + lua_settable(SWBF2::m_luaState, -10001); + } +} diff --git a/src/SWBF2/Native/Scripting/Lua/LuaCallbacks.hpp b/src/SWBF2/Native/Scripting/Lua/LuaCallbacks.hpp new file mode 100644 index 0000000..a78892a --- /dev/null +++ b/src/SWBF2/Native/Scripting/Lua/LuaCallbacks.hpp @@ -0,0 +1,13 @@ + +#pragma once + +#include + +namespace SWBF2::Native::Scripting::Lua +{ + class LuaCallbacks { + public: + static void Init(); + static void RegisterCallback(const char *name, lua_CFunction func); + }; +} diff --git a/src/SWBF2/Native/Scripting/Lua/ScriptCB.cpp b/src/SWBF2/Native/Scripting/Lua/ScriptCB.cpp new file mode 100644 index 0000000..c8c589a --- /dev/null +++ b/src/SWBF2/Native/Scripting/Lua/ScriptCB.cpp @@ -0,0 +1,2902 @@ + +#include + +#include "LuaCallbacks.hpp" +#include "ScriptCB.hpp" + +namespace SWBF2::Native::Scripting::Lua +{ + int ScriptCB_DoFile(lua_State *L) + { + return 1; + } + + int ScriptCB_GetPlatform(lua_State *L) + { + lua_pushstring(L, "pc"); + + return 1; + } + + int ScriptCB_GetLanguage(lua_State *L) + { + lua_pushstring(L, "english"); + + return 1; + } + + int ScriptCB_FormatTimeString(lua_State *L) + { + return 0; + } + + int ScriptCB_GetVKeyboardCharacter(lua_State *L) + { + return 0; + } + + int ScriptCB_IsLegalGamespyString(lua_State *L) + { + return 0; + } + + int ScriptCB_tounicode(lua_State *L) + { + return 0; + } + + int ScriptCB_UnicodeStrCat(lua_State *L) + { + return 0; + } + + int ScriptCB_ununicode(lua_State *L) + { + return 0; + } + + int ScriptCB_getlocalizestr(lua_State *L) + { + return 0; + } + + int ScriptCB_usprintf(lua_State *L) + { + return 0; + } + + int ScriptCB_ustrupper(lua_State *L) + { + return 0; + } + + int ScriptCB_srand(lua_State *L) + { + return 0; + } + + int ScriptCB_random(lua_State *L) + { + return 0; + } + + int ScriptCB_GetDateStr(lua_State *L) + { + return 0; + } + + int ScriptCB_GetShellActive(lua_State *L) + { + return 0; + } + + int ScriptCB_SetAutoAcquireControllers(lua_State *L) + { + return 0; + } + + int ScriptCB_ReadAllControllers(lua_State *L) + { + return 0; + } + + int ScriptCB_UnbindController(lua_State *L) + { + return 0; + } + + int ScriptCB_GetPrimaryController(lua_State *L) + { + return 0; + } + + int ScriptCB_GetSecondaryController(lua_State *L) + { + return 0; + } + + int ScriptCB_IsControllerConnected(lua_State *L) + { + return 0; + } + + int ScriptCB_IsControllerBound(lua_State *L) + { + return 0; + } + + int ScriptCB_SwapPrimaryController(lua_State *L) + { + return 0; + } + + int ScriptCB_SetHotController(lua_State *L) + { + return 0; + } + + int ScriptCB_RestorePrimaryController(lua_State *L) + { + return 0; + } + + int ScriptCB_SetIgnoreControllerRemoval(lua_State *L) + { + return 0; + } + + int ScriptCB_GetNumControllers(lua_State *L) + { + return 0; + } + + int ScriptCB_GetMaxControllers(lua_State *L) + { + return 0; + } + + int ScriptCB_GetAutoNetIsDedicated(lua_State *L) + { + return 0; + } + + int ScriptCB_GetAutoNetGameName(lua_State *L) + { + return 0; + } + + int ScriptCB_GetAutoGetPlayerCount(lua_State *L) + { + return 0; + } + + int ScriptCB_SetupAutoNetMissions(lua_State *L) + { + return 0; + } + + int ScriptCB_SetupAutoNetIsLan(lua_State *L) + { + return 0; + } + + int ScriptCB_GetAutoNetScript(lua_State *L) + { + return 0; + } + + int ScriptCB_ReadLeftstick(lua_State *L) + { + return 0; + } + + int ScriptCB_SetQuitPlayer(lua_State *L) + { + return 0; + } + + int ScriptCB_GetQuitPlayer(lua_State *L) + { + return 0; + } + + int ScriptCB_GetMaxMissionQueue(lua_State *L) + { + return 0; + } + + int ScriptCB_SetMissionNames(lua_State *L) + { + return 0; + } + + int ScriptCB_SetTeamNames(lua_State *L) + { + return 0; + } + + int ScriptCB_EnterMission(lua_State *L) + { + return 0; + } + + int ScriptCB_LaunchDemo(lua_State *L) + { + return 0; + } + + int ScriptCB_Reboot(lua_State *L) + { + return 0; + } + + int ScriptCB_GetPausingViewport(lua_State *L) + { + return 0; + } + + int ScriptCB_GetPausingJoystick(lua_State *L) + { + return 0; + } + + int ScriptCB_PausingIsPrimary(lua_State *L) + { + return 0; + } + + int ScriptCB_GetBuildStr(lua_State *L) + { + return 0; + } + + int ScriptCB_UpdateScreen(lua_State *L) + { + return 0; + } + + int ScriptCB_UnlockableState(lua_State *L) + { + return 0; + } + + int ScriptCB_UnlockUnlockable(lua_State *L) + { + return 0; + } + + int ScriptCB_ShouldShowLegal(lua_State *L) + { + return 0; + } + + int ScriptCB_PauseDemoTimer(lua_State *L) + { + return 0; + } + + int ScriptCB_ShouldShowDemoPostscreen(lua_State *L) + { + return 0; + } + + int ScriptCB_ShouldCheckDNAS(lua_State *L) + { + return 0; + } + + int ScriptCB_DoneCheckDNAS(lua_State *L) + { + return 0; + } + + int ScriptCB_HasSeenDNASEULA(lua_State *L) + { + return 0; + } + + int ScriptCB_SetHasSeenDNASEULA(lua_State *L) + { + return 0; + } + + int ScriptCB_ShouldCheckPatch(lua_State *L) + { + return 0; + } + + int ScriptCB_DoneCheckPatch(lua_State *L) + { + return 0; + } + + int ScriptCB_IndexMultipageText(lua_State *L) + { + return 0; + } + + int ScriptCB_ShowMultipageText(lua_State *L) + { + return 0; + } + + int ScriptCB_SetDCMap(lua_State *L) + { + return 0; + } + + int ScriptCB_HideDownloadableContent(lua_State *L) + { + return 0; + } + + int ScriptCB_RestartMission(lua_State *L) + { + return 0; + } + + int ScriptCB_Unpause(lua_State *L) + { + return 0; + } + + int ScriptCB_SkipToPlayerList(lua_State *L) + { + return 0; + } + + int ScriptCB_ResetSkipToPlayerList(lua_State *L) + { + return 0; + } + + int ScriptCB_CheckPlayerListDone(lua_State *L) + { + return 0; + } + + int ScriptCB_GetMissionTime(lua_State *L) + { + return 0; + } + + int ScriptCB_Freecamera(lua_State *L) + { + return 0; + } + + int ScriptCB_IsGameOver(lua_State *L) + { + return 0; + } + + int ScriptCB_QuitToShell(lua_State *L) + { + return 0; + } + + int ScriptCB_QuitToWindows(lua_State *L) + { + return 0; + } + + int ScriptCB_MinimizeWindow(lua_State *L) + { + return 0; + } + + int ScriptCB_QuitFromStats(lua_State *L) + { + return 0; + } + + int ScriptCB_GetTeamName(lua_State *L) + { + return 0; + } + + int ScriptCB_GetSPProgress(lua_State *L) + { + return 0; + } + + int ScriptCB_SetSPProgress(lua_State *L) + { + return 0; + } + + int ScriptCB_GetLastBattleVictory(lua_State *L) + { + return 0; + } + + int ScriptCB_SetLastBattleVictoryValid(lua_State *L) + { + return 0; + } + + int ScriptCB_MetagameSetBonus(lua_State *L) + { + return 0; + } + + int ScriptCB_MetagameSetSide(lua_State *L) + { + return 0; + } + + int ScriptCB_DisableFlyerShadows(lua_State *L) + { + return 0; + } + + int ScriptCB_EnableScene(lua_State *L) + { + return 0; + } + + int ScriptCB_PostLoadHack(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetPos(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_GetPos(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetBasicRotation(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetRelativeRotation(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetRotation(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetAlpha(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_GetAlpha(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetColor(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_GetColor(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetZOrder(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_GetZOrder(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_BringToFront(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SendToBack(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_Enable(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_IsEnabled(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_IsGroup(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetVis(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetEnabled(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_GetVis(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetWidthHeight(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_GetWidthHeight(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetPosition(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_GetPosition(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_MouseOver(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_TestHotSpot(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_CreateHotSpot(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_RemoveHotSpot(lua_State *L) + { + return 0; + } + + int ScriptCB_GetFontHeight(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_SetString(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_SetUString(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_SetTextPosition(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_SetFont(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_SetJustify(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_SetTextBreak(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_SetTextScale(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_GetTextScaleX(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_GetTextScaleY(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_GetTextExtent(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_GetDisplayRect(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_SetIntercharacterSpacin(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_GetIntercharacterSpacin(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_SetTextBox(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_GetTextBox(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_SetTextStyle(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_SetLeading(lua_State *L) + { + return 0; + } + + int ScriptCB_IFText_GetLeading(lua_State *L) + { + return 0; + } + + int ScriptCB_IFFlashyText_Setup(lua_State *L) + { + return 0; + } + + int ScriptCB_IFFlashyText_SetTextColor(lua_State *L) + { + return 0; + } + + int ScriptCB_IFFlashyText_SetBackground(lua_State *L) + { + return 0; + } + + int ScriptCB_IFFlashyText_SetBackgroundSize(lua_State *L) + { + return 0; + } + + int ScriptCB_IFFlashyText_SetBackgroundRigh(lua_State *L) + { + return 0; + } + + int ScriptCB_IFFlashyText_StartFlashiness(lua_State *L) + { + return 0; + } + + int ScriptCB_IFImage_SetTexture(lua_State *L) + { + return 0; + } + + int ScriptCB_IFImage_GetRect(lua_State *L) + { + return 0; + } + + int ScriptCB_IFImage_SetRect(lua_State *L) + { + return 0; + } + + int ScriptCB_IFImage_GetTexCoords(lua_State *L) + { + return 0; + } + + int ScriptCB_IFImage_SetTexCoords(lua_State *L) + { + return 0; + } + + int ScriptCB_IFMaskImage_SetMaskTexture(lua_State *L) + { + return 0; + } + + int ScriptCB_IFMaskImage_SetMaskTexCoords(lua_State *L) + { + return 0; + } + + int ScriptCB_IFMaskImage_GetMaskTexCoords(lua_State *L) + { + return 0; + } + + int ScriptCB_IFBorder_SetTexture(lua_State *L) + { + return 0; + } + + int ScriptCB_IFBorder_GetRect(lua_State *L) + { + return 0; + } + + int ScriptCB_IFBorder_SetRect(lua_State *L) + { + return 0; + } + + int ScriptCB_IFBorder_GetTexCoords(lua_State *L) + { + return 0; + } + + int ScriptCB_IFBorder_SetTexCoords(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_SetModel(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_SetAnimation(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_QueueAnimation(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_SetAnimationBanks(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_SetAnimationTime(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_AttachModel(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_SetScale(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_GetScale(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_SetRotation(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_GetRotation(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_SetTranslation(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_GetTranslation(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_SetDepth(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_GetDepth(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_SetOmegaY(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_SetLighting(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_UpdateAnimation(lua_State *L) + { + return 0; + } + + int ScriptCB_IFModel_SetAnimationLooping(lua_State *L) + { + return 0; + } + + int ScriptCB_AddIFScreen(lua_State *L) + { + return 0; + } + + int ScriptCB_SetIFScreenViewport(lua_State *L) + { + return 0; + } + + int ScriptCB_EndIFScreen(lua_State *L) + { + return 0; + } + + int ScriptCB_IsFileExist(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_GetCPointer(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetScreenPosition(lua_State *L) + { + return 0; + } + + int ScriptCB_IFObj_SetUseSafezone(lua_State *L) + { + return 0; + } + + int ScriptCB_EndIFObj(lua_State *L) + { + return 0; + } + + int ScriptCB_AddIFText(lua_State *L) + { + return 0; + } + + int ScriptCB_AddIFFlashyText(lua_State *L) + { + return 0; + } + + int ScriptCB_AddIFImage(lua_State *L) + { + return 0; + } + + int ScriptCB_AddIFMaskImage(lua_State *L) + { + return 0; + } + + int ScriptCB_AddIFBorder(lua_State *L) + { + return 0; + } + + int ScriptCB_AddIFModel(lua_State *L) + { + return 0; + } + + int ScriptCB_AddIFContainer(lua_State *L) + { + return 0; + } + + int ScriptCB_SetIFScreen(lua_State *L) + { + return 0; + } + + int ScriptCB_PushScreen(lua_State *L) + { + return 0; + } + + int ScriptCB_PopScreen(lua_State *L) + { + return 0; + } + + int ScriptCB_IsScreenInStack(lua_State *L) + { + return 0; + } + + int ScriptCB_OpenPopup(lua_State *L) + { + return 0; + } + + int ScriptCB_ClosePopup(lua_State *L) + { + return 0; + } + + int ScriptCB_IsPopupOpen(lua_State *L) + { + return 0; + } + + int ScriptCB_SetIgnoreInputs(lua_State *L) + { + return 0; + } + + int ScriptCB_OpenMovie(lua_State *L) + { + return 0; + } + + int ScriptCB_CloseMovie(lua_State *L) + { + return 0; + } + + int ScriptCB_PlayMovie(lua_State *L) + { + return 0; + } + + int ScriptCB_IsMoviePlaying(lua_State *L) + { + return 0; + } + + int ScriptCB_AreMoviePropertiesPlaying(lua_State *L) + { + return 0; + } + + int ScriptCB_StopMovie(lua_State *L) + { + return 0; + } + + int ScriptCB_SetMovieAudioBus(lua_State *L) + { + return 0; + } + + int ScriptCB_IsPropertyPlayingNow(lua_State *L) + { + return 0; + } + + int ScriptCB_PlayInGameMovie(lua_State *L) + { + return 0; + } + + int ScriptCB_StopInGameMovie(lua_State *L) + { + return 0; + } + + int ScriptCB_GetScreenInfo(lua_State *L) + { + return 0; + } + + int ScriptCB_GetSafeScreenInfo(lua_State *L) + { + return 0; + } + + int ScriptCB_IsErrorBoxOpen(lua_State *L) + { + return 0; + } + + int ScriptCB_OpenErrorBox(lua_State *L) + { + return 0; + } + + int ScriptCB_CloseErrorBox(lua_State *L) + { + return 0; + } + + int ScriptCB_GetErrorLevel(lua_State *L) + { + return 0; + } + + int ScriptCB_GetConsoleCmds(lua_State *L) + { + return 0; + } + + int ScriptCB_DoConsoleCmd(lua_State *L) + { + return 0; + } + + int ScriptCB_GetLeaderBoardPlayerData(lua_State *L) + { + return 0; + } + + int ScriptCB_DownloadLeaderBoardData(lua_State *L) + { + return 0; + } + + int ScriptCB_LeaderBoardDownloadDone(lua_State *L) + { + return 0; + } + + int ScriptCB_CancelLeaderBoardPlayerData(lua_State *L) + { + return 0; + } + + int ScriptCB_SetLeaderBoardID(lua_State *L) + { + return 0; + } + + int ScriptCB_ResetLeaderBoardPlayerData(lua_State *L) + { + return 0; + } + + int ScriptCB_EnumerateLeaderBoard(lua_State *L) + { + return 0; + } + + int ScriptCB_EnumerateLeaderBoardDone(lua_State *L) + { + return 0; + } + + int ScriptCB_GetEnumerateLeaderBoardData(lua_State *L) + { + return 0; + } + + int ScriptCB_IsEnableLeaderBoard(lua_State *L) + { + return 0; + } + + int ScriptCB_SetSunlight(lua_State *L) + { + return 0; + } + + int ScriptCB_ResetControl(lua_State *L) + { + return 0; + } + + int ScriptCB_SetBinding(lua_State *L) + { + return 0; + } + + int ScriptCB_GetActionFromIdx(lua_State *L) + { + return 0; + } + + int ScriptCB_GetKeyBoardCmds(lua_State *L) + { + return 0; + } + + int ScriptCB_EnableCursor(lua_State *L) + { + return 0; + } + + int ScriptCB_MrMrsEval(lua_State *L) + { + return 0; + } + + int ScriptCB_GetEntityMesh(lua_State *L) + { + return 0; + } + + int ScriptCB_GetEntityWeaponMesh(lua_State *L) + { + return 0; + } + + int ScriptCB_GetEntityLabel(lua_State *L) + { + return 0; + } + + int ScriptCB_GetIFaceLighting(lua_State *L) + { + return 0; + } + + int ScriptCB_SetIFaceLighting(lua_State *L) + { + return 0; + } + + int ScriptCB_RemoveTexture(lua_State *L) + { + return 0; + } + + int ScriptCB_ShowLoadDisplay(lua_State *L) + { + return 0; + } + + int ScriptCB_SetInputRepeat(lua_State *L) + { + return 0; + } + + int ScriptCB_GetLoginList(lua_State *L) + { + return 0; + } + + int ScriptCB_IsCurProfileDirty(lua_State *L) + { + return 0; + } + + int ScriptCB_IsProfileDirty(lua_State *L) + { + return 0; + } + + int ScriptCB_SetProfileNotDirty(lua_State *L) + { + return 0; + } + + int ScriptCB_LoadSavePopupResult(lua_State *L) + { + return 0; + } + + int ScriptCB_DoInitialMemcardCheck(lua_State *L) + { + return 0; + } + + int ScriptCB_StartInitialMemcardCheck(lua_State *L) + { + return 0; + } + + int ScriptCB_StartPreOp(lua_State *L) + { + return 0; + } + + int ScriptCB_IsPlayerLoggedIn(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCurrentProfileName(lua_State *L) + { + return 0; + } + + int ScriptCB_GetProfileName(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCurrentProfileNetName(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCurrentPCTitleVersion(lua_State *L) + { + return 0; + } + + int ScriptCB_AddProfile(lua_State *L) + { + return 0; + } + + int ScriptCB_SwapActiveProfileSlots(lua_State *L) + { + return 0; + } + + int ScriptCB_StartLoadProfile(lua_State *L) + { + return 0; + } + + int ScriptCB_MakeFakeProfiles(lua_State *L) + { + return 0; + } + + int ScriptCB_SetProfileAsDefault(lua_State *L) + { + return 0; + } + + int ScriptCB_RestoreDefaultProfile(lua_State *L) + { + return 0; + } + + int ScriptCB_MarkCurrentProfile(lua_State *L) + { + return 0; + } + + int ScriptCB_ReloadMarkedProfile(lua_State *L) + { + return 0; + } + + int ScriptCB_HasProfileChanged(lua_State *L) + { + return 0; + } + + int ScriptCB_StartDeleteProfile(lua_State *L) + { + return 0; + } + + int ScriptCB_StartSaveProfile(lua_State *L) + { + return 0; + } + + int ScriptCB_StartLoadMetagame(lua_State *L) + { + return 0; + } + + int ScriptCB_StartSaveMetagame(lua_State *L) + { + return 0; + } + + int ScriptCB_StartDeleteMetagame(lua_State *L) + { + return 0; + } + + int ScriptCB_IsCurrentMetagame(lua_State *L) + { + return 0; + } + + int ScriptCB_StartLoadCampaign(lua_State *L) + { + return 0; + } + + int ScriptCB_StartSaveCampaign(lua_State *L) + { + return 0; + } + + int ScriptCB_StartDeleteCampaign(lua_State *L) + { + return 0; + } + + int ScriptCB_IsCurrentCampaign(lua_State *L) + { + return 0; + } + + int ScriptCB_TrimLoginName(lua_State *L) + { + return 0; + } + + int ScriptCB_GetUniqueLoginName(lua_State *L) + { + return 0; + } + + int ScriptCB_IsUniqueLoginName(lua_State *L) + { + return 0; + } + + int ScriptCB_MarkMemoryCard(lua_State *L) + { + return 0; + } + + int ScriptCB_CheckMemoryCardMark(lua_State *L) + { + return 0; + } + + int ScriptCB_IsMemoryCardUnformatted(lua_State *L) + { + return 0; + } + + int ScriptCB_IsMemoryCardInsertted(lua_State *L) + { + return 0; + } + + int ScriptCB_DoesProfileExistOnCard(lua_State *L) + { + return 0; + } + + int ScriptCB_InMemoryProfileMode(lua_State *L) + { + return 0; + } + + int ScriptCB_SetMemoryProfileMode(lua_State *L) + { + return 0; + } + + int ScriptCB_CheckIfOkToExitMemoryMode(lua_State *L) + { + return 0; + } + + int ScriptCB_GetSavedMetagameList(lua_State *L) + { + return 0; + } + + int ScriptCB_StartNewMetagame(lua_State *L) + { + return 0; + } + + int ScriptCB_DoesMetagameExistOnCard(lua_State *L) + { + return 0; + } + + int ScriptCB_GetSavedCampaignList(lua_State *L) + { + return 0; + } + + int ScriptCB_StartNewCampaign(lua_State *L) + { + return 0; + } + + int ScriptCB_DoesCampaignExistOnCard(lua_State *L) + { + return 0; + } + + int ScriptCB_Logout(lua_State *L) + { + return 0; + } + + int ScriptCB_SaveMetagameState(lua_State *L) + { + return 0; + } + + int ScriptCB_LoadMetagameState(lua_State *L) + { + return 0; + } + + int ScriptCB_ClearMetagameState(lua_State *L) + { + return 0; + } + + int ScriptCB_IsMetagameStateSaved(lua_State *L) + { + return 0; + } + + int ScriptCB_SaveCampaignState(lua_State *L) + { + return 0; + } + + int ScriptCB_LoadCampaignState(lua_State *L) + { + return 0; + } + + int ScriptCB_ClearCampaignState(lua_State *L) + { + return 0; + } + + int ScriptCB_IsCampaignStateSaved(lua_State *L) + { + return 0; + } + + int ScriptCB_SetInTrainingMission(lua_State *L) + { + return 0; + } + + int ScriptCB_GetInTrainingMission(lua_State *L) + { + return 0; + } + + int ScriptCB_SaveMissionSetup(lua_State *L) + { + return 0; + } + + int ScriptCB_LoadMissionSetup(lua_State *L) + { + return 0; + } + + int ScriptCB_ClearMissionSetup(lua_State *L) + { + return 0; + } + + int ScriptCB_IsMissionSetupSaved(lua_State *L) + { + return 0; + } + + int ScriptCB_PlayerSuicide(lua_State *L) + { + return 0; + } + + int ScriptCB_AutoNetJoin(lua_State *L) + { + return 0; + } + + int ScriptCB_GetOnlineService(lua_State *L) + { + return 0; + } + + int ScriptCB_SetAmHost(lua_State *L) + { + return 0; + } + + int ScriptCB_GetAmHost(lua_State *L) + { + return 0; + } + + int ScriptCB_GetWasHost(lua_State *L) + { + return 0; + } + + int ScriptCB_InNetGame(lua_State *L) + { + return 0; + } + + int ScriptCB_SetInNetGame(lua_State *L) + { + return 0; + } + + int ScriptCB_InMultiplayer(lua_State *L) + { + return 0; + } + + int ScriptCB_InNetSession(lua_State *L) + { + return 0; + } + + int ScriptCB_NetWasHost(lua_State *L) + { + return 0; + } + + int ScriptCB_NetWasDedicated(lua_State *L) + { + return 0; + } + + int ScriptCB_NetWasDedicatedQuit(lua_State *L) + { + return 0; + } + + int ScriptCB_NetWasClient(lua_State *L) + { + return 0; + } + + int ScriptCB_IsDedicated(lua_State *L) + { + return 0; + } + + int ScriptCB_SetDedicated(lua_State *L) + { + return 0; + } + + int ScriptCB_IsInShell(lua_State *L) + { + return 0; + } + + int ScriptCB_IsAutoNet(lua_State *L) + { + return 0; + } + + int ScriptCB_EndAutoNet(lua_State *L) + { + return 0; + } + + int ScriptCB_GetAutoNetMode(lua_State *L) + { + return 0; + } + + int ScriptCB_OpenNetShell(lua_State *L) + { + return 0; + } + + int ScriptCB_IsNetworkOn(lua_State *L) + { + return 0; + } + + int ScriptCB_CloseNetShell(lua_State *L) + { + return 0; + } + + int ScriptCB_IsBootInvitePending(lua_State *L) + { + return 0; + } + + int ScriptCB_GetAutoAssignTeams(lua_State *L) + { + return 0; + } + + int ScriptCB_SetNumBots(lua_State *L) + { + return 0; + } + + int ScriptCB_GetGameName(lua_State *L) + { + return 0; + } + + int ScriptCB_SetGameName(lua_State *L) + { + return 0; + } + + int ScriptCB_SetConnectType(lua_State *L) + { + return 0; + } + + int ScriptCB_GetConnectType(lua_State *L) + { + return 0; + } + + int ScriptCB_EnableJournal(lua_State *L) + { + return 0; + } + + int ScriptCB_EnablePlayback(lua_State *L) + { + return 0; + } + + int ScriptCB_GetLatestError(lua_State *L) + { + return 0; + } + + int ScriptCB_GetError(lua_State *L) + { + return 0; + } + + int ScriptCB_ClearError(lua_State *L) + { + return 0; + } + + int ScriptCB_IsLoginDone(lua_State *L) + { + return 0; + } + + int ScriptCB_IsLoggedIn(lua_State *L) + { + return 0; + } + + int ScriptCB_GetLoginName(lua_State *L) + { + return 0; + } + + int ScriptCB_StartLoginDedicatedServer(lua_State *L) + { + return 0; + } + + int ScriptCB_StartLogin(lua_State *L) + { + return 0; + } + + int ScriptCB_CancelLogin(lua_State *L) + { + return 0; + } + + int ScriptCB_TrackLoginErrors(lua_State *L) + { + return 0; + } + + int ScriptCB_IsGuest(lua_State *L) + { + return 0; + } + + int ScriptCB_BeginLobby(lua_State *L) + { + return 0; + } + + int ScriptCB_GetLobbyPlayerlist(lua_State *L) + { + return 0; + } + + int ScriptCB_UpdateLobby(lua_State *L) + { + return 0; + } + + int ScriptCB_HasServerLaunched(lua_State *L) + { + return 0; + } + + int ScriptCB_LaunchLobby(lua_State *L) + { + return 0; + } + + int ScriptCB_CancelLobby(lua_State *L) + { + return 0; + } + + int ScriptCB_LobbyAction(lua_State *L) + { + return 0; + } + + int ScriptCB_VoteKick(lua_State *L) + { + return 0; + } + + int ScriptCB_VoteOrNominate(lua_State *L) + { + return 0; + } + + int ScriptCB_BeginSessionList(lua_State *L) + { + return 0; + } + + int ScriptCB_ClearPrevSessionId(lua_State *L) + { + return 0; + } + + int ScriptCB_GetSessionListPercent(lua_State *L) + { + return 0; + } + + int ScriptCB_UpdateSessionList(lua_State *L) + { + return 0; + } + + int ScriptCB_LaunchSessionList(lua_State *L) + { + return 0; + } + + int ScriptCB_CancelSessionList(lua_State *L) + { + return 0; + } + + int ScriptCB_PauseSessionList(lua_State *L) + { + return 0; + } + + int ScriptCB_IsSessionReady(lua_State *L) + { + return 0; + } + + int ScriptCB_GetExtraSessionInfo(lua_State *L) + { + return 0; + } + + int ScriptCB_GetFilters(lua_State *L) + { + return 0; + } + + int ScriptCB_SetFilters(lua_State *L) + { + return 0; + } + + int ScriptCB_ApplyFilters(lua_State *L) + { + return 0; + } + + int ScriptCB_GetSessionSortMode(lua_State *L) + { + return 0; + } + + int ScriptCB_SetSessionSortMode(lua_State *L) + { + return 0; + } + + int ScriptCB_SetAsFavorite(lua_State *L) + { + return 0; + } + + int ScriptCB_GetSessionList(lua_State *L) + { + return 0; + } + + int ScriptCB_NextHost(lua_State *L) + { + return 0; + } + + int ScriptCB_PreviousHost(lua_State *L) + { + return 0; + } + + int ScriptCB_IsSpecialJoinPending(lua_State *L) + { + return 0; + } + + int ScriptCB_IsCmdlineJoinPending(lua_State *L) + { + return 0; + } + + int ScriptCB_IsGamespyArcadePasswordReady(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCmdlineLogin(lua_State *L) + { + return 0; + } + + int ScriptCB_BeginQuickmatch(lua_State *L) + { + return 0; + } + + int ScriptCB_BeginJoinIP(lua_State *L) + { + return 0; + } + + int ScriptCB_BeginJoinSpecial(lua_State *L) + { + return 0; + } + + int ScriptCB_UpdateQuickmatch(lua_State *L) + { + return 0; + } + + int ScriptCB_LaunchQuickmatch(lua_State *L) + { + return 0; + } + + int ScriptCB_CancelQuickmatch(lua_State *L) + { + return 0; + } + + int ScriptCB_IsQuickmatchDone(lua_State *L) + { + return 0; + } + + int ScriptCB_IsQuickmatchPassworded(lua_State *L) + { + return 0; + } + + int ScriptCB_CanSupportMaxPlayers(lua_State *L) + { + return 0; + } + + int ScriptCB_IsBadNetworkConnection(lua_State *L) + { + return 0; + } + + int ScriptCB_BeginJoin(lua_State *L) + { + return 0; + } + + int ScriptCB_UpdateJoin(lua_State *L) + { + return 0; + } + + int ScriptCB_LaunchJoin(lua_State *L) + { + return 0; + } + + int ScriptCB_CancelJoin(lua_State *L) + { + return 0; + } + + int ScriptCB_IsJoinDone(lua_State *L) + { + return 0; + } + + int ScriptCB_BeginLeave(lua_State *L) + { + return 0; + } + + int ScriptCB_UpdateLeave(lua_State *L) + { + return 0; + } + + int ScriptCB_LaunchLeave(lua_State *L) + { + return 0; + } + + int ScriptCB_CancelLeave(lua_State *L) + { + return 0; + } + + int ScriptCB_IsLeaveDone(lua_State *L) + { + return 0; + } + + int ScriptCB_IsNetHWPresent(lua_State *L) + { + return 0; + } + + int ScriptCB_IsNetCableIn(lua_State *L) + { + return 0; + } + + int ScriptCB_SetNoticeNoCable(lua_State *L) + { + return 0; + } + + int ScriptCB_GetIPAddr(lua_State *L) + { + return 0; + } + + int ScriptCB_SetNetLoginName(lua_State *L) + { + return 0; + } + + int ScriptCB_GetLobbyPlayerFlags(lua_State *L) + { + return 0; + } + + int ScriptCB_GetGSProfileInfo(lua_State *L) + { + return 0; + } + + int ScriptCB_SetGSProfileInfo(lua_State *L) + { + return 0; + } + + int ScriptCB_BeginFriends(lua_State *L) + { + return 0; + } + + int ScriptCB_CancelFriends(lua_State *L) + { + return 0; + } + + int ScriptCB_UpdateFriends(lua_State *L) + { + return 0; + } + + int ScriptCB_GetFriendStateStr(lua_State *L) + { + return 0; + } + + int ScriptCB_GetFriendActions(lua_State *L) + { + return 0; + } + + int ScriptCB_DoFriendAction(lua_State *L) + { + return 0; + } + + int ScriptCB_GetFriendListIcon(lua_State *L) + { + return 0; + } + + int ScriptCB_AllowSkipDNAS(lua_State *L) + { + return 0; + } + + int ScriptCB_CheckForPatch(lua_State *L) + { + return 0; + } + + int ScriptCB_SkipToNTGUI(lua_State *L) + { + return 0; + } + + int ScriptCB_GetSkipToNTGUIProfileName(lua_State *L) + { + return 0; + } + + int ScriptCB_ResetSkipToNTGUI(lua_State *L) + { + return 0; + } + + int ScriptCB_GetLobbyPlayerCount(lua_State *L) + { + return 0; + } + + int ScriptCB_VoiceEnable(lua_State *L) + { + return 0; + } + + int ScriptCB_GetVoiceEnable(lua_State *L) + { + return 0; + } + + int ScriptCB_SetVoiceLocalEchoEnable(lua_State *L) + { + return 0; + } + + int ScriptCB_SetVoiceSendPreset(lua_State *L) + { + return 0; + } + + int ScriptCB_GetVoiceSendPreset(lua_State *L) + { + return 0; + } + + int ScriptCB_SetVoiceReceivePreset(lua_State *L) + { + return 0; + } + + int ScriptCB_GetVoiceReceivePreset(lua_State *L) + { + return 0; + } + + int ScriptCB_SetVoiceSendEnable(lua_State *L) + { + return 0; + } + + int ScriptCB_GetVoiceSendStatus(lua_State *L) + { + return 0; + } + + int ScriptCB_SetVoiceReceiveEnable(lua_State *L) + { + return 0; + } + + int ScriptCB_GetVoiceReceiveStatus(lua_State *L) + { + return 0; + } + + int ScriptCB_GetVoiceRenderConnected(lua_State *L) + { + return 0; + } + + int ScriptCB_GetVoiceCaptureConnected(lua_State *L) + { + return 0; + } + + int ScriptCB_GetVoiceTVGain(lua_State *L) + { + return 0; + } + + int ScriptCB_CanClientLeaveStats(lua_State *L) + { + return 0; + } + + int ScriptCB_SearchStatsRank(lua_State *L) + { + return 0; + } + + int ScriptCB_GetBandwidth(lua_State *L) + { + return 0; + } + + int ScriptCB_SetBandwidth(lua_State *L) + { + return 0; + } + + int ScriptCB_GetPlayerAwardsEnabled(lua_State *L) + { + return 0; + } + + int ScriptCB_SetPlayerAwardsEnabled(lua_State *L) + { + return 0; + } + + int ScriptCB_LastSignInError(lua_State *L) + { + return 0; + } + + int ScriptCB_SetSplitscreen(lua_State *L) + { + return 0; + } + + int ScriptCB_GetNumCameras(lua_State *L) + { + return 0; + } + + int ScriptCB_IsSplitscreen(lua_State *L) + { + return 0; + } + + int ScriptCB_WasSplitscreen(lua_State *L) + { + return 0; + } + + int ScriptCB_SetPlayerSide(lua_State *L) + { + return 0; + } + + int ScriptCB_SetDifficulty(lua_State *L) + { + return 0; + } + + int ScriptCB_GetDifficulty(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCTFCaptureLimit(lua_State *L) + { + return 0; + } + + int ScriptCB_GetHuntMaxTimeLimit(lua_State *L) + { + return 0; + } + + int ScriptCB_GetHuntScoreLimit(lua_State *L) + { + return 0; + } + + int ScriptCB_ShowHuntScoreLimit(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCTFMaxTimeLimit(lua_State *L) + { + return 0; + } + + int ScriptCB_GetAssaultScoreLimit(lua_State *L) + { + return 0; + } + + int ScriptCB_GetUberScoreLimit(lua_State *L) + { + return 0; + } + + int ScriptCB_SetUberScoreLimit(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCONMaxTimeLimit(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCONNumBots(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCTFNumBots(lua_State *L) + { + return 0; + } + + int ScriptCB_GetASSNumBots(lua_State *L) + { + return 0; + } + + int ScriptCB_SetNumBots_(lua_State *L) + { + return 0; + } + + int ScriptCB_GetFunctionIdForAnalogId(lua_State *L) + { + return 0; + } + + int ScriptCB_SetFunctionIdForAnalogId(lua_State *L) + { + return 0; + } + + int ScriptCB_GetFunctionIdForButtonId(lua_State *L) + { + return 0; + } + + int ScriptCB_SetFunctionIdForButtonId(lua_State *L) + { + return 0; + } + + int ScriptCB_SetSpectatorMode(lua_State *L) + { + return 0; + } + + int ScriptCB_GetSpectatorMode(lua_State *L) + { + return 0; + } + + int ScriptCB_SetCanSwitchSides(lua_State *L) + { + return 0; + } + + int ScriptCB_SetGameRules(lua_State *L) + { + return 0; + } + + int ScriptCB_GetGameRules(lua_State *L) + { + return 0; + } + + int ScriptCB_SetAIDifficulty(lua_State *L) + { + return 0; + } + + int ScriptCB_IsMetaAllMapsOn(lua_State *L) + { + return 0; + } + + int ScriptCB_SetMetaAllMapsOn(lua_State *L) + { + return 0; + } + + int ScriptCB_GetYAxisFlip(lua_State *L) + { + return 0; + } + + int ScriptCB_SetYAxisFlip(lua_State *L) + { + return 0; + } + + int ScriptCB_GetMouseTurnAssist(lua_State *L) + { + return 0; + } + + int ScriptCB_SetMouseTurnAssist(lua_State *L) + { + return 0; + } + + int ScriptCB_GetControlScale(lua_State *L) + { + return 0; + } + + int ScriptCB_SetControlScale(lua_State *L) + { + return 0; + } + + int ScriptCB_ResetGameOptionsToDefault(lua_State *L) + { + return 0; + } + + int ScriptCB_ResetSoundToDefault(lua_State *L) + { + return 0; + } + + int ScriptCB_ResetOnlineOptionsToDefault(lua_State *L) + { + return 0; + } + + int ScriptCB_ResetControlsToDefault(lua_State *L) + { + return 0; + } + + int ScriptCB_GetGeneralOptions(lua_State *L) + { + return 0; + } + + int ScriptCB_SetGeneralOptions(lua_State *L) + { + return 0; + } + + int ScriptCB_IsHorizontalSplitScreen(lua_State *L) + { + return 0; + } + + int ScriptCB_SetHorizontalSplitScreen(lua_State *L) + { + return 0; + } + + int ScriptCB_SetHUDScale(lua_State *L) + { + return 0; + } + + int ScriptCB_GetHUDScale(lua_State *L) + { + return 0; + } + + int ScriptCB_NextToolTipState(lua_State *L) + { + return 0; + } + + int ScriptCB_PrevToolTipState(lua_State *L) + { + return 0; + } + + int ScriptCB_SetToolTipState(lua_State *L) + { + return 0; + } + + int ScriptCB_ResetToolTips(lua_State *L) + { + return 0; + } + + int ScriptCB_SetControlMode(lua_State *L) + { + return 0; + } + + int ScriptCB_GetControlMode(lua_State *L) + { + return 0; + } + + int ScriptCB_GetSideSelectButtonSetting(lua_State *L) + { + return 0; + } + + int ScriptCB_SetOnlineOpts(lua_State *L) + { + return 0; + } + + int ScriptCB_GetOnlineOpts(lua_State *L) + { + return 0; + } + + int ScriptCB_GetNetGameDefaults(lua_State *L) + { + return 0; + } + + int ScriptCB_SetNetGameDefaults(lua_State *L) + { + return 0; + } + + int ScriptCB_GetNetHeroDefaults(lua_State *L) + { + return 0; + } + + int ScriptCB_SetNetHeroDefaults(lua_State *L) + { + return 0; + } + + int ScriptCB_GetMouseSensitivity(lua_State *L) + { + return 0; + } + + int ScriptCB_GetJoySensitivity(lua_State *L) + { + return 0; + } + + int ScriptCB_GetDeadZone(lua_State *L) + { + return 0; + } + + int ScriptCB_SetMouseSensitivity(lua_State *L) + { + return 0; + } + + int ScriptCB_SetJoySensitivity(lua_State *L) + { + return 0; + } + + int ScriptCB_SetDeadZone(lua_State *L) + { + return 0; + } + + int ScriptCB_IsJoystickEnabled(lua_State *L) + { + return 0; + } + + int ScriptCB_SetJoystickEnabled(lua_State *L) + { + return 0; + } + + int ScriptCB_SetReticuleTransparency(lua_State *L) + { + return 0; + } + + int ScriptCB_GetReticuleTransparency(lua_State *L) + { + return 0; + } + + int ScriptCB_FillResolutionTable(lua_State *L) + { + return 0; + } + + int ScriptCB_FillMultisampleTable(lua_State *L) + { + return 0; + } + + int ScriptCB_SetResolution(lua_State *L) + { + return 0; + } + + int ScriptCB_GetIdealResolution(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCustomResolution(lua_State *L) + { + return 0; + } + + int ScriptCB_GetPCVideoOptions(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCustomVideoOptions(lua_State *L) + { + return 0; + } + + int ScriptCB_GetAutodetectPCVideoOptions(lua_State *L) + { + return 0; + } + + int ScriptCB_SetPCVideoOptions(lua_State *L) + { + return 0; + } + + int ScriptCB_SetPCBrightnessContrast(lua_State *L) + { + return 0; + } + + int ScriptCB_IsPCVideoFixedFunction(lua_State *L) + { + return 0; + } + + int ScriptCB_GetProfileJoinIP(lua_State *L) + { + return 0; + } + + int ScriptCB_SetProfileJoinIP(lua_State *L) + { + return 0; + } + + int ScriptCB_ResetPCVideoOptionsToDefault(lua_State *L) + { + return 0; + } + + int ScriptCB_SetMouseMark(lua_State *L) + { + return 0; + } + + int ScriptCB_ResetMouseMark(lua_State *L) + { + return 0; + } + + int ScriptCB_CheckMouseMark(lua_State *L) + { + return 0; + } + + int ScriptCB_GetKeyboardPCFlags(lua_State *L) + { + return 0; + } + + int ScriptCB_EnableCursor_(lua_State *L) + { + return 0; + } + + int ScriptCB_SndBusFade(lua_State *L) + { + return 0; + } + + int ScriptCB_SndPlaySound(lua_State *L) + { + return 0; + } + + int ScriptCB_SetBleedingRepeatTime(lua_State *L) + { + return 0; + } + + int ScriptCB_SetSpawnDisplayGain(lua_State *L) + { + return 0; + } + + int ScriptCB_PlayInGameMusic(lua_State *L) + { + return 0; + } + + int ScriptCB_StopInGameMusic(lua_State *L) + { + return 0; + } + + int ScriptCB_EnableCommandPostVO(lua_State *L) + { + return 0; + } + + int ScriptCB_EnableHeroMusic(lua_State *L) + { + return 0; + } + + int ScriptCB_EnableHeroVO(lua_State *L) + { + return 0; + } + + int ScriptCB_TriggerSoundRegionEnable(lua_State *L) + { + return 0; + } + + int ScriptCB_GetVolumes(lua_State *L) + { + return 0; + } + + int ScriptCB_SetVolumes(lua_State *L) + { + return 0; + } + + int ScriptCB_EffectsEnabled(lua_State *L) + { + return 0; + } + + int ScriptCB_ToggleEffects(lua_State *L) + { + return 0; + } + + int ScriptCB_HWSupport(lua_State *L) + { + return 0; + } + + int ScriptCB_GetOutputMode(lua_State *L) + { + return 0; + } + + int ScriptCB_PreviousOutputMode(lua_State *L) + { + return 0; + } + + int ScriptCB_NextOutputMode(lua_State *L) + { + return 0; + } + + int ScriptCB_SetOutputMode(lua_State *L) + { + return 0; + } + + int ScriptCB_GetMixConfig(lua_State *L) + { + return 0; + } + + int ScriptCB_PreviousMixConfig(lua_State *L) + { + return 0; + } + + int ScriptCB_NextMixConfig(lua_State *L) + { + return 0; + } + + int ScriptCB_SetMixConfig(lua_State *L) + { + return 0; + } + + int ScriptCB_GetEAXVersion(lua_State *L) + { + return 0; + } + + int ScriptCB_GetMixConfigChanged(lua_State *L) + { + return 0; + } + + int ScriptCB_SetBassManagement(lua_State *L) + { + return 0; + } + + int ScriptCB_GetBassManagement(lua_State *L) + { + return 0; + } + + int ScriptCB_PlayAuditionEffect(lua_State *L) + { + return 0; + } + + int ScriptCB_SetShellMusic(lua_State *L) + { + return 0; + } + + int ScriptCB_SetShellMusicInterval(lua_State *L) + { + return 0; + } + + int ScriptCB_IsShellMusicPlaying(lua_State *L) + { + return 0; + } + + int ScriptCB_ShellPlayDelayedStream(lua_State *L) + { + return 0; + } + + int ScriptCB_SoundEnable(lua_State *L) + { + return 0; + } + + int ScriptCB_SoundDisable(lua_State *L) + { + return 0; + } + + int ScriptCB_SetDopplerFactor(lua_State *L) + { + return 0; + } + + int ScriptCB_ClientGotStats(lua_State *L) + { + return 0; + } + + int ScriptCB_SetTeamStatsSortMode(lua_State *L) + { + return 0; + } + + int ScriptCB_GetTeamstats(lua_State *L) + { + return 0; + } + + int ScriptCB_TeamStatsGetTeam1(lua_State *L) + { + return 0; + } + + int ScriptCB_TeamStatsGetTeamColor(lua_State *L) + { + return 0; + } + + int ScriptCB_TeamStatsSetTitles(lua_State *L) + { + return 0; + } + + int ScriptCB_PersonalStatsSetTitles(lua_State *L) + { + return 0; + } + + int ScriptCB_TeamStatsValidatePos(lua_State *L) + { + return 0; + } + + int ScriptCB_GetPersonalStats(lua_State *L) + { + return 0; + } + + int ScriptCB_GetAwardStats(lua_State *L) + { + return 0; + } + + int ScriptCB_GetMedalStats(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCareerPersonalStats(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCareerRank(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCareerMedals(lua_State *L) + { + return 0; + } + + int ScriptCB_GetCareerMedalLevel(lua_State *L) + { + return 0; + } + + int ScriptCB_SetPlayerStatsPoints(lua_State *L) + { + return 0; + } + + int ScriptCB_GetRank(lua_State *L) + { + return 0; + } + + int ScriptCB_GetPlayerIDAtRank(lua_State *L) + { + return 0; + } +} diff --git a/src/SWBF2/Native/Scripting/Lua/ScriptCB.hpp b/src/SWBF2/Native/Scripting/Lua/ScriptCB.hpp new file mode 100644 index 0000000..0ec818d --- /dev/null +++ b/src/SWBF2/Native/Scripting/Lua/ScriptCB.hpp @@ -0,0 +1,587 @@ + +#pragma once + +#include +#include + +namespace SWBF2::Native::Scripting::Lua +{ + int ScriptCB_DoFile(lua_State *); + int ScriptCB_GetPlatform(lua_State *); + int ScriptCB_GetLanguage(lua_State *); + int ScriptCB_FormatTimeString(lua_State *); + int ScriptCB_GetVKeyboardCharacter(lua_State *); + int ScriptCB_IsLegalGamespyString(lua_State *); + int ScriptCB_tounicode(lua_State *); + int ScriptCB_UnicodeStrCat(lua_State *); + int ScriptCB_ununicode(lua_State *); + int ScriptCB_getlocalizestr(lua_State *); + int ScriptCB_usprintf(lua_State *); + int ScriptCB_ustrupper(lua_State *); + int ScriptCB_srand(lua_State *); + int ScriptCB_random(lua_State *); + int ScriptCB_GetDateStr(lua_State *); + int ScriptCB_GetShellActive(lua_State *); + int ScriptCB_SetAutoAcquireControllers(lua_State *); + int ScriptCB_ReadAllControllers(lua_State *); + int ScriptCB_UnbindController(lua_State *); + int ScriptCB_GetPrimaryController(lua_State *); + int ScriptCB_GetSecondaryController(lua_State *); + int ScriptCB_IsControllerConnected(lua_State *); + int ScriptCB_IsControllerBound(lua_State *); + int ScriptCB_SwapPrimaryController(lua_State *); + int ScriptCB_SetHotController(lua_State *); + int ScriptCB_RestorePrimaryController(lua_State *); + int ScriptCB_SetIgnoreControllerRemoval(lua_State *); + int ScriptCB_GetNumControllers(lua_State *); + int ScriptCB_GetMaxControllers(lua_State *); + int ScriptCB_GetAutoNetIsDedicated(lua_State *); + int ScriptCB_GetAutoNetGameName(lua_State *); + int ScriptCB_GetAutoGetPlayerCount(lua_State *); + int ScriptCB_SetupAutoNetMissions(lua_State *); + int ScriptCB_SetupAutoNetIsLan(lua_State *); + int ScriptCB_GetAutoNetScript(lua_State *); + int ScriptCB_ReadLeftstick(lua_State *); + int ScriptCB_SetQuitPlayer(lua_State *); + int ScriptCB_GetQuitPlayer(lua_State *); + int ScriptCB_GetMaxMissionQueue(lua_State *); + int ScriptCB_SetMissionNames(lua_State *); + int ScriptCB_SetTeamNames(lua_State *); + int ScriptCB_EnterMission(lua_State *); + int ScriptCB_LaunchDemo(lua_State *); + int ScriptCB_Reboot(lua_State *); + int ScriptCB_GetPausingViewport(lua_State *); + int ScriptCB_GetPausingJoystick(lua_State *); + int ScriptCB_PausingIsPrimary(lua_State *); + int ScriptCB_GetBuildStr(lua_State *); + int ScriptCB_UpdateScreen(lua_State *); + int ScriptCB_UnlockableState(lua_State *); + int ScriptCB_UnlockUnlockable(lua_State *); + int ScriptCB_ShouldShowLegal(lua_State *); + int ScriptCB_PauseDemoTimer(lua_State *); + int ScriptCB_ShouldShowDemoPostscreen(lua_State *); + int ScriptCB_ShouldCheckDNAS(lua_State *); + int ScriptCB_DoneCheckDNAS(lua_State *); + int ScriptCB_HasSeenDNASEULA(lua_State *); + int ScriptCB_SetHasSeenDNASEULA(lua_State *); + int ScriptCB_ShouldCheckPatch(lua_State *); + int ScriptCB_DoneCheckPatch(lua_State *); + int ScriptCB_IndexMultipageText(lua_State *); + int ScriptCB_ShowMultipageText(lua_State *); + int ScriptCB_SetDCMap(lua_State *); + int ScriptCB_HideDownloadableContent(lua_State *); + int ScriptCB_RestartMission(lua_State *); + int ScriptCB_Unpause(lua_State *); + int ScriptCB_SkipToPlayerList(lua_State *); + int ScriptCB_ResetSkipToPlayerList(lua_State *); + int ScriptCB_CheckPlayerListDone(lua_State *); + int ScriptCB_GetMissionTime(lua_State *); + int ScriptCB_Freecamera(lua_State *); + int ScriptCB_IsGameOver(lua_State *); + int ScriptCB_QuitToShell(lua_State *); + int ScriptCB_QuitToWindows(lua_State *); + int ScriptCB_MinimizeWindow(lua_State *); + int ScriptCB_QuitFromStats(lua_State *); + int ScriptCB_GetTeamName(lua_State *); + int ScriptCB_GetSPProgress(lua_State *); + int ScriptCB_SetSPProgress(lua_State *); + int ScriptCB_GetLastBattleVictory(lua_State *); + int ScriptCB_SetLastBattleVictoryValid(lua_State *); + int ScriptCB_MetagameSetBonus(lua_State *); + int ScriptCB_MetagameSetSide(lua_State *); + int ScriptCB_DisableFlyerShadows(lua_State *); + int ScriptCB_EnableScene(lua_State *); + int ScriptCB_PostLoadHack(lua_State *); + int ScriptCB_IFObj_SetPos(lua_State *); + int ScriptCB_IFObj_GetPos(lua_State *); + int ScriptCB_IFObj_SetBasicRotation(lua_State *); + int ScriptCB_IFObj_SetRelativeRotation(lua_State *); + int ScriptCB_IFObj_SetRotation(lua_State *); + int ScriptCB_IFObj_SetAlpha(lua_State *); + int ScriptCB_IFObj_GetAlpha(lua_State *); + int ScriptCB_IFObj_SetColor(lua_State *); + int ScriptCB_IFObj_GetColor(lua_State *); + int ScriptCB_IFObj_SetZOrder(lua_State *); + int ScriptCB_IFObj_GetZOrder(lua_State *); + int ScriptCB_IFObj_BringToFront(lua_State *); + int ScriptCB_IFObj_SendToBack(lua_State *); + int ScriptCB_IFObj_Enable(lua_State *); + int ScriptCB_IFObj_IsEnabled(lua_State *); + int ScriptCB_IFObj_IsGroup(lua_State *); + int ScriptCB_IFObj_SetVis(lua_State *); + int ScriptCB_IFObj_SetEnabled(lua_State *); + int ScriptCB_IFObj_GetVis(lua_State *); + int ScriptCB_IFObj_SetWidthHeight(lua_State *); + int ScriptCB_IFObj_GetWidthHeight(lua_State *); + int ScriptCB_IFObj_SetPosition(lua_State *); + int ScriptCB_IFObj_GetPosition(lua_State *); + int ScriptCB_IFObj_MouseOver(lua_State *); + int ScriptCB_IFObj_TestHotSpot(lua_State *); + int ScriptCB_IFObj_CreateHotSpot(lua_State *); + int ScriptCB_IFObj_RemoveHotSpot(lua_State *); + int ScriptCB_GetFontHeight(lua_State *); + int ScriptCB_IFText_SetString(lua_State *); + int ScriptCB_IFText_SetUString(lua_State *); + int ScriptCB_IFText_SetTextPosition(lua_State *); + int ScriptCB_IFText_SetFont(lua_State *); + int ScriptCB_IFText_SetJustify(lua_State *); + int ScriptCB_IFText_SetTextBreak(lua_State *); + int ScriptCB_IFText_SetTextScale(lua_State *); + int ScriptCB_IFText_GetTextScaleX(lua_State *); + int ScriptCB_IFText_GetTextScaleY(lua_State *); + int ScriptCB_IFText_GetTextExtent(lua_State *); + int ScriptCB_IFText_GetDisplayRect(lua_State *); + int ScriptCB_IFText_SetIntercharacterSpacin(lua_State *); + int ScriptCB_IFText_GetIntercharacterSpacin(lua_State *); + int ScriptCB_IFText_SetTextBox(lua_State *); + int ScriptCB_IFText_GetTextBox(lua_State *); + int ScriptCB_IFText_SetTextStyle(lua_State *); + int ScriptCB_IFText_SetLeading(lua_State *); + int ScriptCB_IFText_GetLeading(lua_State *); + int ScriptCB_IFFlashyText_Setup(lua_State *); + int ScriptCB_IFFlashyText_SetTextColor(lua_State *); + int ScriptCB_IFFlashyText_SetBackground(lua_State *); + int ScriptCB_IFFlashyText_SetBackgroundSize(lua_State *); + int ScriptCB_IFFlashyText_SetBackgroundRigh(lua_State *); + int ScriptCB_IFFlashyText_StartFlashiness(lua_State *); + int ScriptCB_IFImage_SetTexture(lua_State *); + int ScriptCB_IFImage_GetRect(lua_State *); + int ScriptCB_IFImage_SetRect(lua_State *); + int ScriptCB_IFImage_GetTexCoords(lua_State *); + int ScriptCB_IFImage_SetTexCoords(lua_State *); + int ScriptCB_IFMaskImage_SetMaskTexture(lua_State *); + int ScriptCB_IFMaskImage_SetMaskTexCoords(lua_State *); + int ScriptCB_IFMaskImage_GetMaskTexCoords(lua_State *); + int ScriptCB_IFBorder_SetTexture(lua_State *); + int ScriptCB_IFBorder_GetRect(lua_State *); + int ScriptCB_IFBorder_SetRect(lua_State *); + int ScriptCB_IFBorder_GetTexCoords(lua_State *); + int ScriptCB_IFBorder_SetTexCoords(lua_State *); + int ScriptCB_IFModel_SetModel(lua_State *); + int ScriptCB_IFModel_SetAnimation(lua_State *); + int ScriptCB_IFModel_QueueAnimation(lua_State *); + int ScriptCB_IFModel_SetAnimationBanks(lua_State *); + int ScriptCB_IFModel_SetAnimationTime(lua_State *); + int ScriptCB_IFModel_AttachModel(lua_State *); + int ScriptCB_IFModel_SetScale(lua_State *); + int ScriptCB_IFModel_GetScale(lua_State *); + int ScriptCB_IFModel_SetRotation(lua_State *); + int ScriptCB_IFModel_GetRotation(lua_State *); + int ScriptCB_IFModel_SetTranslation(lua_State *); + int ScriptCB_IFModel_GetTranslation(lua_State *); + int ScriptCB_IFModel_SetDepth(lua_State *); + int ScriptCB_IFModel_GetDepth(lua_State *); + int ScriptCB_IFModel_SetOmegaY(lua_State *); + int ScriptCB_IFModel_SetLighting(lua_State *); + int ScriptCB_IFModel_UpdateAnimation(lua_State *); + int ScriptCB_IFModel_SetAnimationLooping(lua_State *); + int ScriptCB_AddIFScreen(lua_State *); + int ScriptCB_SetIFScreenViewport(lua_State *); + int ScriptCB_EndIFScreen(lua_State *); + int ScriptCB_IsFileExist(lua_State *); + int ScriptCB_IFObj_GetCPointer(lua_State *); + int ScriptCB_IFObj_SetScreenPosition(lua_State *); + int ScriptCB_IFObj_SetUseSafezone(lua_State *); + int ScriptCB_EndIFObj(lua_State *); + int ScriptCB_AddIFText(lua_State *); + int ScriptCB_AddIFFlashyText(lua_State *); + int ScriptCB_AddIFImage(lua_State *); + int ScriptCB_AddIFMaskImage(lua_State *); + int ScriptCB_AddIFBorder(lua_State *); + int ScriptCB_AddIFModel(lua_State *); + int ScriptCB_AddIFContainer(lua_State *); + int ScriptCB_SetIFScreen(lua_State *); + int ScriptCB_PushScreen(lua_State *); + int ScriptCB_PopScreen(lua_State *); + int ScriptCB_IsScreenInStack(lua_State *); + int ScriptCB_OpenPopup(lua_State *); + int ScriptCB_ClosePopup(lua_State *); + int ScriptCB_IsPopupOpen(lua_State *); + int ScriptCB_SetIgnoreInputs(lua_State *); + int ScriptCB_OpenMovie(lua_State *); + int ScriptCB_CloseMovie(lua_State *); + int ScriptCB_PlayMovie(lua_State *); + int ScriptCB_IsMoviePlaying(lua_State *); + int ScriptCB_AreMoviePropertiesPlaying(lua_State *); + int ScriptCB_StopMovie(lua_State *); + int ScriptCB_SetMovieAudioBus(lua_State *); + int ScriptCB_IsPropertyPlayingNow(lua_State *); + int ScriptCB_PlayInGameMovie(lua_State *); + int ScriptCB_StopInGameMovie(lua_State *); + int ScriptCB_GetScreenInfo(lua_State *); + int ScriptCB_GetSafeScreenInfo(lua_State *); + int ScriptCB_IsErrorBoxOpen(lua_State *); + int ScriptCB_OpenErrorBox(lua_State *); + int ScriptCB_CloseErrorBox(lua_State *); + int ScriptCB_GetErrorLevel(lua_State *); + int ScriptCB_GetConsoleCmds(lua_State *); + int ScriptCB_DoConsoleCmd(lua_State *); + int ScriptCB_GetLeaderBoardPlayerData(lua_State *); + int ScriptCB_DownloadLeaderBoardData(lua_State *); + int ScriptCB_LeaderBoardDownloadDone(lua_State *); + int ScriptCB_CancelLeaderBoardPlayerData(lua_State *); + int ScriptCB_SetLeaderBoardID(lua_State *); + int ScriptCB_ResetLeaderBoardPlayerData(lua_State *); + int ScriptCB_EnumerateLeaderBoard(lua_State *); + int ScriptCB_EnumerateLeaderBoardDone(lua_State *); + int ScriptCB_GetEnumerateLeaderBoardData(lua_State *); + int ScriptCB_IsEnableLeaderBoard(lua_State *); + int ScriptCB_SetSunlight(lua_State *); + int ScriptCB_ResetControl(lua_State *); + int ScriptCB_SetBinding(lua_State *); + int ScriptCB_GetActionFromIdx(lua_State *); + int ScriptCB_GetKeyBoardCmds(lua_State *); + int ScriptCB_EnableCursor(lua_State *); + int ScriptCB_MrMrsEval(lua_State *); + int ScriptCB_GetEntityMesh(lua_State *); + int ScriptCB_GetEntityWeaponMesh(lua_State *); + int ScriptCB_GetEntityLabel(lua_State *); + int ScriptCB_GetIFaceLighting(lua_State *); + int ScriptCB_SetIFaceLighting(lua_State *); + int ScriptCB_RemoveTexture(lua_State *); + int ScriptCB_ShowLoadDisplay(lua_State *); + int ScriptCB_SetInputRepeat(lua_State *); + int ScriptCB_GetLoginList(lua_State *); + int ScriptCB_IsCurProfileDirty(lua_State *); + int ScriptCB_IsProfileDirty(lua_State *); + int ScriptCB_SetProfileNotDirty(lua_State *); + int ScriptCB_LoadSavePopupResult(lua_State *); + int ScriptCB_DoInitialMemcardCheck(lua_State *); + int ScriptCB_StartInitialMemcardCheck(lua_State *); + int ScriptCB_StartPreOp(lua_State *); + int ScriptCB_IsPlayerLoggedIn(lua_State *); + int ScriptCB_GetCurrentProfileName(lua_State *); + int ScriptCB_GetProfileName(lua_State *); + int ScriptCB_GetCurrentProfileNetName(lua_State *); + int ScriptCB_GetCurrentPCTitleVersion(lua_State *); + int ScriptCB_AddProfile(lua_State *); + int ScriptCB_SwapActiveProfileSlots(lua_State *); + int ScriptCB_StartLoadProfile(lua_State *); + int ScriptCB_MakeFakeProfiles(lua_State *); + int ScriptCB_SetProfileAsDefault(lua_State *); + int ScriptCB_RestoreDefaultProfile(lua_State *); + int ScriptCB_MarkCurrentProfile(lua_State *); + int ScriptCB_ReloadMarkedProfile(lua_State *); + int ScriptCB_HasProfileChanged(lua_State *); + int ScriptCB_StartDeleteProfile(lua_State *); + int ScriptCB_StartSaveProfile(lua_State *); + int ScriptCB_StartLoadMetagame(lua_State *); + int ScriptCB_StartSaveMetagame(lua_State *); + int ScriptCB_StartDeleteMetagame(lua_State *); + int ScriptCB_IsCurrentMetagame(lua_State *); + int ScriptCB_StartLoadCampaign(lua_State *); + int ScriptCB_StartSaveCampaign(lua_State *); + int ScriptCB_StartDeleteCampaign(lua_State *); + int ScriptCB_IsCurrentCampaign(lua_State *); + int ScriptCB_TrimLoginName(lua_State *); + int ScriptCB_GetUniqueLoginName(lua_State *); + int ScriptCB_IsUniqueLoginName(lua_State *); + int ScriptCB_MarkMemoryCard(lua_State *); + int ScriptCB_CheckMemoryCardMark(lua_State *); + int ScriptCB_IsMemoryCardUnformatted(lua_State *); + int ScriptCB_IsMemoryCardInsertted(lua_State *); + int ScriptCB_DoesProfileExistOnCard(lua_State *); + int ScriptCB_InMemoryProfileMode(lua_State *); + int ScriptCB_SetMemoryProfileMode(lua_State *); + int ScriptCB_CheckIfOkToExitMemoryMode(lua_State *); + int ScriptCB_GetSavedMetagameList(lua_State *); + int ScriptCB_StartNewMetagame(lua_State *); + int ScriptCB_DoesMetagameExistOnCard(lua_State *); + int ScriptCB_GetSavedCampaignList(lua_State *); + int ScriptCB_StartNewCampaign(lua_State *); + int ScriptCB_DoesCampaignExistOnCard(lua_State *); + int ScriptCB_Logout(lua_State *); + int ScriptCB_SaveMetagameState(lua_State *); + int ScriptCB_LoadMetagameState(lua_State *); + int ScriptCB_ClearMetagameState(lua_State *); + int ScriptCB_IsMetagameStateSaved(lua_State *); + int ScriptCB_SaveCampaignState(lua_State *); + int ScriptCB_LoadCampaignState(lua_State *); + int ScriptCB_ClearCampaignState(lua_State *); + int ScriptCB_IsCampaignStateSaved(lua_State *); + int ScriptCB_SetInTrainingMission(lua_State *); + int ScriptCB_GetInTrainingMission(lua_State *); + int ScriptCB_SaveMissionSetup(lua_State *); + int ScriptCB_LoadMissionSetup(lua_State *); + int ScriptCB_ClearMissionSetup(lua_State *); + int ScriptCB_IsMissionSetupSaved(lua_State *); + int ScriptCB_PlayerSuicide(lua_State *); + int ScriptCB_AutoNetJoin(lua_State *); + int ScriptCB_GetOnlineService(lua_State *); + int ScriptCB_SetAmHost(lua_State *); + int ScriptCB_GetAmHost(lua_State *); + int ScriptCB_GetWasHost(lua_State *); + int ScriptCB_InNetGame(lua_State *); + int ScriptCB_SetInNetGame(lua_State *); + int ScriptCB_InMultiplayer(lua_State *); + int ScriptCB_InNetSession(lua_State *); + int ScriptCB_NetWasHost(lua_State *); + int ScriptCB_NetWasDedicated(lua_State *); + int ScriptCB_NetWasDedicatedQuit(lua_State *); + int ScriptCB_NetWasClient(lua_State *); + int ScriptCB_IsDedicated(lua_State *); + int ScriptCB_SetDedicated(lua_State *); + int ScriptCB_IsInShell(lua_State *); + int ScriptCB_IsAutoNet(lua_State *); + int ScriptCB_EndAutoNet(lua_State *); + int ScriptCB_GetAutoNetMode(lua_State *); + int ScriptCB_OpenNetShell(lua_State *); + int ScriptCB_IsNetworkOn(lua_State *); + int ScriptCB_CloseNetShell(lua_State *); + int ScriptCB_IsBootInvitePending(lua_State *); + int ScriptCB_GetAutoAssignTeams(lua_State *); + int ScriptCB_SetNumBots(lua_State *); + int ScriptCB_GetGameName(lua_State *); + int ScriptCB_SetGameName(lua_State *); + int ScriptCB_SetConnectType(lua_State *); + int ScriptCB_GetConnectType(lua_State *); + int ScriptCB_EnableJournal(lua_State *); + int ScriptCB_EnablePlayback(lua_State *); + int ScriptCB_GetLatestError(lua_State *); + int ScriptCB_GetError(lua_State *); + int ScriptCB_ClearError(lua_State *); + int ScriptCB_IsLoginDone(lua_State *); + int ScriptCB_IsLoggedIn(lua_State *); + int ScriptCB_GetLoginName(lua_State *); + int ScriptCB_StartLoginDedicatedServer(lua_State *); + int ScriptCB_StartLogin(lua_State *); + int ScriptCB_CancelLogin(lua_State *); + int ScriptCB_TrackLoginErrors(lua_State *); + int ScriptCB_IsGuest(lua_State *); + int ScriptCB_BeginLobby(lua_State *); + int ScriptCB_GetLobbyPlayerlist(lua_State *); + int ScriptCB_UpdateLobby(lua_State *); + int ScriptCB_HasServerLaunched(lua_State *); + int ScriptCB_LaunchLobby(lua_State *); + int ScriptCB_CancelLobby(lua_State *); + int ScriptCB_LobbyAction(lua_State *); + int ScriptCB_VoteKick(lua_State *); + int ScriptCB_VoteOrNominate(lua_State *); + int ScriptCB_BeginSessionList(lua_State *); + int ScriptCB_ClearPrevSessionId(lua_State *); + int ScriptCB_GetSessionListPercent(lua_State *); + int ScriptCB_UpdateSessionList(lua_State *); + int ScriptCB_LaunchSessionList(lua_State *); + int ScriptCB_CancelSessionList(lua_State *); + int ScriptCB_PauseSessionList(lua_State *); + int ScriptCB_IsSessionReady(lua_State *); + int ScriptCB_GetExtraSessionInfo(lua_State *); + int ScriptCB_GetFilters(lua_State *); + int ScriptCB_SetFilters(lua_State *); + int ScriptCB_ApplyFilters(lua_State *); + int ScriptCB_GetSessionSortMode(lua_State *); + int ScriptCB_SetSessionSortMode(lua_State *); + int ScriptCB_SetAsFavorite(lua_State *); + int ScriptCB_GetSessionList(lua_State *); + int ScriptCB_NextHost(lua_State *); + int ScriptCB_PreviousHost(lua_State *); + int ScriptCB_IsSpecialJoinPending(lua_State *); + int ScriptCB_IsCmdlineJoinPending(lua_State *); + int ScriptCB_IsGamespyArcadePasswordReady(lua_State *); + int ScriptCB_GetCmdlineLogin(lua_State *); + int ScriptCB_BeginQuickmatch(lua_State *); + int ScriptCB_BeginJoinIP(lua_State *); + int ScriptCB_BeginJoinSpecial(lua_State *); + int ScriptCB_UpdateQuickmatch(lua_State *); + int ScriptCB_LaunchQuickmatch(lua_State *); + int ScriptCB_CancelQuickmatch(lua_State *); + int ScriptCB_IsQuickmatchDone(lua_State *); + int ScriptCB_IsQuickmatchPassworded(lua_State *); + int ScriptCB_CanSupportMaxPlayers(lua_State *); + int ScriptCB_IsBadNetworkConnection(lua_State *); + int ScriptCB_BeginJoin(lua_State *); + int ScriptCB_UpdateJoin(lua_State *); + int ScriptCB_LaunchJoin(lua_State *); + int ScriptCB_CancelJoin(lua_State *); + int ScriptCB_IsJoinDone(lua_State *); + int ScriptCB_BeginLeave(lua_State *); + int ScriptCB_UpdateLeave(lua_State *); + int ScriptCB_LaunchLeave(lua_State *); + int ScriptCB_CancelLeave(lua_State *); + int ScriptCB_IsLeaveDone(lua_State *); + int ScriptCB_IsNetHWPresent(lua_State *); + int ScriptCB_IsNetCableIn(lua_State *); + int ScriptCB_SetNoticeNoCable(lua_State *); + int ScriptCB_GetIPAddr(lua_State *); + int ScriptCB_SetNetLoginName(lua_State *); + int ScriptCB_GetLobbyPlayerFlags(lua_State *); + int ScriptCB_GetGSProfileInfo(lua_State *); + int ScriptCB_SetGSProfileInfo(lua_State *); + int ScriptCB_BeginFriends(lua_State *); + int ScriptCB_CancelFriends(lua_State *); + int ScriptCB_UpdateFriends(lua_State *); + int ScriptCB_GetFriendStateStr(lua_State *); + int ScriptCB_GetFriendActions(lua_State *); + int ScriptCB_DoFriendAction(lua_State *); + int ScriptCB_GetFriendListIcon(lua_State *); + int ScriptCB_AllowSkipDNAS(lua_State *); + int ScriptCB_CheckForPatch(lua_State *); + int ScriptCB_SkipToNTGUI(lua_State *); + int ScriptCB_GetSkipToNTGUIProfileName(lua_State *); + int ScriptCB_ResetSkipToNTGUI(lua_State *); + int ScriptCB_GetLobbyPlayerCount(lua_State *); + int ScriptCB_VoiceEnable(lua_State *); + int ScriptCB_GetVoiceEnable(lua_State *); + int ScriptCB_SetVoiceLocalEchoEnable(lua_State *); + int ScriptCB_SetVoiceSendPreset(lua_State *); + int ScriptCB_GetVoiceSendPreset(lua_State *); + int ScriptCB_SetVoiceReceivePreset(lua_State *); + int ScriptCB_GetVoiceReceivePreset(lua_State *); + int ScriptCB_SetVoiceSendEnable(lua_State *); + int ScriptCB_GetVoiceSendStatus(lua_State *); + int ScriptCB_SetVoiceReceiveEnable(lua_State *); + int ScriptCB_GetVoiceReceiveStatus(lua_State *); + int ScriptCB_GetVoiceRenderConnected(lua_State *); + int ScriptCB_GetVoiceCaptureConnected(lua_State *); + int ScriptCB_GetVoiceTVGain(lua_State *); + int ScriptCB_CanClientLeaveStats(lua_State *); + int ScriptCB_SearchStatsRank(lua_State *); + int ScriptCB_GetBandwidth(lua_State *); + int ScriptCB_SetBandwidth(lua_State *); + int ScriptCB_GetPlayerAwardsEnabled(lua_State *); + int ScriptCB_SetPlayerAwardsEnabled(lua_State *); + int ScriptCB_LastSignInError(lua_State *); + int ScriptCB_SetSplitscreen(lua_State *); + int ScriptCB_GetNumCameras(lua_State *); + int ScriptCB_IsSplitscreen(lua_State *); + int ScriptCB_WasSplitscreen(lua_State *); + int ScriptCB_SetPlayerSide(lua_State *); + int ScriptCB_SetDifficulty(lua_State *); + int ScriptCB_GetDifficulty(lua_State *); + int ScriptCB_GetCTFCaptureLimit(lua_State *); + int ScriptCB_GetHuntMaxTimeLimit(lua_State *); + int ScriptCB_GetHuntScoreLimit(lua_State *); + int ScriptCB_ShowHuntScoreLimit(lua_State *); + int ScriptCB_GetCTFMaxTimeLimit(lua_State *); + int ScriptCB_GetAssaultScoreLimit(lua_State *); + int ScriptCB_GetUberScoreLimit(lua_State *); + int ScriptCB_SetUberScoreLimit(lua_State *); + int ScriptCB_GetCONMaxTimeLimit(lua_State *); + int ScriptCB_GetCONNumBots(lua_State *); + int ScriptCB_GetCTFNumBots(lua_State *); + int ScriptCB_GetASSNumBots(lua_State *); + int ScriptCB_SetNumBots_(lua_State *); + int ScriptCB_GetFunctionIdForAnalogId(lua_State *); + int ScriptCB_SetFunctionIdForAnalogId(lua_State *); + int ScriptCB_GetFunctionIdForButtonId(lua_State *); + int ScriptCB_SetFunctionIdForButtonId(lua_State *); + int ScriptCB_SetSpectatorMode(lua_State *); + int ScriptCB_GetSpectatorMode(lua_State *); + int ScriptCB_SetCanSwitchSides(lua_State *); + int ScriptCB_SetGameRules(lua_State *); + int ScriptCB_GetGameRules(lua_State *); + int ScriptCB_SetAIDifficulty(lua_State *); + int ScriptCB_IsMetaAllMapsOn(lua_State *); + int ScriptCB_SetMetaAllMapsOn(lua_State *); + int ScriptCB_GetYAxisFlip(lua_State *); + int ScriptCB_SetYAxisFlip(lua_State *); + int ScriptCB_GetMouseTurnAssist(lua_State *); + int ScriptCB_SetMouseTurnAssist(lua_State *); + int ScriptCB_GetControlScale(lua_State *); + int ScriptCB_SetControlScale(lua_State *); + int ScriptCB_ResetGameOptionsToDefault(lua_State *); + int ScriptCB_ResetSoundToDefault(lua_State *); + int ScriptCB_ResetOnlineOptionsToDefault(lua_State *); + int ScriptCB_ResetControlsToDefault(lua_State *); + int ScriptCB_GetGeneralOptions(lua_State *); + int ScriptCB_SetGeneralOptions(lua_State *); + int ScriptCB_IsHorizontalSplitScreen(lua_State *); + int ScriptCB_SetHorizontalSplitScreen(lua_State *); + int ScriptCB_SetHUDScale(lua_State *); + int ScriptCB_GetHUDScale(lua_State *); + int ScriptCB_NextToolTipState(lua_State *); + int ScriptCB_PrevToolTipState(lua_State *); + int ScriptCB_SetToolTipState(lua_State *); + int ScriptCB_ResetToolTips(lua_State *); + int ScriptCB_SetControlMode(lua_State *); + int ScriptCB_GetControlMode(lua_State *); + int ScriptCB_GetSideSelectButtonSetting(lua_State *); + int ScriptCB_SetOnlineOpts(lua_State *); + int ScriptCB_GetOnlineOpts(lua_State *); + int ScriptCB_GetNetGameDefaults(lua_State *); + int ScriptCB_SetNetGameDefaults(lua_State *); + int ScriptCB_GetNetHeroDefaults(lua_State *); + int ScriptCB_SetNetHeroDefaults(lua_State *); + int ScriptCB_GetMouseSensitivity(lua_State *); + int ScriptCB_GetJoySensitivity(lua_State *); + int ScriptCB_GetDeadZone(lua_State *); + int ScriptCB_SetMouseSensitivity(lua_State *); + int ScriptCB_SetJoySensitivity(lua_State *); + int ScriptCB_SetDeadZone(lua_State *); + int ScriptCB_IsJoystickEnabled(lua_State *); + int ScriptCB_SetJoystickEnabled(lua_State *); + int ScriptCB_SetReticuleTransparency(lua_State *); + int ScriptCB_GetReticuleTransparency(lua_State *); + int ScriptCB_FillResolutionTable(lua_State *); + int ScriptCB_FillMultisampleTable(lua_State *); + int ScriptCB_SetResolution(lua_State *); + int ScriptCB_GetIdealResolution(lua_State *); + int ScriptCB_GetCustomResolution(lua_State *); + int ScriptCB_GetPCVideoOptions(lua_State *); + int ScriptCB_GetCustomVideoOptions(lua_State *); + int ScriptCB_GetAutodetectPCVideoOptions(lua_State *); + int ScriptCB_SetPCVideoOptions(lua_State *); + int ScriptCB_SetPCBrightnessContrast(lua_State *); + int ScriptCB_IsPCVideoFixedFunction(lua_State *); + int ScriptCB_GetProfileJoinIP(lua_State *); + int ScriptCB_SetProfileJoinIP(lua_State *); + int ScriptCB_ResetPCVideoOptionsToDefault(lua_State *); + int ScriptCB_SetMouseMark(lua_State *); + int ScriptCB_ResetMouseMark(lua_State *); + int ScriptCB_CheckMouseMark(lua_State *); + int ScriptCB_GetKeyboardPCFlags(lua_State *); + int ScriptCB_EnableCursor_(lua_State *); + int ScriptCB_SndBusFade(lua_State *); + int ScriptCB_SndPlaySound(lua_State *); + int ScriptCB_SetBleedingRepeatTime(lua_State *); + int ScriptCB_SetSpawnDisplayGain(lua_State *); + int ScriptCB_PlayInGameMusic(lua_State *); + int ScriptCB_StopInGameMusic(lua_State *); + int ScriptCB_EnableCommandPostVO(lua_State *); + int ScriptCB_EnableHeroMusic(lua_State *); + int ScriptCB_EnableHeroVO(lua_State *); + int ScriptCB_TriggerSoundRegionEnable(lua_State *); + int ScriptCB_GetVolumes(lua_State *); + int ScriptCB_SetVolumes(lua_State *); + int ScriptCB_EffectsEnabled(lua_State *); + int ScriptCB_ToggleEffects(lua_State *); + int ScriptCB_HWSupport(lua_State *); + int ScriptCB_GetOutputMode(lua_State *); + int ScriptCB_PreviousOutputMode(lua_State *); + int ScriptCB_NextOutputMode(lua_State *); + int ScriptCB_SetOutputMode(lua_State *); + int ScriptCB_GetMixConfig(lua_State *); + int ScriptCB_PreviousMixConfig(lua_State *); + int ScriptCB_NextMixConfig(lua_State *); + int ScriptCB_SetMixConfig(lua_State *); + int ScriptCB_GetEAXVersion(lua_State *); + int ScriptCB_GetMixConfigChanged(lua_State *); + int ScriptCB_SetBassManagement(lua_State *); + int ScriptCB_GetBassManagement(lua_State *); + int ScriptCB_PlayAuditionEffect(lua_State *); + int ScriptCB_SetShellMusic(lua_State *); + int ScriptCB_SetShellMusicInterval(lua_State *); + int ScriptCB_IsShellMusicPlaying(lua_State *); + int ScriptCB_ShellPlayDelayedStream(lua_State *); + int ScriptCB_SoundEnable(lua_State *); + int ScriptCB_SoundDisable(lua_State *); + int ScriptCB_SetDopplerFactor(lua_State *); + int ScriptCB_ClientGotStats(lua_State *); + int ScriptCB_SetTeamStatsSortMode(lua_State *); + int ScriptCB_GetTeamstats(lua_State *); + int ScriptCB_TeamStatsGetTeam1(lua_State *); + int ScriptCB_TeamStatsGetTeamColor(lua_State *); + int ScriptCB_TeamStatsSetTitles(lua_State *); + int ScriptCB_PersonalStatsSetTitles(lua_State *); + int ScriptCB_TeamStatsValidatePos(lua_State *); + int ScriptCB_GetPersonalStats(lua_State *); + int ScriptCB_GetAwardStats(lua_State *); + int ScriptCB_GetMedalStats(lua_State *); + int ScriptCB_GetCareerPersonalStats(lua_State *); + int ScriptCB_GetCareerRank(lua_State *); + int ScriptCB_GetCareerMedals(lua_State *); + int ScriptCB_GetCareerMedalLevel(lua_State *); + int ScriptCB_SetPlayerStatsPoints(lua_State *); + int ScriptCB_GetRank(lua_State *); + int ScriptCB_GetPlayerIDAtRank(lua_State *); +}