| 1814 | |
| 1815 | |
| 1816 | int LuaCallOuts::GetTeamColor(lua_State* L) { |
| 1817 | const TeamColor teamID = ParseTeam(L, 1); |
| 1818 | if (teamID == NoTeam) { |
| 1819 | return luaL_pushnil(L); |
| 1820 | } |
| 1821 | const fvec4& color = Team::getTankColor(teamID); |
| 1822 | if (color == NULL) { |
| 1823 | return luaL_pushnil(L); |
| 1824 | } |
| 1825 | lua_pushfvec3(L, color.rgb()); |
| 1826 | return 3; |
| 1827 | } |
| 1828 | |
| 1829 | |
| 1830 | int LuaCallOuts::GetTeamRadarColor(lua_State* L) { |
nothing calls this directly
no test coverage detected