mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-28 23:13:02 +00:00
New Character Select
This commit is contained in:
parent
c6bda4917c
commit
f3e4caecb0
5 changed files with 8 additions and 7 deletions
|
@ -244,20 +244,21 @@ local function mario_update(m)
|
||||||
end
|
end
|
||||||
|
|
||||||
if m.playerIndex == 0 and stallFrame > 1 then
|
if m.playerIndex == 0 and stallFrame > 1 then
|
||||||
characterTable[1].forceChar = gNetworkPlayers[m.playerIndex].modelIndex
|
local modelIndex = gNetworkPlayers[m.playerIndex].modelIndex
|
||||||
|
characterTable[1].forceChar = modelIndex
|
||||||
if currChar == 1 then
|
if currChar == 1 then
|
||||||
characterTable[1].color = defaultPlayerColors[gNetworkPlayers[m.playerIndex].modelIndex]
|
characterTable[1].color = defaultPlayerColors[modelIndex]
|
||||||
characterTable[1].lifeIcon = defaultIcons[gNetworkPlayers[m.playerIndex].modelIndex]
|
characterTable[1].lifeIcon = defaultIcons[modelIndex]
|
||||||
end
|
end
|
||||||
if optionTable[optionTableRef.localModels].toggle > 0 then
|
if optionTable[optionTableRef.localModels].toggle > 0 then
|
||||||
gPlayerSyncTable[0].modelId = characterTable[currChar].model
|
gPlayerSyncTable[m.playerIndex].modelId = characterTable[currChar].model
|
||||||
gPlayerSyncTable[0].capModels = characterTable[currChar].capModels
|
gPlayerSyncTable[m.playerIndex].capModels = characterTable[currChar].capModels
|
||||||
if characterTable[currChar].forceChar ~= nil then
|
if characterTable[currChar].forceChar ~= nil then
|
||||||
gNetworkPlayers[m.playerIndex].overrideModelIndex = characterTable[currChar].forceChar
|
gNetworkPlayers[m.playerIndex].overrideModelIndex = characterTable[currChar].forceChar
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
gPlayerSyncTable[0].modelId = nil
|
gPlayerSyncTable[m.playerIndex].modelId = nil
|
||||||
gPlayerSyncTable[0].capModels = nil
|
gPlayerSyncTable[m.playerIndex].capModels = nil
|
||||||
gNetworkPlayers[m.playerIndex].overrideModelIndex = characterTable[1].forceChar
|
gNetworkPlayers[m.playerIndex].overrideModelIndex = characterTable[1].forceChar
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue