2298 ParseCommand('addteam x ' + colorStr + ' ' + lua_tostring(L, 1), true, true); |
2298 ParseCommand('addteam x ' + colorStr + ' ' + lua_tostring(L, 1), true, true); |
2299 ParseCommand('grave ' + lua_tostring(L, 3), true, true); |
2299 ParseCommand('grave ' + lua_tostring(L, 3), true, true); |
2300 ParseCommand('fort ' + lua_tostring(L, 4), true, true); |
2300 ParseCommand('fort ' + lua_tostring(L, 4), true, true); |
2301 ParseCommand('voicepack ' + lua_tostring(L, 5), true, true); |
2301 ParseCommand('voicepack ' + lua_tostring(L, 5), true, true); |
2302 if (np = 6) then ParseCommand('flag ' + lua_tostring(L, 6), true, true); |
2302 if (np = 6) then ParseCommand('flag ' + lua_tostring(L, 6), true, true); |
2303 CurrentTeam^.Binds:= DefaultBinds; |
2303 // If there's a mission team, copy it's control scheme. |
|
2304 // So in singleplayer missions, all teams use the player team's controls. |
|
2305 if MissionTeam <> nil then |
|
2306 CurrentTeam^.Binds:= MissionTeam^.Binds |
|
2307 // Default keys otherwise |
|
2308 else |
|
2309 CurrentTeam^.Binds:= DefaultBinds; |
2304 // push team name and index |
2310 // push team name and index |
2305 lua_pushstring(L, str2pchar(CurrentTeam^.TeamName)); |
2311 lua_pushstring(L, str2pchar(CurrentTeam^.TeamName)); |
2306 lua_pushnumber(L, TeamsCount - 1); |
2312 lua_pushnumber(L, TeamsCount - 1); |
2307 end |
2313 end |
2308 else |
2314 else |