Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "zcommon.acs"
- int sec = 1;
- int min = 1;
- int hr = 1;
- global int 43:time;
- /*
- First of all, this is an experimental Dynamic script. Supposed to
- change a level's sky from day to night and such. Might not work as
- intended.
- */
- SCRIPT << 0 >> ENTER
- {
- if(hr == 0)
- {
- SetMusic("NIGHT", 0);
- ChangeSky("SKY1NIGH","");
- fadeto(0,0,0,0.0,1300);
- }
- if(hr == 5)
- {
- SetMusic("DAY", 0);
- ChangeSky("SKY1DAWN","");
- fadeto(0,0,0,0.3,1100);
- }
- if(hr == 10)
- {
- ChangeSky("SKY1DAY","");
- fadeto(0,0,0,0.5,1300);
- }
- if(hr == 20)
- {
- ChangeSky("SKY1DAWN","");
- fadeto(0,0,0,0.3,980);
- }
- }
- SCRIPT 302 ENTER
- {
- hr = time/1800;
- min = (time/30)%30;
- sec = time%30;
- while(TRUE)
- {
- time = Timer() / 10;
- 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);
- delay(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment