#undef objerror
#undef remove
#undef walkmove
+#undef setcolor
#ifdef MENUQC
#define NULL (0, null_entity)
#define objerror builtin_objerror
#define remove builtin_remove
#define walkmove builtin_walkmove
+#define setcolor builtin_setcolor
this.bot_config_loaded = true;
// this is really only a default, JoinBestTeam is called later
- set_color(this, stof(bot_shirt) * 16 + stof(bot_pants));
+ setcolor(this, stof(bot_shirt) * 16 + stof(bot_pants));
this.bot_preferredcolors = this.clientcolors;
// pick the name
e = bot_list;
while (e)
{
- set_color(e, e.bot_preferredcolors);
+ setcolor(e, e.bot_preferredcolors);
e = e.nextbot;
}
// if dynamic waypoints are ever implemented, save them here
if(!teamplay)
if(strlen(autocvar_sv_defaultplayercolors))
if(player.clientcolors != stof(autocvar_sv_defaultplayercolors))
- set_color(player, stof(autocvar_sv_defaultplayercolors));
+ setcolor(player, stof(autocvar_sv_defaultplayercolors));
}
return s;
}
-void set_color(entity this, int clr)
+void setcolor(entity this, int clr)
{
#if 0
this.clientcolors = clr;
this.team = (clr & 15) + 1;
#else
- setcolor(this, clr);
+ builtin_setcolor(this, clr);
#endif
}
if(teamplay) {
- set_color(pl, 16*pants + pants);
+ setcolor(pl, 16*pants + pants);
} else {
- set_color(pl, shirt + pants);
+ setcolor(pl, shirt + pants);
}
}
//void() ctf_playerchanged;
void ShufflePlayerOutOfTeam (float source_team);
+
+void setcolor(entity this, int clr);