void Test18() { LoadBCP("data.bcp"); ReadLanguageFile(); InitWindow(); LoadSaveGame("Save_Games\\rescript1.sav"); SequenceEnv se; char inbuf[256]; goref gr; gr = FindObjID(3102); se.self = gr; printf("Object finder definitions:\n"); for(int i = 0; i < strFinderDef.len; i++) printf(" %i: %s\n", i+1, strFinderDef.getdp(i)); while(1) { printf("\nFinder def. number: "); int x = atoi(fgets(inbuf, 255, stdin))-1; if(x == -1) break; if((uint)x >= strFinderDef.len) printf("OFD number does not exist.\n"); else if(!finderdef[x]) printf("OFD is null.\n"); else { printf("Result:"); CFinder *f = finderdef[x]; GameObject *o; f->begin(&se); while(o = f->getnext()) printf(" %u", o->id); printf("\n"); } } };
void Test17() { LoadBCP("data.bcp"); ReadLanguageFile(); InitWindow(); LoadSaveGame("Save_Games\\rescript1.sav"); SequenceEnv se; char inbuf[256]; printf("Equations:\n"); for(int i = 0; i < strEquation.len; i++) printf(" %i: %s\n", i+1, strEquation.getdp(i)); while(1) { printf("\nEquation number: "); int x = atoi(fgets(inbuf, 255, stdin))-1; if(x == -1) break; if((uint)x >= strEquation.len) printf("Eq. number does not exist.\n"); else if(!equation[x]) printf("Equation is null.\n"); else printf("Result: %f\n", equation[x]->get(&se)); } };
void UShooterLocalPlayer::SetControllerId(int32 NewControllerId) { Super::SetControllerId(NewControllerId); LoadSaveGame(); }