#include #include "Daodan_Character.h" #include "Oni_Character.h" int DDr_TeamToTeamID(const char* team_string) //Already something like this in the engine, but I'm reimplementing it... { if (!strcmp(team_string, "Konoko")) return team_konoko; else if (!strcmp(team_string, "TCTF")) return team_tctf; else if (!strcmp(team_string, "Syndicate")) return team_syndicate; else if (!strcmp(team_string, "Neutral")) return team_neutral; else if (!strcmp(team_string, "SecurityGuard")) return team_securityguard; else if (!strcmp(team_string, "RougeKonoko")) return team_rougekonoko; else if (!strcmp(team_string, "Switzerland")) return team_switzerland; else if (!strcmp(team_string, "SyndicateAccessory")) return team_syndicateaccessory; return team_neutral; //if you enter a bad teamname, return Neutral..... } void CHARTest() { CharacterObject TestCHAR; memset(&TestCHAR, 0, sizeof(CharacterObject)); memcpy(TestCHAR.Header.Type, "CHAR", 5); memcpy(TestCHAR.OSD.Name, "Gumby", 6); memcpy(TestCHAR.OSD.Class, "muro_generic", 13); TestCHAR.OSD.TeamID = team_syndicate; ONrGameState_NewCharacter(&TestCHAR, NULL); }