| 1828 | |
| 1829 | |
| 1830 | int LuaCallOuts::GetTeamRadarColor(lua_State* L) { |
| 1831 | const TeamColor teamID = ParseTeam(L, 1); |
| 1832 | if (teamID == NoTeam) { |
| 1833 | return luaL_pushnil(L); |
| 1834 | } |
| 1835 | const fvec4& color = Team::getRadarColor(teamID); |
| 1836 | if (color == NULL) { |
| 1837 | return luaL_pushnil(L); |
| 1838 | } |
| 1839 | lua_pushfvec3(L, color.rgb()); |
| 1840 | return 3; |
| 1841 | } |
| 1842 | |
| 1843 | |
| 1844 | int LuaCallOuts::GetTeamsAreEnemies(lua_State* L) { |
nothing calls this directly
no test coverage detected