//------------------------------------------------------------------------ void CScriptBind_Game::RegisterGlobals() { m_pSS->SetGlobalValue("eTacticalEntity_Story", CTacticalManager::eTacticalEntity_Story); m_pSS->SetGlobalValue("eTacticalEntity_Item", CTacticalManager::eTacticalEntity_Item); m_pSS->SetGlobalValue("eTacticalEntity_Unit", CTacticalManager::eTacticalEntity_Unit); m_pSS->SetGlobalValue("eTacticalEntity_Ammo", CTacticalManager::eTacticalEntity_Ammo); m_pSS->SetGlobalValue("eTacticalEntity_Prompt", CTacticalManager::eTacticalEntity_Prompt); m_pSS->SetGlobalValue("eTacticalEntity_Vehicle", CTacticalManager::eTacticalEntity_Vehicle); m_pSS->SetGlobalValue("eTacticalEntity_Hazard", CTacticalManager::eTacticalEntity_Hazard); m_pSS->SetGlobalValue("eTacticalEntity_Explosive", CTacticalManager::eTacticalEntity_Explosive); m_pSS->SetGlobalValue("eTacticalEntity_MapIcon", CTacticalManager::eTacticalEntity_MapIcon); m_pSS->SetGlobalValue("eGameCacheResourceType_Texture", CScriptBind_Game::eGCRT_Texture); m_pSS->SetGlobalValue("eGameCacheResourceType_TextureDeferredCubemap", CScriptBind_Game::eGCRT_TextureDeferredCubemap); m_pSS->SetGlobalValue("eGameCacheResourceType_StaticObject", CScriptBind_Game::eGCRT_StaticObject); m_pSS->SetGlobalValue("eGameCacheResourceType_Material", CScriptBind_Game::eGCRT_Material); m_pSS->SetGlobalValue("eGameCacheResourceFlag_TextureNoStream", FT_DONT_STREAM); m_pSS->SetGlobalValue("eGameCacheResourceFlag_TextureReplicateAllSides", FT_REPLICATE_TO_ALL_SIDES); SCRIPT_REG_GLOBAL(STANCE_PRONE); SCRIPT_REG_GLOBAL(STANCE_CROUCH); SCRIPT_REG_GLOBAL(STANCE_STAND); SCRIPT_REG_GLOBAL(STANCE_RELAXED); SCRIPT_REG_GLOBAL(STANCE_LOW_COVER); SCRIPT_REG_GLOBAL(STANCE_HIGH_COVER); SCRIPT_REG_GLOBAL(STANCE_ALERTED); SCRIPT_REG_GLOBAL(STANCE_STEALTH); SCRIPT_REG_GLOBAL(STANCE_SWIM); g_pGame->GetGamePhysicsSettings()->ExportToLua(); }
//------------------------------------------------------------------------ void CScriptBind_MatchMaking::RegisterGlobals() { //operators for MM searches SCRIPT_REG_GLOBAL( eCSSO_Equal ); SCRIPT_REG_GLOBAL( eCSSO_NotEqual ); SCRIPT_REG_GLOBAL( eCSSO_LessThan ); SCRIPT_REG_GLOBAL( eCSSO_LessThanEqual ); SCRIPT_REG_GLOBAL( eCSSO_GreaterThan ); SCRIPT_REG_GLOBAL( eCSSO_GreaterThanEqual ); SCRIPT_REG_GLOBAL( eCSSO_BitwiseAndNotEqualZero ); }
//------------------------------------------------------------------------ void CScriptBind_Action::RegisterGlobals() { SCRIPT_REG_GLOBAL(eGE_DiscreetSample); SCRIPT_REG_GLOBAL(eGE_GameReset); SCRIPT_REG_GLOBAL(eGE_GameStarted); SCRIPT_REG_GLOBAL(eGE_SuddenDeath); SCRIPT_REG_GLOBAL(eGE_RoundEnd); SCRIPT_REG_GLOBAL(eGE_GameEnd); SCRIPT_REG_GLOBAL(eGE_Connected); SCRIPT_REG_GLOBAL(eGE_Disconnected); SCRIPT_REG_GLOBAL(eGE_Renamed); SCRIPT_REG_GLOBAL(eGE_ChangedTeam); SCRIPT_REG_GLOBAL(eGE_Death); SCRIPT_REG_GLOBAL(eGE_Scored); SCRIPT_REG_GLOBAL(eGE_Currency); SCRIPT_REG_GLOBAL(eGE_Rank); SCRIPT_REG_GLOBAL(eGE_Spectator); SCRIPT_REG_GLOBAL(eGE_ScoreReset); SCRIPT_REG_GLOBAL(eGE_Damage); SCRIPT_REG_GLOBAL(eGE_WeaponHit); RegisterGlobal("QueryAimFromMovementController", CAIProxy::QueryAimFromMovementController); RegisterGlobal("OverriddenAndAiming", CAIProxy::OverriddenAndAiming); RegisterGlobal("OverriddenAndNotAiming", CAIProxy::OverriddenAndNotAiming); }