static char *OddFragColor(int killer) { if (its_you(killer)) return empty_is_000(amf_tracker_color_myfrag.string); return (!VX_TrackerIsEnemy(killer) ? empty_is_000(amf_tracker_color_good.string) : empty_is_000(amf_tracker_color_bad.string)); }
static char *SuiColor(int player) { if (its_you(player)) return empty_is_000(amf_tracker_color_suicide.string); return (VX_TrackerIsEnemy(player) ? empty_is_000(amf_tracker_color_good.string) : empty_is_000(amf_tracker_color_bad.string)); }
static char *XvsYColor(int player, int killer) { if (its_you(player)) return empty_is_000(amf_tracker_color_fragonme.string); if (its_you(killer)) return empty_is_000(amf_tracker_color_myfrag.string); return (VX_TrackerIsEnemy(player) ? empty_is_000(amf_tracker_color_good.string) : empty_is_000(amf_tracker_color_bad.string)); }
static char *SuiColor(int player) { if (its_you(player)) return empty_is_000(amf_tracker_color_suicide.string); // with images color_bad == enemy color // without images color bad == bad frag for us if (cl_useimagesinfraglog.integer) { if (amf_tracker_positive_enemy_suicide.integer) return (VX_TrackerIsEnemy(player) ? empty_is_000(amf_tracker_color_good.string) : empty_is_000(amf_tracker_color_bad.string)); else return (VX_TrackerIsEnemy(player) ? empty_is_000(amf_tracker_color_bad.string) : empty_is_000(amf_tracker_color_good.string)); } else { return (VX_TrackerIsEnemy(player) ? empty_is_000(amf_tracker_color_good.string) : empty_is_000(amf_tracker_color_bad.string)); } }
// well, I'm too lazy making different functions for each type of TK static char *TKColor(int player) { return (VX_TrackerIsEnemy(player) ? empty_is_000(amf_tracker_color_tkgood.string) : empty_is_000(amf_tracker_color_tkbad.string)); }
static char *EnemyColor(void) { return empty_is_000(amf_tracker_color_bad.string); }