Author: Not specified Language: cpp
Description: Not specified Timestamp: 2013-06-15 22:36:17 +0000
View raw paste Reply
  1. string to_string(const CharArray @chararray, int length) {
  2. string str = "";
  3. for (int i = 0; i < length; i++) {
  4. if (chararray[i] == 0) break;
  5. str += "\0";
  6. str[i] = chararray[i];
  7. }
  8. return str;
  9. }
  10.  
  11. void id() {
  12. clr();
  13. for (int i = 0; i < 25; i++) {
  14. const DataFile @datafile1 = game.files.datas[i];
  15. for (int j = 0; j < 25; j++) {
  16. const DataFile @datafile2 = game.files.datas[j];
  17. if (to_string(datafile1.name,12) != "none" &&
  18. to_string(datafile2.name,12) != "none") {
  19. const Frame @erframe = datafile1.frames[5];
  20. for (int k = 226; k <= 229; k++) {
  21. const Frame @eeframe = datafile1.frames[k];
  22. if (-erframe.centerx + erframe.itrs[0].x + datafile1.walking_speed <
  23. -eeframe.centerx + eeframe.itrs[0].x + eeframe.itrs[0].w) {
  24. print(to_string(datafile1.name,12)+" grabbing "+
  25. to_string(datafile2.name,12)+"("+k+")\n");
  26. break;
  27. }
  28. }
  29. }
  30. }
  31. }
  32. }
View raw paste Reply