
General Shepherd
Joined: Feb 15, 2011
|
Posted: Feb 17, 2011 11:33 PM
Msg. 1 of 5
I've noticed in RPG_Beta 6_2 you're able to switch bsps at a simple command in console, switching it to day, night, or raining. I'm assuming there weren't more because you'd have to have 3 copies of the map in the .map, right? Anyway, I was wondering if you could automate this process in multiplayer.
For instance, to start off simply, a basic switch between night and day bsps at 10 minute intervals, would this be possible? If it is, can you have randomized bsp switches between that script?
|

Dwood
Joined: Oct 23, 2007
Judge Ye Therefore
|
Posted: Feb 18, 2011 12:34 AM
Msg. 2 of 5
Possible, but you need to have some way to tell if you're running as server and whatnot.
|

tylerp14
Joined: Oct 12, 2010
Ohai der...
|
Posted: Feb 18, 2011 02:30 PM
Msg. 3 of 5
RPG_Beta6_2's BSP Switch Script code: (script continuous void server_side_bsp (begin (if (= server true) (begin (if (and (= setting 0) (!= (structure_bsp_index) 0)) (begin (begin server_side_bsp (object_create_anew crush_0) (set twitch_0 true) (sleep_until (<= (unit_get_health check_0) 0.00) 1) (switch_bsp 0))) (if (and (= setting 1) (!= (structure_bsp_index) 1)) (begin (begin server_side_bsp (object_create_anew crush_1) (set twitch_1 true) (sleep_until (<= (unit_get_health check_1) 0.00) 1) (switch_bsp 2) (sleep 60) (switch_bsp 1))) (if (and (= setting 2) (!= (structure_bsp_index) 2)) (begin (begin server_side_bsp (object_create_anew crush_2) (set twitch_2 true) (sleep_until (<= (unit_get_health check_2) 0.00) 1) (switch_bsp 2))))))) (sleep_until (= 0.00 1.00)))))
(script continuous void client_side_bsp (begin (if (= server false) (begin (if (and (<= (unit_get_health check_0) 0.00) (!= (structure_bsp_index) 0)) (begin (begin client_side_bsp (switch_bsp 0))) (if (and (<= (unit_get_health check_1) 0.00) (!= (structure_bsp_index) 1)) (begin (begin client_side_bsp (switch_bsp 2) (sleep 60) (switch_bsp 1))) (if (and (<= (unit_get_health check_2) 0.00) (!= (structure_bsp_index) 2)) (begin (begin client_side_bsp (switch_bsp 2))))))) (sleep_until (= 0.00 1.00)))))
|

lordofblake
Joined: Jan 6, 2008
Nice Tongue
|
Posted: Feb 18, 2011 09:53 PM
Msg. 4 of 5
That script extractor makes things much more...easy. I miss when we actually had to develop our own scripting methods...
|