daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Feb 18th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. state("Hades"){
  2.     string16 IGT : "SDL2.dll", 0x013FE38, 0x11b0, 0x138, 0x3f0, 0x1a8, 0x40;
  3. }
  4.    
  5. update
  6. {
  7.     //IGT is in format MM:ss.mm
  8.     print("IGT: " + current.IGT.ToString());
  9.  
  10.     vars.min = Convert.ToInt32(current.IGT.ToString().Substring(0, 2));
  11.     vars.sec = Convert.ToInt32(current.IGT.ToString().Substring(3, 2));
  12.     vars.ms  = Convert.ToInt32(current.IGT.ToString().Substring(6, 2));
  13.  
  14.     // ms*10 changes .78 to 780 ms
  15.     vars.totalMs = (vars.min*60 + vars.sec)*1000 + vars.ms*10;
  16.     print("MS: " + vars.totalMs);
  17.     return true;
  18. }
  19.  
  20. gameTime
  21. {
  22.     return TimeSpan.FromMilliseconds(vars.totalMs);
  23. }
  24.  
  25. isLoading
  26. {
  27.     return true;
  28. }
  29.  
  30. start {
  31.     if (vars.totalMs > 0) {
  32.         return true;
  33.     }
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top