DartPower

ACS TIME CHANGER

Oct 3rd, 2013
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.96 KB | None | 0 0
  1. #include "zcommon.acs"
  2.  
  3. int sec = 1;
  4. int min = 1;
  5. int hr = 1;
  6. global int 43:time;
  7.  
  8. /*
  9. First of all, this is an experimental Dynamic script. Supposed to
  10. change a level's sky from day to night and such. Might not work as
  11. intended.
  12. */
  13.  
  14. SCRIPT << 0 >> ENTER
  15. {
  16.    if(hr == 0)
  17.    {
  18.       SetMusic("NIGHT", 0);
  19.       ChangeSky("SKY1NIGH","");
  20.       fadeto(0,0,0,0.0,1300);
  21.    }
  22.    if(hr == 5)
  23.    {
  24.       SetMusic("DAY", 0);
  25.       ChangeSky("SKY1DAWN","");
  26.       fadeto(0,0,0,0.3,1100);
  27.    }
  28.    if(hr == 10)
  29.    {
  30.       ChangeSky("SKY1DAY","");
  31.       fadeto(0,0,0,0.5,1300);
  32.    }
  33.    if(hr == 20)
  34.    {
  35.       ChangeSky("SKY1DAWN","");
  36.       fadeto(0,0,0,0.3,980);
  37.    }
  38. }
  39.  
  40. SCRIPT 302 ENTER
  41. {
  42.    hr = time/1800;
  43.    min = (time/30)%30;
  44.    sec = time%30;
  45.  
  46.    while(TRUE)
  47.    {
  48.       time = Timer() / 10;
  49.       HudMessage(d:hr, s:":", d:min/10, d:min%10, s:":", d:sec/10, d:sec%10; HUDMSG_PLAIN, 300, CR_RED, 0.95, 0.95, 2.0);
  50.       delay(1);
  51.    }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment