qboolean OnSameTeam(edict_t *ent1, edict_t *ent2) { char ent1Team[512]; char ent2Team[512]; if (!ent1 || !ent2) { return false; } if (!((int)(dmflags->value) & (DF_MODELTEAMS | DF_SKINTEAMS))) { return false; } ClientTeam(ent1, ent1Team); ClientTeam(ent2, ent2Team); if (ent1Team[0] != '\0' && strcmp(ent1Team, ent2Team) == 0) { return true; } return false; }
qboolean OnSameTeam(edict_t *ent1, edict_t *ent2){ char ent1Team [512]; char ent2Team [512]; if(!((int)(dmflags->value) &(DF_MODELTEAMS | DF_SKINTEAMS))) return false; strcpy(ent1Team, ClientTeam(ent1)); strcpy(ent2Team, ClientTeam(ent2)); if(strcmp(ent1Team, ent2Team) == 0) return true; return false; }
qboolean OnSameTeam (edict_t * ent1, edict_t * ent2) { char ent1Team[128], ent2Team[128]; //FIREBLADE if (!ent1->client || !ent2->client) return false; if (teamplay->value) return ent1->client->resp.team == ent2->client->resp.team; //FIREBLADE if (!((int) (dmflags->value) & (DF_MODELTEAMS | DF_SKINTEAMS))) return false; Q_strncpyz (ent1Team, ClientTeam(ent1), sizeof(ent1Team)); Q_strncpyz (ent2Team, ClientTeam(ent2), sizeof(ent2Team)); if (strcmp (ent1Team, ent2Team) == 0) return true; return false; }