mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
fix: allow players to change teams in game (#589)
Co-authored-by: Edo <edoardo.sanguineti222@gmail.com>
This commit is contained in:
parent
83c5bea3c3
commit
b2fadb9d06
@ -5,3 +5,15 @@ end
|
|||||||
function GetGameModeName()
|
function GetGameModeName()
|
||||||
return Engine.Localize(Engine.TableLookup(GameTypesTable.File, GameTypesTable.Cols.Ref, GameX.GetGameMode(), GameTypesTable.Cols.Name))
|
return Engine.Localize(Engine.TableLookup(GameTypesTable.File, GameTypesTable.Cols.Ref, GameX.GetGameMode(), GameTypesTable.Cols.Name))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Allow players to change teams in game.
|
||||||
|
function CanChangeTeam()
|
||||||
|
local f9_local0 = GameX.GetGameMode()
|
||||||
|
local f9_local1
|
||||||
|
if f9_local0 ~= "aliens" and Engine.TableLookup( GameTypesTable.File, GameTypesTable.Cols.Ref, f9_local0, GameTypesTable.Cols.TeamChoice ) == "1" then
|
||||||
|
f9_local1 = not MLG.IsMLGSpectator()
|
||||||
|
else
|
||||||
|
f9_local1 = false
|
||||||
|
end
|
||||||
|
return f9_local1
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user