PDA

View Full Version : global_scripts.hsc?



Pkmnrulz240
September 10th, 2008, 12:26 PM
So... uh... were the contents of this script file ever revealed to the public?

Zeph
September 10th, 2008, 12:38 PM
They're compiled into each scenario. Pull them out from there.

p0lar_bear
September 10th, 2008, 01:46 PM
I don't think the script extractor was made public... %-)

Choking Victim
September 10th, 2008, 02:16 PM
The singleplayer scripts were all released. If you compare files, the first few scripts are all the same. Those are the global scripts.

Edit:


(global boolean global_dialog_on false)
(global boolean global_music_on false)
(global long global_delay_music (* 30 300))
(global long global_delay_music_alt (* 30 300))

(script static unit player0
(unit (list_get (players) 0))
)

(script static unit player1
(unit (list_get (players) 1))
)

(script static short player_count
(list_count (players))
)

(script static boolean cinematic_skip_start
(cinematic_skip_start_internal)
(game_save_totally_unsafe)
(sleep_until (not (game_saving)) 1) (not (game_reverted))
)

(script static void cinematic_skip_stop
(cinematic_skip_stop_internal)
)

(script static void script_dialog_start
(sleep_until (not global_dialog_on))
(set global_dialog_on true)
(ai_dialogue_triggers false)
)

(script static void script_dialog_stop
(ai_dialogue_triggers true)
(sleep 30)
(set global_dialog_on false)
)

(script static void player_effect_impact
(player_effect_set_max_translation 0.05 0.05 0.075)
(player_effect_set_max_rotation 0 0 0)
(player_effect_set_max_rumble 0.4 1)
(player_effect_start (real_random_range 0.7 0.9) 0.1))

(script static void player_effect_explosion
(player_effect_set_max_translation 0.01 0.01 0.025)
(player_effect_set_max_rotation 0.5 0.5 1)
(player_effect_set_max_rumble 0.5 0.4)
(player_effect_start (real_random_range 0.7 0.9) 0.1))

(script static void player_effect_rumble
(player_effect_set_max_translation 0.01 0 0.02)
(player_effect_set_max_rotation 0.1 0.1 0.2)
(player_effect_set_max_rumble 0.5 0.3)
(player_effect_start (real_random_range 0.7 0.9) 0.5))

(script static void player_effect_vibration
(player_effect_set_max_translation 0.0075 0.0075 0.0125)
(player_effect_set_max_rotation 0.01 0.01 0.05)
(player_effect_set_max_rumble 0.2 0.5)
(player_effect_start (real_random_range 0.7 0.9) 1))

dg
September 10th, 2008, 03:35 PM
Check my user notes.

From forever ago.

Pkmnrulz240
September 10th, 2008, 05:42 PM
Ah, so those scripts were the global scripts. I wondered if they were, due to them being the same for every SP map.

Amazing how all the fuss was over something so small.

Thanks guys. :)

p0lar_bear
September 10th, 2008, 06:10 PM
Everyone wanted the global_scripts for the player0 script because we thought it was more than just good ole (unit (list_get (players) 0)).

Zeph
September 10th, 2008, 07:10 PM
I could have sworn everyone was told it wasn't.

Pkmnrulz240
September 10th, 2008, 09:05 PM
Everyone wanted the global_scripts for the player0 script because we thought it was more than just good ole (unit (list_get (players) 0)).
Yeah, I remember everyone all interested in that. After not working with any scripts for awhile, I took a look at the HS Bible, and figured that out on my own. Of course, I never really understood how static scripts worked until someone sent me a10.hsc, and then I understood how simple it was to call them. And hell, until I started working heavily with scripting again these past few weeks, I never knew that static scripts could be called multiple times and were executed completely before the script that called them continued on, and I never knew that dormant scripts could only be called once, and were executed at the same time as the script that called them.

Man... good times. I still have so much fun working with scripts. :)

Rob Oplawar
September 10th, 2008, 09:11 PM
The singleplayer scripts were all released.

Where can I get them? I cba to look for them myself. All my google searches just turn up halo 2 mods and porn.

CtrlAltDestroy
September 10th, 2008, 09:20 PM
http://www.modacity.net/forums/showthread.php?t=7657

Rob Oplawar
September 10th, 2008, 09:25 PM
:hugs: ty