#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 = malloc(sizeof(CharacterObject)); memset(TestCHAR, 0, sizeof(CharacterObject)); int type = 0x43484152; TestCHAR->Header.Type = type; memcpy(TestCHAR->OSD.Name, "Gumby", 6); memcpy(TestCHAR->OSD.Class, "striker_easy_1", 15); memcpy(TestCHAR->OSD.ScriptSpawn, "dmsg", 20); TestCHAR->OSD.Options = chr_unkillable; TestCHAR->OSD.TeamID = team_syndicate; ONrGameState_NewCharacter(TestCHAR, NULL, NULL, NULL); }