Results 1 to 10 of 10

Thread: Dynamic Time/Weather Script

  1. #1
    Alive malolo420's Avatar
    Join Date
    Jul 2007
    Location
    Gibsons, BC, Canada
    Posts
    241

    Dynamic Time/Weather Script

    I wasn't going to release this because I made it for someones map.
    But I'm starting to doubt they were going to give me credit for it so I'm releasing it. I personally havn't tested it but It seemed to work perfectly in his map.

    Quote Originally Posted by Malolo420
    Make 2 bsps, (the same one but different bsp files {for different skys make +sky in the second bsp +sk1)
    Then make a biped and a vehicle out of view and 2 cutscene flags(1 where vehicle is and 1 ontop of biped), name the biped syncbip and the vehicle synchog and the flag at vehicle vehistart, and the other one killbip (for my script, you can change names).
    Then just compile my script and it will switch skys every 5 minutes.
    Code:
    (global boolean is_server false) 
    (script continuous nightsky 
    (sleep_until (= (unit_get_health syncbip) 0) 15) 
       (if (= (structure_bsp_index) 0)
          (begin 
    (set is_server true) 
             (switch_bsp 1) 
             (sleep 9000) 
             (object_create_anew syncbip) 
    )))
     
    (script continuous killbiped 
    (if (= (unit_get_health syncbip) 0.0)
    (begin
    (object_teleport synchog killbip) 
    )))
     
    (script continuous daysky 
    (sleep_until (= (unit_get_health syncbip) 1) 15) 
       (if (= (structure_bsp_index) 1) 
          (begin 
    (set is_server true) 
             (switch_bsp 0) 
    ))) 
     
    (script continuous bipedkill 
    (if (= (unit_get_health syncbip) 1) 
    (begin 
    (set is_server true) 
    (sleep 9000) 
    (object_teleport synchog killbip) 
    (sleep 60) 
    (object_teleport synchog vehistart) 
    )))
    Reply With Quote

  2. #2

    Re: Dynamic Time/Weather Script

    Just what some of us wanted. Nice work +Rep
    Reply With Quote

  3. #3
    The Cake is a Lie. Jay2645's Avatar
    Join Date
    May 2007
    Posts
    1,661

    Re: Dynamic Time/Weather Script

    Don't BSP switches normally cause exceptions?
    I wrote one of these for an old project, everyone exceptioned every 5 seconds, lol.
    Reply With Quote

  4. #4

    Re: Dynamic Time/Weather Script

    Quote Originally Posted by Jay2645 View Post
    Don't BSP switches normally cause exceptions?
    I wrote one of these for an old project, everyone exceptioned every 5 seconds, lol.
    I think Jahrain did this a while ago as well, and it seemed to work
    Reply With Quote

  5. #5
    The Cake is a Lie. Jay2645's Avatar
    Join Date
    May 2007
    Posts
    1,661

    Re: Dynamic Time/Weather Script

    Must have done something wrong then, lol.
    Reply With Quote

  6. #6

    Re: Dynamic Time/Weather Script

    Quote Originally Posted by SuperSunny View Post
    I think Jahrain did this a while ago as well, and it seemed to work

    Yea, jahrain did it many moons ago. 'Cept his was in BG and it went from dawn, to noon, to sunset, to night
    Reply With Quote

  7. #7
    Alive malolo420's Avatar
    Join Date
    Jul 2007
    Location
    Gibsons, BC, Canada
    Posts
    241

    Re: Dynamic Time/Weather Script

    Thats what the guy I made it for did to, cept it didn't sync well so he went back to just day and night.
    Reply With Quote

  8. #8
    --- itszutak's Avatar
    Join Date
    Sep 2006
    Location
    UC Davis, CA
    Posts
    2,547

    Re: Dynamic Time/Weather Script

    Quote Originally Posted by Kalub™ View Post
    Yea, jahrain did it many moons ago. 'Cept his was in BG and it went from dawn, to noon, to sunset, to night
    Was this released? I would like to see how smooth/rough it is.
    Reply With Quote

  9. #9
    [as seen on adultswim] CabooseJr's Avatar
    Join Date
    Oct 2006
    Location
    Pittsburgh, PA
    Posts
    672

    Re: Dynamic Time/Weather Script

    Very useful, I would like to see this done in more maps.
    Reply With Quote

  10. #10
    Looking for his home. Apoc4lypse's Avatar
    Join Date
    Sep 2006
    Location
    I don't know anymore
    Posts
    838

    Re: Dynamic Time/Weather Script

    Quote Originally Posted by SuperSunny View Post
    I think Jahrain did this a while ago as well, and it seemed to work
    agreed, Jahrain already did it, but I thought it had sync issues, but I forget really so idk...
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 6 users browsing this thread. (0 members and 6 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •