Mission mod to make all humans be empire (for example).
video:
http://www.xfire.com/video/4f0f22/
Player and server need the mission mod, server needs the map for two local teams,
for example use this one: http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=363
Rebel attacker faction replaced with empire. You can still shoot and kill the other empire team, but the Empire AI will not attack you or the other Empire AI.
The Rebel teams are set up as locals teams 3 and 4 and are allied, so they only shoot the empire.
Below are the part of CC bes2a.lua that are relevant:
-- Alliance Stats
SetTeamName(ALL, "Empire")
SetTeamIcon(ALL, "imp_icon")
AddUnitClass(ALL, "imp_inf_storm_trooper",11)
AddUnitClass(ALL, "imp_inf_shock_trooper",3)
AddUnitClass(ALL, "imp_inf_pilottie",4)
AddUnitClass(ALL, "imp_inf_scout_trooper",4)
AddUnitClass(ALL, "imp_inf_dark_trooper",3)
SetHeroClass(ALL, "imp_inf_darthvader")
-- Imperial Stats
SetTeamName(IMP, "Empire")
SetTeamIcon(IMP, "imp_icon")
AddUnitClass(IMP, "imp_inf_storm_trooper",11)
AddUnitClass(IMP, "imp_inf_shock_trooper",3)
AddUnitClass(IMP, "imp_inf_pilottie",4)
AddUnitClass(IMP, "imp_inf_scout_trooper",4)
AddUnitClass(IMP, "imp_inf_dark_trooper",3)
SetHeroClass(IMP, "imp_inf_darthvader")
-- ++++++++++++++++++++++++++++++++++++++++++
-- Local Stats
SetTeamName(3, "locals")
AddUnitClass(3, "all_inf_soldierurban",11);
AddUnitClass(3, "all_inf_vanguard",3);
AddUnitClass(3, "all_inf_pilot",4);
AddUnitClass(3, "all_inf_marksman",4);
AddUnitClass(3, "all_inf_smuggler",3);
SetAttackingTeam(ATT);
SetUnitCount(3, 25)
-- Local Stats
SetTeamName(4, "locals")
AddUnitClass(4, "all_inf_soldierurban",11);
AddUnitClass(4, "all_inf_vanguard",3);
AddUnitClass(4, "all_inf_pilot",4);
AddUnitClass(4, "all_inf_marksman",4);
AddUnitClass(4, "all_inf_smuggler",3);
SetUnitCount(4, 25)
--start alliances
SetTeamAsFriend(DEF,ATT)
SetTeamAsFriend(ATT,DEF)
SetTeamAsFriend(3,4)
SetTeamAsFriend(4,3)
Have some code it'll let you do it more effectively.
-- The first number must be the team you want the player on the second one must be left alone.
ScriptCB_SetPlayerSide(1,0)
-- Same thing applys to this one.
ScriptCB_SetPlayerSide(1,1)
-- Stop them from changing once we have them
ScriptCB_SetCanSwitchSides(nil)
Tested and it worked in SP should do the same in MP.
Quote from: SleepKiller on October 17, 2011, 08:04:50 PM
Have some code it'll let you do it more effectively.
-- The first number must be the team you want the player on the second one must be left alone.
ScriptCB_SetPlayerSide(1,0)
-- Same thing applys to this one.
ScriptCB_SetPlayerSide(1,1)
-- Stop them from changing once we have them
ScriptCB_SetCanSwitchSides(nil)
Tested and it worked in SP should do the same in MP.
Cool! Do you know if there is a list of Script commands? (I think I saw one on GT, can't recall though.)
Have some more code.
SetDefeatMovie
SetVictoryMovie
ScriptCB_SetHistoricalRulesOn
ScriptCB_AreHistoricalRulesOn
ScriptCB_SetAIDifficulty
ScriptCB_SetCanSwitchSides
ScriptCB_SetMetagameRulesOn
ScriptCB_AreMetagameRulesOn
ScriptCB_MetagameSetBonus
ScriptCB_DeleteSavedMetagameState
ScriptCB_SetLastBattleVictoryValid
ScriptCB_GetLastBattleVictory
ScriptCB_DoesMetagameExistOnCardSplitScreen
ScriptCB_GetSavedMetagameListSplitScreen
ScriptCB_DoesMetagameExistOnCard
ScriptCB_StartNewMetagame
ScriptCB_GetSavedMetagameList
ScriptCB_SetMetagameTeams
ScriptCB_SetSPProgress
ScriptCB_GetSPProgress
ScriptCB_SaveSPState
ScriptCB_IsSPStateSaved
ScriptCB_IsMetagameStateSaved
ScriptCB_LoadMetagameState
ScriptCB_SaveMetagameState
ScriptCB_UnlockUnlockable
ScriptCB_UnlockableState
GetMultisamplingModeDescription
GetNumMultisamplingQualityModes
GetMaxMultisamplingModeForScreenSize
GetMaxScreenSizeForMultisamplingMode
IsMultisamplingModeSupported
IsMultisamplingModeForcedFromDriver
IsVideoModeSupported
ScriptCB_SetProfileJoinIP
ScriptCB_GetProfileJoinIP
ScriptCB_IsPCVideoFixedFunction
ScriptCB_SetPCBrightnessContrast
ScriptCB_SetPCVideoOptions
ScriptCB_GetAutodetectPCVideoOptions
ScriptCB_GetPCVideoOptions
ScriptCB_GetIdealResolution
ScriptCB_SetResolution
ScriptCB_FillMultisampleTable
ScriptCB_FillResolutionTable
ScriptCB_SetJoystickEnabled
ScriptCB_IsJoystickEnabled
ScriptCB_SetMouseSensitivity
ScriptCB_GetJoySensitivity
ScriptCB_GetMouseSensitivity
ScriptCB_SetMetaAllMapsOn
ScriptCB_IsMetaAllMapsOn
ScriptCB_GetControlMode
ScriptCB_SetControlMode
ScriptCB_ResetToolTips
ScriptCB_PrevToolTipState
ScriptCB_NextToolTipState
ScriptCB_IsToolTipAuto
ScriptCB_IsToolTipOn
ScriptCB_SetHeroesOn
ScriptCB_AreHeroesOn
ScriptCB_SetFriendlyFire
ScriptCB_GetFriendlyFire
ScriptCB_SetAutoAimOn
ScriptCB_IsAutoAimOn
ScriptCB_SetRumbleOn
ScriptCB_IsRumbleOn
ScriptCB_SetHorizontalSplitScreen
ScriptCB_IsHorizontalSplitScreen
ScriptCB_SetFirstPersonView
ScriptCB_IsFirstPersonView
ScriptCB_ResetSoundToDefault
ScriptCB_ResetGameOptionsToDefault
ScriptCB_ResetControlsToDefault
ScriptCB_SetControlScale
ScriptCB_GetControlScale
ScriptCB_SetYAxisFlip
ScriptCB_GetYAxisFlip
ScriptCB_SetFunctionIdForAnalogId
ScriptCB_GetFunctionIdForAnalogId
ScriptCB_SetFunctionIdForButtonId
ScriptCB_GetFunctionIdForButtonId
ScriptCB_UpdateScreen
ScriptCB_GetBuildStr
ScriptCB_GetTeamName
ScriptCB_PersonalStatsSetTitles
ScriptCB_TeamStatsSetTitles
ScriptCB_TeamStatsGetTeamColor
ScriptCB_TeamStatsGetTeam1
ScriptCB_TeamStatsValidatePos
ScriptCB_GetAwardStats
ScriptCB_GetPersonalStats
ScriptCB_SetTeamStatsSortMode
ScriptCB_GetTeamstats
ScriptCB_ClientGotStats
ScriptCB_Freecamera
ScriptCB_GetMissionTime
ScriptCB_CheckPlayerListDone
ScriptCB_ResetSkipToPlayerList
ScriptCB_SkipToPlayerList
ScriptCB_Unpause
ScriptCB_QuitFromStats
ScriptCB_QuitToWindows
ScriptCB_QuitToShell
ScriptCB_Reboot
ScriptCB_GetPausingViewport
ScriptCB_RestartMission
ScriptCB_LaunchDemo
ScriptCB_EnterMission
ScriptCB_CheckMouseMark
ScriptCB_ResetMouseMark
ScriptCB_SetMouseMark
ScriptCB_HideDownloadableContent
ScriptCB_SetDCMap
ScriptCB_GetDifficulty
ScriptCB_SetDifficulty
ScriptCB_SetPlayerSide
ScriptCB_IsUniqueLoginName
ScriptCB_GetUniqueLoginName
ScriptCB_TrimLoginName
ScriptCB_Logout
ScriptCB_GetProfileName
ScriptCB_GetCurrentProfileName
ScriptCB_GetCurrentProfileNetName
ScriptCB_IsPlayerLoggedIn
ScriptCB_SwapActiveProfileSlots
ScriptCB_AddProfile
ScriptCB_GetLoginList
ScriptCB_CheckIfOkToExitMemoryMode
ScriptCB_SetMemoryProfileMode
ScriptCB_InMemoryProfileMode
ScriptCB_DoesProfileExistOnCard
ScriptCB_StartDeleteMetagameSplitScreen
ScriptCB_StartSaveMetagameSplitScreen
ScriptCB_StartLoadMetagameSplitScreen
ScriptCB_CheckMemoryCardMark
ScriptCB_MarkMemoryCard
ScriptCB_StartDeleteMetagame
ScriptCB_IsCurrentMetagame
ScriptCB_StartSaveMetagame
ScriptCB_StartLoadMetagame
ScriptCB_StartSaveProfile
ScriptCB_StartDeleteProfile
ScriptCB_ReloadMarkedProfile
ScriptCB_MarkCurrentProfile
ScriptCB_StartLoadProfile
ScriptCB_StartPreOp
ScriptCB_StartInitialMemcardCheck
ScriptCB_DoInitialMemcardCheck
ScriptCB_ShowMultipageText
ScriptCB_IndexMultipageText
ScriptCB_DoneCheckPatch
ScriptCB_ShouldCheckPatch
ScriptCB_SetHasSeenDNASEULA
ScriptCB_HasSeenDNASEULA
ScriptCB_DoneCheckDNAS
ScriptCB_ShouldCheckDNAS
ScriptCB_LoadSavePopupResult
ScriptCB_SetProfileNotDirty
ScriptCB_IsProfileDirty
ScriptCB_IsCurProfileDirty
ScriptCB_ShouldShowDemoPostscreen
ScriptCB_ShouldShowLegal
ScriptCB_GetQuitPlayer
ScriptCB_SetQuitPlayer
ScriptCB_WasSplitscreen
ScriptCB_IsSplitscreen
ScriptCB_SetSplitscreen
ScriptCB_GetAutoNetScript
ScriptCB_SetupAutoNetIsLan
ScriptCB_SetupAutoNetMissions
ScriptCB_GetAutoGetPlayerCount
ScriptCB_GetAutoNetGameName
ScriptCB_GetAutoNetIsDedicated
ScriptCB_ReadLeftstick
ScriptCB_GetNumControllers
ScriptCB_SetIgnoreControllerRemoval
ScriptCB_UnbindController
ScriptCB_ReadAllControllers
ScriptCB_SetAutoAcquireControllers
ScriptCB_GetShellActive
ScriptCB_GetDateStr
ScriptCB_random
ScriptCB_srand
ScriptCB_ustrupper
ScriptCB_usprintf
ScriptCB_getlocalizestr
ScriptCB_UnicodeStrCat
ScriptCB_ununicode
ScriptCB_tounicode
ScriptCB_GetMaxMissionQueue
ScriptCB_SetMissionNames
ScriptCB_SetTeamNames
ScriptCB_IsLegalGamespyString
ScriptCB_GetVKeyboardCharacter
ScriptCB_FormatTimeString
ScriptCB_GetLanguage
ScriptCB_GetPlatform
ScriptCB_DoFile Team2
Team1
Side
Map
Attract
mode
fs_opt_pcvideo_reslistbox_contents
ifs_opt_pcvideo_fsaalistbox_contents
memslot
showstr
ifs_saveop_InitialMemcardCheckDone
ifs_saveop_PreOpDone
ifs_saveop_LoadProfileDone
ifs_saveop_DeleteProfileDone
ifs_saveop_SaveProfileDone
ifs_saveop_LoadMetagameDone
ifs_saveop_SaveMetagameDone
ifs_saveop_DeleteMetagameDone
isCurrent
datestr
filename
namestr contentsstr
labelustr
contentsustr
ColorB
ColorG
ColorR
val3str
val2str
val1str
fix MP stats
teamstats_listbox_contentsR
teamstats_listbox_contentsL
com_icon_CIS
com_icon_imperial
com_icon_alliance
com_icon_republic
ifs_teamstats.RightModel
ifs_teamstats.LeftModel
ifs_teamstats.RightList.Title
ifs_teamstats.LeftList.Title
ifs_personalstats.IconModel
stats_listbox_contents
ifs_awardstats_seticonstartside
ifs_awardstats.IconModels.%d.model
ScriptCB_EnableCursor
ScriptCB_ResetControl
ScriptCB_SetBinding
ScriptCB_GetKeyBoardCmds
ScriptCB_DoConsoleCmd
ScriptCB_GetConsoleCmds
ScriptCB_IFModel_SetLighting
ScriptCB_SetSunlight
ScriptCB_ResetLeaderBoardPlayerData
ScriptCB_CancelLeaderBoardPlayerData
ScriptCB_DownloadLeaderBoardData
ScriptCB_LeaderBoardDownloadDone
ScriptCB_GetLeaderBoardPlayerData
ScriptCB_GetSafeScreenInfo
ScriptCB_GetScreenInfo
ScriptCB_GetErrorLevel
ScriptCB_CloseErrorBox
ScriptCB_OpenErrorBox
ScriptCB_IsPropertyPlayingNow
ScriptCB_SetMovieAudioBus
ScriptCB_StopMovie
ScriptCB_AreMoviePropertiesPlaying
ScriptCB_IsMoviePlaying
ScriptCB_PlayMovie
ScriptCB_CloseMovie
ScriptCB_OpenMovie
ScriptCB_SetIgnoreInputs
ScriptCB_IsPopupOpen
ScriptCB_IsErrorBoxOpen
ScriptCB_ClosePopup
ScriptCB_OpenPopup
ScriptCB_PopScreen
ScriptCB_PushScreen
ScriptCB_SetIFScreen
ScriptCB_IFObj_SetUseSafezone
ScriptCB_IFObj_SetScreenPosition
ScriptCB_IFModel_SetOmegaY
ScriptCB_IFModel_GetDepth
ScriptCB_IFModel_SetDepth
ScriptCB_IFModel_GetTranslation
ScriptCB_IFModel_SetTranslation
ScriptCB_IFModel_GetRotation
ScriptCB_IFModel_SetRotation
ScriptCB_IFModel_GetScale
ScriptCB_IFModel_SetScale
ScriptCB_IFModel_SetAnimation
ScriptCB_IFModel_SetModel
ScriptCB_IFMaskImage_GetMaskTexCoords
ScriptCB_IFMaskImage_SetMaskTexCoords
ScriptCB_IFMaskImage_SetMaskTexture
ScriptCB_IFImage_SetTexCoords
ScriptCB_IFImage_GetTexCoords
ScriptCB_IFImage_SetRect
ScriptCB_IFImage_GetRect
ScriptCB_IFImage_SetTexture
ScriptCB_IFFlashyText_StartFlashiness
ScriptCB_IFFlashyText_SetBackgroundRightJustify
ScriptCB_IFFlashyText_SetBackgroundSize
ScriptCB_IFFlashyText_SetBackground
ScriptCB_IFFlashyText_SetTextColor
ScriptCB_IFFlashyText_Setup
ScriptCB_IFText_GetLeading
ScriptCB_IFText_SetLeading
ScriptCB_IFText_SetTextStyle
ScriptCB_IFText_GetDisplayRect
ScriptCB_IFText_GetTextExtent
ScriptCB_IFText_GetTextScaleY
ScriptCB_IFText_GetTextScaleX
ScriptCB_IFText_SetTextScale
ScriptCB_IFText_SetTextBreak
ScriptCB_IFText_SetJustify
ScriptCB_IFText_GetTextBox
ScriptCB_IFText_SetTextBox
ScriptCB_IFText_GetIntercharacterSpacing
ScriptCB_IFText_SetIntercharacterSpacing
ScriptCB_IFText_SetFont
ScriptCB_IFText_SetTextPosition
ScriptCB_IFText_SetUString
ScriptCB_IFText_SetString
ScriptCB_GetFontHeight
ScriptCB_IFObj_RemoveHotSpot
ScriptCB_IFObj_CreateHotSpot
ScriptCB_IFObj_TestHotSpot
ScriptCB_IFObj_MouseOver
ScriptCB_IFObj_IsGroup
ScriptCB_IFObj_IsEnabled
ScriptCB_IFObj_Enable
ScriptCB_IFObj_SendToBack
ScriptCB_IFObj_BringToFront
ScriptCB_IFObj_GetPosition
ScriptCB_IFObj_GetWidthHeight
ScriptCB_IFObj_GetVis
ScriptCB_IFObj_GetZOrder
ScriptCB_IFObj_GetColor
ScriptCB_IFObj_GetAlpha
ScriptCB_IFObj_GetPos
ScriptCB_IFObj_SetRotation
ScriptCB_IFObj_SetRelativeRotation
ScriptCB_IFObj_SetBasicRotation
ScriptCB_IFObj_SetPosition
ScriptCB_IFObj_SetWidthHeight
ScriptCB_IFObj_SetVis
ScriptCB_IFObj_SetZOrder
ScriptCB_IFObj_SetColor
ScriptCB_IFObj_SetAlpha
ScriptCB_IFObj_SetPos
ScriptCB_IFObj_GetCPointer
ScriptCB_IsFileExist
ScriptCB_IsPAL
ScriptCB_EndIFScreen
ScriptCB_SetIFScreenViewport
ScriptCB_AddIFScreen
ScriptCB_EndIFObj
ScriptCB_AddIFContainer
ScriptCB_AddIFModel
ScriptCB_AddIFMaskImage
ScriptCB_AddIFImage
ScriptCB_AddIFFlashyText
ScriptCB_AddIFText
ScriptCB_PlayerSuicide
AddMissionObjective
SetAIVehicleNotifyRadius
SetAIFormationRadius
AddWalkerType
ClearWalkers
AddDeathRegion
SetFishType
SetNumFishTypes
SetBirdFlockMinHeight
SetBirdType
SetNumBirdTypes
SetMemoryPoolSize
SetLevelModelMem
SetEnemyTeamDifficultyHard
SetEnemyTeamDifficultyMedium
SetEnemyTeamDifficultyEasy
SetEnemyTeamDifficulty
SetPlayerTeamDifficultyHard
SetPlayerTeamDifficultyMedium
SetPlayerTeamDifficultyEasy
SetPlayerTeamDifficulty
SetStayInTurrets
SetDefenderSnipeRange
SetAttackerSnipeRange
SetDenseEnvironment
SetUrbanEnvironment
SetSpawnDelay
SetCarrierClass
AddBleedThreshold
ActivateBonus
SetHeroClass
AddUnitClass
SetReinforcementCount
SetUnitCount
SetTeamAsFriend
SetTeamAsNeutral
SetTeamAsEnemy
SetTeamIcon
SetStationaryWaitTime
SetAllowBlindJetJumps
SetMaxPlayerFlyHeight
SetMinPlayerFlyHeight
SetMaxFlyHeight
SetMinFlyHeight
SetTeamAggressiveness
SetTeamName
SetHistorical
SetState
SetCameraPosition
SetCameraRotation
AddCameraShot
SetModelMemory
ReadDataFileInGame
ReadDataFile
false
true
EntityLight
EntityDroideka
WalkerBlendUnit
WalkerBlend
WalkerLegPair
EntityWalker
ScriptCB_CanClientLeaveStats
ScriptCB_SetVoiceLocalEchoEnable
ScriptCB_GetLobbyPlayerCount
ScriptCB_ResetSkipToNTGUI
ScriptCB_GetSkipToNTGUIProfileName
ScriptCB_SkipToNTGUI
ScriptCB_GetFriendListIcon
ScriptCB_DoFriendAction
ScriptCB_GetFriendActions
ScriptCB_GetFriendStateStr
ScriptCB_UpdateFriends
ScriptCB_CancelFriends
ScriptCB_BeginFriends
ScriptCB_CheckForPatch
ScriptCB_AllowSkipDNAS
ScriptCB_GetIPAddr
ScriptCB_SetNoticeNoCable
ScriptCB_IsNetCableIn
ScriptCB_IsNetHWPresent
ScriptCB_IsLeaveDone
ScriptCB_CancelLeave
ScriptCB_LaunchLeave
ScriptCB_UpdateLeave
ScriptCB_BeginLeave
ScriptCB_IsJoinDone
ScriptCB_CancelJoin
ScriptCB_LaunchJoin
ScriptCB_UpdateJoin
ScriptCB_BeginJoin
ScriptCB_CanSupportMaxPlayers
ScriptCB_IsBadNetworkConnection
ScriptCB_IsQuickmatchDone
ScriptCB_CancelQuickmatch
ScriptCB_LaunchQuickmatch
ScriptCB_UpdateQuickmatch
ScriptCB_BeginJoinSpecial
ScriptCB_BeginJoinIP
ScriptCB_BeginQuickmatch
ScriptCB_GetCmdlineLogin
ScriptCB_IsCmdlineJoinPending
ScriptCB_IsSpecialJoinPending
ScriptCB_GetDSSessionList
ScriptCB_CancelDSSessionList
ScriptCB_LaunchDSSessionList
ScriptCB_UpdateDSSessionList
ScriptCB_BeginDSSessionList
ScriptCB_PreviousHost
ScriptCB_NextHost
ScriptCB_SetSortOrder
ScriptCB_GetSortOrder
ScriptCB_SetSessionSortMode
ScriptCB_GetSessionSortMode
ScriptCB_ApplyFilters
ScriptCB_GetExtraSessionInfo
ScriptCB_GetSessionListPercent
ScriptCB_IsSessionReady
ScriptCB_GetSessionList
ScriptCB_PauseSessionList
ScriptCB_CancelSessionList
ScriptCB_LaunchSessionList
ScriptCB_UpdateSessionList
ScriptCB_BeginSessionList
ScriptCB_ClearPrevSessionId
ScriptCB_VoteOrNominate
ScriptCB_VoteKick
ScriptCB_LobbyAction
ScriptCB_CancelLobby
ScriptCB_LaunchLobby
ScriptCB_HasServerLaunched
ScriptCB_UpdateLobby
ScriptCB_BeginLobby
ScriptCB_TrackLoginErrors
ScriptCB_CancelLogin
ScriptCB_StartLoginDedicatedServer
ScriptCB_StartLogin
ScriptCB_IsLoginDone
ScriptCB_SetGSProfileInfo
ScriptCB_GetGSProfileInfo
ScriptCB_UpdateMPMetagame
ScriptCB_BeginMPMetagame
ScriptCB_ClearError
ScriptCB_GetError
ScriptCB_GetLatestError
ScriptCB_DownloadJournals
ScriptCB_EnablePlayback
ScriptCB_UploadJournals
ScriptCB_EnableJournal
ScriptCB_GetConnectType
ScriptCB_SetConnectType
ScriptCB_GetOnlineOpts
ScriptCB_SetOnlineOpts
ScriptCB_GetAutoAssignTeams
ScriptCB_SetNetGameDefaults
ScriptCB_GetNetGameDefaults
ScriptCB_IsBootInvitePending
ScriptCB_CloseNetShell
ScriptCB_IsNetworkOn
ScriptCB_OpenNetShell
ScriptCB_GetAutoNetMode
ScriptCB_EndAutoNet
ScriptCB_IsAutoNet
ScriptCB_IsInShell
ScriptCB_IsDedicated
ScriptCB_SetDedicated
ScriptCB_NetWasClient
ScriptCB_NetWasDedicatedQuit
ScriptCB_NetWasDedicated
ScriptCB_NetWasHost
ScriptCB_InNetSession
ScriptCB_InMultiplayer
ScriptCB_SetInNetGame
ScriptCB_InNetGame
ScriptCB_GetLobbyPlayerFlags
ScriptCB_GetLobbyPlayerlist
ScriptCB_GetGameName
ScriptCB_SetNumBots
ScriptCB_SetGameName
ScriptCB_SetHostLimit
ScriptCB_GetAmHost
ScriptCB_SetAmHost
ScriptCB_SetNetLoginName
ScriptCB_GetOnlineService
ScriptCB_AutoNetJoin
friends_listbox_contents
ClearListbox
mp_joinds_listbox_contents
indexstr
–Cgsfriends_listbox_layout
StateIcon
VoiceIcon
launchflag
fnFindReady
ListManager_fnMoveCursor(ifs_mp_sessionlist.listbox,mpsessionlist_listbox_layout)
FirstShownIdx
ifs_mp_joinds
ScriptCB_GetVoiceEnable
ScriptCB_VoiceEnable
ScriptCB_SoundDisable
ScriptCB_SoundEnable
ScriptCB_ShellPlayDelayedStream
ScriptCB_IsShellMusicPlaying
ScriptCB_SetShellMusicInterval
ScriptCB_SetShellMusic
ScriptCB_PlayAuditionEffect
ScriptCB_GetBassManagement
ScriptCB_SetBassManagement
ScriptCB_GetMixConfigChanged
ScriptCB_GetEAXVersion
ScriptCB_NextMixConfig
ScriptCB_PreviousMixConfig
ScriptCB_GetMixConfig
ScriptCB_NextOutputMode
ScriptCB_PreviousOutputMode
ScriptCB_GetOutputMode
ScriptCB_HWSupport
ScriptCB_ToggleEffects
ScriptCB_EffectsEnabled
ScriptCB_SetVolumes
ScriptCB_GetVolumes
ScaleSoundParameter
SetOutOfBoundsVoiceOver
SetDefeatMusic
SetVictoryMusic
SetAttackingTeam
SetAmbientMusic
SetSoundEffect
SetLowReinforcementsVoiceOver
ScriptCB_SetBleedingRepeatTime
SetBleedingVoiceOver
SetReservesVO
SetPlanetaryBonusVoiceOver
AudioStreamAppendSegments
AudioStreamComplete
CloseAudioStream
OpenAudioStream
StopAudioStream
PlayAudioStreamUsingProperties
PlayAudioStream
ScriptCB_SndPlaySound
ScriptCB_SndBusFadeAAdvancedTraining
Regeneration
Reinforcements
SensorJam
SneakAttack
Hero
Sabotage
endor
hoth
kamino
geonosis
naboo
kashyyyk
rhenvar
yavin
tatooine
bespin
bSetsBlockade
aicontrol
lastattack
char
icon
shortname
teamname2
teamname
Bonus2Votes
Bonus1Votes
SecretBaseVotes
AttackVotes
bBlockaded
activatedthisturn
destroyed
pickorder
charge
owner2
owner1
mJoystickTeams
mIsSplitscreen
metagame_state_local
mWonMaps3
mWonMaps2
mWonMaps1
mWonMaps0
teamsAreBackwards
team2_charged
team1_charged
applyingbonus
charge_meter_team2
charge_meter_team1
TimePerTurn
bSneakAttack
pickplanet
pickteam
era
MaxTime
MaxTurn
CurTime
ShowedTurn1Intro
ShowedTurn0Intro
planets
team2
team1
metagame_state
gBonus2
gBonus1
gBonusPlanet
gAttackPlanet
metagame_host_state
gBonus2Vote
gBonus1Vote
gBonusPlanetVote
gAttackPlanetVote
metagame_vote_state mEra
classic new cw
ifs_meta_opts
Althougheach command has a differant format in which it must be used else it does not work. Thanks to ggctuk for extracting them.
do these commands go into the map lua file ?
Like bes2r.lua?
I can't seem to get them to work in MP. :(
Yes most should work fine in a mission script. They need to be formated first for instance.
ScriptCB_SetAIDifficulty
Needs to be changed to.
ScriptCB_SetAIDifficulty(3);
The AI should now be set to hard.
And ScriptCB_SetResolution neeeds to be changed to.
ScriptCB_SetResolution(1366,768)
The resolution should now be displaying ingame at 1366,768.(Of course you can do any resultion you want.)
ScriptCB_IFText_GetDisplayRect(nil);
Quote from: SleepKiller on October 17, 2011, 08:04:50 PM
Have some code it'll let you do it more effectively.
-- The first number must be the team you want the player on the second one must be left alone.
ScriptCB_SetPlayerSide(1,0)
-- Same thing applys to this one.
ScriptCB_SetPlayerSide(1,1)
-- Stop them from changing once we have them
ScriptCB_SetCanSwitchSides(nil)
Tested and it worked in SP should do the same in MP.
I can confirm that these commands *do not* work in multiplayer, but they do work in singleplayer.
Hmm, oh well. You've tried server and client having them?
Quote from: SleepKiller on October 18, 2011, 05:26:51 PM
Hmm, oh well. You've tried server and client having them?
Yes--I did single player on my PC with new mission, I spawned in CC as rebel (as I should if the command works), and then hosted on the same computer (hosting with Disk method) and spawned as empire.
I also placed the new mission on a server with dedicated server, and joined from two other computers in my house, and they spawned as usual, first as empire then the next as rebel.
Hm, oh well. If only their was away to kill the default auto assign.