MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / GetTeamRadarColor

Method GetTeamRadarColor

src/lua/LuaCallOuts.cpp:1830–1841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1828
1829
1830int 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
1844int LuaCallOuts::GetTeamsAreEnemies(lua_State* L) {

Callers

nothing calls this directly

Calls 3

luaL_pushnilFunction · 0.85
lua_pushfvec3Function · 0.85
ParseTeamFunction · 0.70

Tested by

no test coverage detected