![]() |
Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
|
Go to the source code of this file.
Data Structures | |
class | cAwarenessSceneObject |
class | cSceneObject |
Macros | |
#define | DAMAGE_STR(dmg) ( !isdefined( dmg ) || dmg == "none" ? "" : dmg ) |
#define | DEFAULT_ACTOR_WEAPON GetWeapon( "ar_standard" ) |
#define | NEW_STATE(__state) |
#define | TEST_SCENES array() |
#define | WEAP_FIRST_RAISE 31 |
#define | WEAP_RAISE 30 |
Functions | |
function | __init__ () |
function | __main__ () |
function | _call_state_funcs (str_state) |
function private | _fire_ordered_notitifes (group_obj, group_name) |
function | _get_type_count (str_type, str_scenedef) |
function | _has_init_state () |
function | _init_instance (str_scenedef, a_ents, b_test_run=false) |
function | _is_ent_actor (ent) |
function | _is_ent_player (ent) |
function | _is_ent_vehicle (ent) |
function private | _load_female_scene (s_bundle, a_ents) |
function | _on_alert_run_scene_thread () |
function | _play_camera_anim_on_player (player, v_origin, v_angles, ignore_initial_notetracks) |
function | _play_camera_anim_on_player_callback (player) |
function | _play_camera_anims () |
function | _play_extracam_on_player (player, n_index, str_camera_anim, v_origin, v_angles) |
function | _play_instance (s_tracker, str_scenedef, a_ents, b_test_run=false, str_state, str_mode) |
function | _prepare () |
function | _release_object () |
function private | _scene_link () |
function private | _skip_scene () |
function | _skip_scene (skipped_scene_name, b_sequence, b_player_scene, b_check_linked_scene) |
function | _stop_camera_anim_on_player (player) |
function | _stop_camera_anims () |
function | _stop_instance (b_clear=false, str_scenedef) |
function | _trigger_init (trig) |
function | _trigger_play (trig) |
function | _trigger_stop (trig) |
function | _wait_for_camera_animation (str_cam, n_start_time) |
function private | _wait_for_ordered_notify (id, group_obj, group_name, str_note) |
function | _wait_server_time (n_time, n_start_time=0) |
function | add_player_linked_scene (linked_scene_str) |
function | add_scene_func (str_scenedef, func, str_state="play",...) |
function | add_scene_ordered_notetrack (group_name, str_note) |
function | add_to_sync_list () |
function | add_wait_for_streamer_hint_scene (str_scene_name) |
function | allows_multiple () |
function | any_button_pressed () |
function | assign_ents (a_ents) |
function | clear_scene_skipping_ui () |
constructor () | |
function | delete_scene_data (str_scenename) |
function | destroy_dev_info () |
destructor () | |
function | display_dev_info () |
function private | finish_skip_scene () |
function | get_active_scene (str_scenedef) |
function | get_active_scenes (str_scenedef) |
function | get_actor_count (str_scenedef) |
function | get_align_ent () |
function | get_anim_relative_start_time (animation, n_time) |
function | get_ents () |
function | get_existing_ent (str_name, b_spawner_only=false, b_nodes_and_structs=false) |
function | get_object_id () |
function | get_objects (str_type) |
function | get_player_count (str_scenedef) |
function | get_prop_count (str_scenedef) |
function | get_root () |
function | get_scenedef (str_scenedef) |
function | get_scenedefs (str_type="scene") |
function | get_state () |
function | get_valid_object_defs () |
function | get_valid_objects () |
function | get_vehicle_count (str_scenedef) |
function | has_init_state () |
function | has_init_state (str_scenedef) |
function | has_next_scene () |
function | has_player () |
function | init (arg1, arg2, arg3, b_test_run) |
function | init (str_scenedef, s_scenedef, e_align, a_ents, b_test_run) |
function private | init_scene_sequence_started (b_started) |
function | initialize (a_ents, b_playing=false) |
function | is_active (str_scenedef) |
function | is_capture_mode () |
function | is_igc () |
function | is_igc_active () |
function | is_looping () |
function | is_player_anim_ending_early () |
function | is_playing (str_scenedef) |
function | is_ready (str_scenedef) |
function | is_scene_shared () |
function private | is_scene_shared_sequence () |
function | is_skipping_in_progress () |
function | is_skipping_player_scene () |
function | is_skipping_scene () |
function | is_valid_ent (ent) |
function | loop_camera_anim_to_set_up_for_capture () |
function | new_object () |
function | on_error () |
function | on_load_wait () |
function | on_player_connect () |
function | on_player_disconnect () |
function | play (arg1, arg2, arg3, b_test_run=false, str_state, str_mode="") |
function | play (str_alert_state) |
function | play (str_awareness_state="low_alert") |
function | play (str_state="play", a_ents, b_testing=false, str_mode="") |
function private | prepare_generic_model_anim (ent) |
function private | prepare_player_model_anim (ent) |
function | remove_from_sync_list () |
function | remove_invalid_scene_objects (s_scenedef) |
function | remove_player_linked_scene (linked_scene_str) |
function | remove_scene_func (str_scenedef, func, str_state="play") |
function | run_instances () |
function | run_next () |
function | scene_disable_player_stuff (b_hide_hud=true) |
function | scene_enable_player_stuff (b_hide_hud=true) |
function | set_igc_active (b_in_igc) |
function | should_skip_linked_to_players_scene () |
function | should_skip_scene_loop () |
function | should_spectate_on_join () |
function | skip_scene (b_sequence) |
function | skip_scene (scene_name, b_sequence, b_player_scene, b_check_linked_scene) |
function | skipto_end (arg1, arg2, arg3, n_time, b_include_players=false) |
function | skipto_end_noai (arg1, arg2, arg3, n_time) |
function | spawn (arg1, arg2, arg3, arg4, b_test_run) |
function | stop (arg1, arg2, arg3) |
function | stop (b_clear=false, b_finished=false) |
function | streamer_request_completed () |
function | sync_with_client_scene (str_state, b_test_run=false) |
function | sync_with_other_scenes () |
function | synced_delete () |
function private | trigger_scene_sequence_started (scene_object, entity) |
function private | update_scene_sequence () |
function | updateIGCViewtime (b_in_igc) |
function | wait_till_scene_ready (o_exclude, b_ignore_streamer=false) |
function | wait_until_spectate_on_join_completes () |
function | waittill_skip_sequence_completed () |
function | watch_scene_ending () |
function | watch_scene_skip_requests () |
function | watch_scene_skipping () |
Variables | |
cSceneObject | _e_root |
var | _n_object_id |
var | _n_request_time |
var | _n_streamer_req |
var | _str_mode |
var | _str_notify_name |
var | _str_state |
function _assign_ents_by_name | a_objects |
function wait_till_objects_ready | array |
#define DAMAGE_STR | ( | dmg | ) | ( !isdefined( dmg ) || dmg == "none" ? "" : dmg ) |
Definition at line 66 of file scene_shared.gsc.
#define DEFAULT_ACTOR_WEAPON GetWeapon( "ar_standard" ) |
Definition at line 72 of file scene_shared.gsc.
#define NEW_STATE | ( | __state | ) |
Definition at line 56 of file scene_shared.gsc.
#define TEST_SCENES array() |
Definition at line 54 of file scene_shared.gsc.
#define WEAP_FIRST_RAISE 31 |
Definition at line 70 of file scene_shared.gsc.
#define WEAP_RAISE 30 |
Definition at line 69 of file scene_shared.gsc.
function __init__ | ( | ) |
Definition at line 3743 of file scene_shared.gsc.
References DEFAULT, get_script_bundle(), get_script_bundles(), IS_EQUAL, is_igc(), on_connect(), on_disconnect(), on_player_connect(), on_player_disconnect(), register(), and VERSION_SHIP.
function __main__ | ( | ) |
Definition at line 3906 of file scene_shared.gsc.
References _scene_link(), _trigger_init(), _trigger_play(), _trigger_stop(), get_array(), init(), on_load_wait(), and run_instances().
function _call_state_funcs | ( | str_state | ) |
Definition at line 2931 of file scene_shared.gsc.
References _e_root, _str_notify_name, a_ents, get_ents(), and wait_till_scene_ready().
Referenced by initialize(), play(), skip_scene(), and stop().
function private _fire_ordered_notitifes | ( | group_obj | , |
group_name | |||
) |
Definition at line 5644 of file scene_shared.gsc.
Referenced by _wait_for_ordered_notify().
function _get_type_count | ( | str_type | , |
str_scenedef | |||
) |
Definition at line 4814 of file scene_shared.gsc.
References get_scenedef().
Referenced by get_actor_count(), get_player_count(), get_prop_count(), and get_vehicle_count().
function _has_init_state | ( | ) |
Definition at line 4725 of file scene_shared.gsc.
References IS_TRUE.
Referenced by cSceneObject::has_init_state(), and has_init_state().
function _init_instance | ( | str_scenedef | , |
a_ents | , | ||
b_test_run | = false |
||
) |
Definition at line 4272 of file scene_shared.gsc.
References _load_female_scene(), a_ents, DEFAULT, get_active_scene(), get_scenedef(), and wait_till().
Referenced by _play_instance(), _trigger_init(), and init().
function _is_ent_actor | ( | ent | ) |
Definition at line 2169 of file scene_shared.gsc.
Referenced by assign_ents().
function _is_ent_player | ( | ent | ) |
Definition at line 2164 of file scene_shared.gsc.
Referenced by assign_ents().
function _is_ent_vehicle | ( | ent | ) |
Definition at line 2174 of file scene_shared.gsc.
Referenced by assign_ents().
function private _load_female_scene | ( | s_bundle | , |
a_ents | |||
) |
Definition at line 4312 of file scene_shared.gsc.
References a_ents, get_script_bundle(), IS_EQUAL, and is_female().
Referenced by _init_instance().
function new_object::_on_alert_run_scene_thread | ( | ) |
Definition at line 3508 of file scene_shared.gsc.
function _play_camera_anim_on_player | ( | player | , |
v_origin | , | ||
v_angles | , | ||
ignore_initial_notetracks | |||
) |
Definition at line 2589 of file scene_shared.gsc.
References _s, and scene_disable_player_stuff().
Referenced by _play_camera_anim_on_player_callback(), and _play_camera_anims().
function _play_camera_anim_on_player_callback | ( | player | ) |
Definition at line 2584 of file scene_shared.gsc.
References _play_camera_anim_on_player().
Referenced by _play_camera_anims(), and _stop_camera_anim_on_player().
function _play_camera_anims | ( | ) |
Definition at line 2513 of file scene_shared.gsc.
References _a_objects, _play_camera_anim_on_player(), _play_camera_anim_on_player_callback(), _play_extracam_on_player(), _s, ARRAY_ADD, get_align_ent(), IS_TRUE, and on_loadout().
Referenced by loop_camera_anim_to_set_up_for_capture(), and play().
function _play_extracam_on_player | ( | player | , |
n_index | , | ||
str_camera_anim | , | ||
v_origin | , | ||
v_angles | |||
) |
Definition at line 2626 of file scene_shared.gsc.
Referenced by _play_camera_anims().
function _play_instance | ( | s_tracker | , |
str_scenedef | , | ||
a_ents | , | ||
b_test_run | = false , |
||
str_state | , | ||
str_mode | |||
) |
Definition at line 4501 of file scene_shared.gsc.
References _init_instance(), a_ents, DEFAULT, get_scenedef(), is_playing(), IS_TRUE, set(), should_skip_linked_to_players_scene(), skip_scene(), and WAIT_SERVER_FRAME.
Referenced by play().
function new_object::_prepare | ( | ) |
Definition at line 3497 of file scene_shared.gsc.
References cSceneObject::_play_anim(), cScriptBundleObjectBase::_s, cSceneObject::_str_death_anim, and cSceneObject::_str_death_anim_loop.
function _release_object | ( | ) |
Definition at line 2905 of file scene_shared.gsc.
References _a_objects, and WAIT_SERVER_FRAME.
Referenced by stop().
function private _scene_link | ( | ) |
Definition at line 3957 of file scene_shared.gsc.
References spawn_model(), and waittill_any_ents_two().
Referenced by __main__().
function private _skip_scene | ( | ) |
Definition at line 3307 of file scene_shared.gsc.
References _a_objects.
Referenced by skip_scene().
function _skip_scene | ( | skipped_scene_name | , |
b_sequence | , | ||
b_player_scene | , | ||
b_check_linked_scene | |||
) |
Definition at line 5188 of file scene_shared.gsc.
References is_scene_shared(), and IS_TRUE.
function _stop_camera_anim_on_player | ( | player | ) |
Definition at line 2663 of file scene_shared.gsc.
References _play_camera_anim_on_player_callback(), _s, IS_TRUE, remove_on_loadout(), and scene_enable_player_stuff().
Referenced by cSceneObject::_finish_player(), and _stop_camera_anims().
function _stop_camera_anims | ( | ) |
Definition at line 2632 of file scene_shared.gsc.
References _stop_camera_anim_on_player(), and IS_TRUE.
function _stop_instance | ( | b_clear | = false , |
str_scenedef | |||
) |
Definition at line 4695 of file scene_shared.gsc.
Referenced by stop().
function _trigger_init | ( | trig | ) |
Definition at line 3992 of file scene_shared.gsc.
References _init_instance(), a_ents, get_player_count(), and wait_till().
Referenced by __main__().
function _trigger_play | ( | trig | ) |
Definition at line 4010 of file scene_shared.gsc.
References a_ents, get_player_count(), get_scenedef(), IS_TRUE, play(), and wait_till().
Referenced by __main__().
function _trigger_stop | ( | trig | ) |
Definition at line 4032 of file scene_shared.gsc.
References stop(), and wait_till().
Referenced by __main__().
function _wait_for_camera_animation | ( | str_cam | , |
n_start_time | |||
) |
Definition at line 2499 of file scene_shared.gsc.
References _wait_server_time().
Referenced by loop_camera_anim_to_set_up_for_capture(), and play().
function private _wait_for_ordered_notify | ( | id | , |
group_obj | , | ||
group_name | , | ||
str_note | |||
) |
Definition at line 5596 of file scene_shared.gsc.
References _fire_ordered_notitifes().
Referenced by add_scene_ordered_notetrack().
function _wait_server_time | ( | n_time | , |
n_start_time | = 0 |
||
) |
Definition at line 2483 of file scene_shared.gsc.
Referenced by _wait_for_camera_animation().
function add_player_linked_scene | ( | linked_scene_str | ) |
Definition at line 5286 of file scene_shared.gsc.
function add_scene_func | ( | str_scenedef | , |
func | , | ||
str_state | = "play" , |
||
... | |||
) |
Description:
"Summary: Adds a function to be called when a scene starts"
"Single Player / Multi Player: shared"
"Function Name: add_scene_func( str_scenedef, func, str_state = "play" )" "CallOn: level"
"Mandatory Argument(s): <str_scenedef> Name of scene"
"Mandatory Argument(s): <func> function to call when scene starts"
"Optional Argument(s): [str_state] set to "init" or "done" if you want to the function to get called in one of those states"
"Example:level scene::init( "my_scenes", "targetname" );"
Definition at line 4052 of file scene_shared.gsc.
References add(), DEFAULT, and get_scenedef().
function add_scene_ordered_notetrack | ( | group_name | , |
str_note | |||
) |
Definition at line 5576 of file scene_shared.gsc.
References _wait_for_ordered_notify(), and DEFAULT.
function add_to_sync_list | ( | ) |
Definition at line 1941 of file scene_shared.gsc.
References _n_request_time, add(), and DEFAULT.
Referenced by init().
function add_wait_for_streamer_hint_scene | ( | str_scene_name | ) |
Definition at line 5660 of file scene_shared.gsc.
function allows_multiple | ( | ) |
Definition at line 3038 of file scene_shared.gsc.
Referenced by cSceneObject::_assign_unique_name(), and run_next().
function any_button_pressed | ( | ) |
Definition at line 5494 of file scene_shared.gsc.
Referenced by should_skip_scene_loop().
function assign_ents | ( | a_ents | ) |
Definition at line 2070 of file scene_shared.gsc.
References _a_objects, _is_ent_actor(), _is_ent_player(), _is_ent_vehicle(), a_ents, a_objects, error(), and MAKE_ARRAY.
Referenced by initialize(), and play().
function clear_scene_skipping_ui | ( | ) |
Definition at line 5331 of file scene_shared.gsc.
Referenced by should_skip_scene_loop(), watch_scene_ending(), and watch_scene_skipping().
constructor | ( | ) |
Definition at line 1893 of file scene_shared.gsc.
References _n_object_id, _n_streamer_req, and _str_mode.
function delete_scene_data | ( | str_scenename | ) |
Definition at line 4952 of file scene_shared.gsc.
function destroy_dev_info | ( | ) |
Definition at line 2707 of file scene_shared.gsc.
destructor | ( | ) |
Definition at line 1900 of file scene_shared.gsc.
function display_dev_info | ( | ) |
Definition at line 2703 of file scene_shared.gsc.
function private finish_skip_scene | ( | ) |
Definition at line 3273 of file scene_shared.gsc.
References _s, BONUSZM_SCENE_SEQUENCE_ENDED_CALLBACK, increment_to_player(), init_scene_sequence_started(), IS_TRUE, and screen_fade().
Referenced by skip_scene().
function get_active_scene | ( | str_scenedef | ) |
Definition at line 4936 of file scene_shared.gsc.
References get_name().
Referenced by _init_instance(), is_active(), is_playing(), and is_ready().
function get_active_scenes | ( | str_scenedef | ) |
Definition at line 4916 of file scene_shared.gsc.
References DEFAULT.
Referenced by is_active(), play(), skip_scene(), and stop().
function get_actor_count | ( | str_scenedef | ) |
Description:
"Summary: returns the number of actors defined for a scene"
"Single Player / Multi Player: shared"
"Function Name: get_actor_count( str_scenedef )" "CallOn: Any"
"Mandatory Argument(s): <str_scenedef> scene definition name (from gdt)"
"Example:level scene::get_actor_count( "my_scene" );"
"Function Name: get_actor_count()" "CallOn: scene object"
"Example:s_scene scene::get_actor_count();"
Definition at line 4788 of file scene_shared.gsc.
References _get_type_count().
function get_align_ent | ( | ) |
Definition at line 3007 of file scene_shared.gsc.
References _e_root, _s, _testing, error(), get_existing_ent(), STR, and warning().
Referenced by _play_camera_anims(), and play().
function get_anim_relative_start_time | ( | animation | , |
n_time | |||
) |
Definition at line 2192 of file scene_shared.gsc.
References is_looping().
function get_ents | ( | ) |
Definition at line 2982 of file scene_shared.gsc.
References _a_objects, a_ents, and ARRAY_ADD.
Referenced by _call_state_funcs(), and run_next().
function get_existing_ent | ( | str_name | , |
b_spawner_only | = false , |
||
b_nodes_and_structs | = false |
||
) |
Definition at line 3612 of file scene_shared.gsc.
References get(), and is_valid_ent().
Referenced by cSceneObject::_should_skip_anim(), cSceneObject::_should_skip_entity(), cSceneObject::_spawn(), cSceneObject::get_align_ent(), and get_align_ent().
function get_object_id | ( | ) |
Definition at line 2019 of file scene_shared.gsc.
References _n_object_id.
function get_objects | ( | str_type | ) |
Definition at line 2179 of file scene_shared.gsc.
References _a_objects, a_ret, and ARRAY_ADD.
function get_player_count | ( | str_scenedef | ) |
Description:
"Summary: returns the number of players defined for a scene"
"Single Player / Multi Player: shared"
"Function Name: get_player_count( str_scenedef )" "CallOn: Any"
"Mandatory Argument(s): <str_scenedef> scene definition name (from gdt)"
"Example:level scene::get_player_count( "my_scene" );"
"Function Name: get_player_count()" "CallOn: scene object"
"Example:s_scene scene::get_player_count();"
Definition at line 4809 of file scene_shared.gsc.
References _get_type_count().
Referenced by _trigger_init(), and _trigger_play().
function get_prop_count | ( | str_scenedef | ) |
Description:
"Summary: returns the number of props defined for a scene"
"Single Player / Multi Player: shared"
"Function Name: get_prop_count( str_scenedef )" "CallOn: Any"
"Mandatory Argument(s): <str_scenedef> scene definition name (from gdt)"
"Example:level scene::get_prop_count( "my_scene" );"
"Function Name: get_prop_count()" "CallOn: scene object"
"Example:s_scene scene::get_prop_count();"
Definition at line 4746 of file scene_shared.gsc.
References _get_type_count().
function get_root | ( | ) |
Definition at line 3002 of file scene_shared.gsc.
References _e_root.
function get_scenedef | ( | str_scenedef | ) |
Definition at line 4098 of file scene_shared.gsc.
References get_script_bundle().
Referenced by _get_type_count(), _init_instance(), _play_instance(), _trigger_play(), add_scene_func(), has_init_state(), init_scene_sequence_started(), and remove_scene_func().
function get_scenedefs | ( | str_type | = "scene" | ) |
Definition at line 4103 of file scene_shared.gsc.
References ARRAY_ADD, and get_script_bundles().
function get_state | ( | ) |
Definition at line 3133 of file scene_shared.gsc.
References _str_state.
function get_valid_object_defs | ( | ) |
function get_valid_objects | ( | ) |
Definition at line 3113 of file scene_shared.gsc.
References _a_objects, and ARRAY_ADD.
Referenced by initialize(), and play().
function get_vehicle_count | ( | str_scenedef | ) |
Description:
"Summary: returns the number of vehicles defined for a scene"
"Single Player / Multi Player: shared"
"Function Name: get_vehicle_count( str_scenedef )" "CallOn: Any"
"Mandatory Argument(s): <str_scenedef> scene definition name (from gdt)"
"Example:level scene::get_vehicle_count( "my_scene" );"
"Function Name: get_vehicle_count()" "CallOn: scene object"
"Example:s_scene scene::get_vehicle_count();"
Definition at line 4767 of file scene_shared.gsc.
References _get_type_count().
function has_init_state | ( | ) |
Definition at line 2915 of file scene_shared.gsc.
References _a_objects.
Referenced by play(), and run_next().
function has_init_state | ( | str_scenedef | ) |
Definition at line 4711 of file scene_shared.gsc.
References _has_init_state(), get_scenedef(), and IS_TRUE.
function has_next_scene | ( | ) |
Definition at line 2726 of file scene_shared.gsc.
References _s.
Referenced by cSceneObject::_finish_player(), and cSceneObject::_play_anim().
function has_player | ( | ) |
Definition at line 3454 of file scene_shared.gsc.
function init | ( | arg1 | , |
arg2 | , | ||
arg3 | , | ||
b_test_run | |||
) |
Description:
"Summary: Initializes a scene or multiple scenes"
"Single Player / Multi Player: shared"
"Function Name: init( str_val, str_key, ents )" "CallOn: level using KVP to specify the scene instances"
"Mandatory Argument(s): <str_val> value of the KVP of the scene entity"
"Mandatory Argument(s): <str_key> key of the KVP of the scene entity"
"Optional Argument(s): [ents] override the entities used for this scene"
"Example:level scene::init( "my_scenes", "targetname" );"
"Function Name: init( str_scenedef, ents )" "CallOn: level"
"Mandatory Argument(s): <str_scenedef> specify the scene name, will play all instances of this scene"
"Optional Argument(s): [ents] override the entities used for this scene"
"Example:level scene::init( "level1_scene_3" );"
"Function Name: init( str_scenedef, ents )" "CallOn: Any entity (script_origin, script_struct, ai, script_model, script_brushmodel, player)"
"Optional Argument(s): [str_scenedef] specify the scene name if needed"
"Optional Argument(s): [ents] override the entities used for this scene"
"Example:e_scene_root scene::init( "level1_scene_3" );"
"Function Name: init( ents, str_scenedef )" "CallOn: Any entity (script_origin, script_struct, ai, script_model, script_brushmodel, player)"
"Optional Argument(s): [ents] override the entities used for this scene"
"Optional Argument(s): [str_scenedef] specify the scene name if needed"
"Example:s_scene_object scene::init( array( e_guy1, e_guy2 ) );"
Definition at line 4206 of file scene_shared.gsc.
References _init_instance(), a_ents, and get_array().
function init | ( | str_scenedef | , |
s_scenedef | , | ||
e_align | , | ||
a_ents | , | ||
b_test_run | |||
) |
Definition at line 1904 of file scene_shared.gsc.
References _e_root, _n_request_time, _n_streamer_req, _s, _str_name, _str_notify_name, a_ents, add_object(), add_to_sync_list(), ARRAY_ADD, error(), get_valid_object_defs(), initialize(), is_skipping_scene(), IS_TRUE, MAKE_ARRAY, and new_object().
Referenced by __main__(), run_instances(), run_next(), and spawn().
function private init_scene_sequence_started | ( | b_started | ) |
Definition at line 3366 of file scene_shared.gsc.
References _s, get_scenedef(), IS_TRUE, update_scene_sequence(), and waittill_skip_sequence_completed().
Referenced by finish_skip_scene(), play(), run_next(), stop(), and trigger_scene_sequence_started().
function initialize | ( | a_ents | , |
b_playing | = false |
||
) |
Definition at line 1985 of file scene_shared.gsc.
References _a_objects, _call_state_funcs(), _str_name, _str_notify_name, _str_state, _testing, a_ents, assign_ents(), get_valid_objects(), set(), stop(), sync_with_client_scene(), and wait_till_scene_ready().
function is_active | ( | str_scenedef | ) |
Description:
"Summary: Checks if a scene is playing"
"Single Player / Multi Player: shared"
"Function Name: is_active( str_scenedef )" "CallOn: level or a scene instance"
"Optional Argument(s): [str_scenedef] The name of the scene to check"
"Example:level scene::is_active( "my_scene" );"
"Example:s_scene scene::is_active();"
Definition at line 4844 of file scene_shared.gsc.
References get_active_scene(), and get_active_scenes().
function is_capture_mode | ( | ) |
Definition at line 5052 of file scene_shared.gsc.
function is_igc | ( | ) |
Definition at line 4960 of file scene_shared.gsc.
Referenced by __init__(), cSceneObject::_finish_player(), cSceneObject::_play_anim(), cSceneObject::_play_shared_player_anim_for_player(), cSceneObject::_prepare(), cSceneObject::_spawn(), is_scene_shared(), play(), skip_scene(), cSceneObject::spawn_ent(), sync_with_client_scene(), and trigger_scene_sequence_started().
function is_igc_active | ( | ) |
function is_looping | ( | ) |
Definition at line 3043 of file scene_shared.gsc.
Referenced by get_anim_relative_start_time(), play(), cSceneObject::skip_anim_on_client(), and cSceneObject::skip_anim_on_server().
function is_player_anim_ending_early | ( | ) |
Definition at line 2216 of file scene_shared.gsc.
References _a_objects, and IS_EQUAL.
Referenced by cSceneObject::_finish_player().
function is_playing | ( | str_scenedef | ) |
Description:
"Summary: Checks if a scene is playing"
"Single Player / Multi Player: shared"
"Function Name: is_playing( str_scenedef )"
"Optional Argument(s): [str_scenedef] The name of the scene to check"
"Example:s_scene scene::is_playing( "my_scene" );"
"Example:s_scene scene::is_playing();"
Definition at line 4866 of file scene_shared.gsc.
References DEFAULT, get(), get_active_scene(), and IS_EQUAL.
Referenced by _play_instance().
function is_ready | ( | str_scenedef | ) |
Description:
"Summary: Checks if a scene is ready"
"Single Player / Multi Player: shared"
"Function Name: is_ready( str_scenedef )"
"Optional Argument(s): [str_scenedef] The name of the scene to check"
"Example:s_scene scene::is_ready( "my_scene" );"
"Example:s_scene scene::is_ready();"
Definition at line 4896 of file scene_shared.gsc.
References DEFAULT, get(), and get_active_scene().
function is_scene_shared | ( | ) |
Definition at line 3138 of file scene_shared.gsc.
References _a_objects, _s, is_igc(), and IS_TRUE.
Referenced by _skip_scene(), and play().
function private is_scene_shared_sequence | ( | ) |
Definition at line 3346 of file scene_shared.gsc.
References _s.
Referenced by cSceneObject::_finish_player(), play(), run_next(), and stop().
function is_skipping_in_progress | ( | ) |
Definition at line 5310 of file scene_shared.gsc.
function is_skipping_player_scene | ( | ) |
Definition at line 2721 of file scene_shared.gsc.
References _s, _str_mode, and IS_TRUE.
Referenced by run_next(), and skip_scene().
function is_skipping_scene | ( | ) |
Definition at line 2711 of file scene_shared.gsc.
References _s, _str_mode, and IS_TRUE.
Referenced by cSceneObject::_finish_player(), cSceneObject::_play_anim(), cSceneObject::_play_shared_player_anim_for_player(), cSceneObject::_should_skip_anim(), cSceneObject::_should_skip_entity(), init(), play(), run_next(), stop(), trigger_scene_sequence_started(), and wait_till_scene_ready().
function is_valid_ent | ( | ent | ) |
Definition at line 3676 of file scene_shared.gsc.
References is_dead_sentient().
Referenced by get_existing_ent().
function loop_camera_anim_to_set_up_for_capture | ( | ) |
Definition at line 2615 of file scene_shared.gsc.
References _play_camera_anims(), _s, and _wait_for_camera_animation().
Referenced by play().
cAwarenessSceneObject cSceneObject new_object | ( | ) |
Definition at line 1961 of file scene_shared.gsc.
Referenced by init().
function on_error | ( | ) |
Definition at line 3128 of file scene_shared.gsc.
References stop().
function on_load_wait | ( | ) |
Definition at line 3969 of file scene_shared.gsc.
References set(), and wait_network_frame().
Referenced by __main__().
function on_player_connect | ( | ) |
Definition at line 5559 of file scene_shared.gsc.
References watch_scene_skip_requests().
Referenced by __init__().
function on_player_disconnect | ( | ) |
Definition at line 5567 of file scene_shared.gsc.
References set_igc_active().
Referenced by __init__().
function play | ( | arg1 | , |
arg2 | , | ||
arg3 | , | ||
b_test_run | = false , |
||
str_state | , | ||
str_mode | = "" |
||
) |
Description:
"Summary: Plays a scene or multiple scenes"
"Single Player / Multi Player: shared"
"Function Name: play( str_val, str_key, ents )" "CallOn: level using KVP to specify the scene instances"
"Mandatory Argument(s): <str_val> value of the KVP of the scene entity"
"Mandatory Argument(s): <str_key> key of the KVP of the scene entity"
"Optional Argument(s): [ents] override the entities used for this scene"
"Example:level scene::play( "my_scenes", "targetname" );"
"Function Name: play( str_scenedef, ents )" "CallOn: level"
"Mandatory Argument(s): <str_scenedef> specify the scene name, will play all instances of this scene"
"Optional Argument(s): [ents] override the entities used for this scene"
"Example:level scene::play( "level1_scene_3" );"
"Function Name: play( str_scenedef, ents )" "CallOn: Any entity (script_origin, script_struct, ai, script_model, script_brushmodel, player)"
"Optional Argument(s): [str_scenedef] specify the scene name if needed"
"Optional Argument(s): [ents] override the entities used for this scene"
"Example:e_scene_root scene::play( "level1_scene_3" );"
"Function Name: play( ents, str_scenedef )" "CallOn: Any entity (script_origin, script_struct, ai, script_model, script_brushmodel, player)"
"Optional Argument(s): [ents] override the entities used for this scene"
"Optional Argument(s): [str_scenedef] specify the scene name if needed"
"Example:s_scene_object scene::play( array( e_guy1, e_guy2 ) );"
Definition at line 4407 of file scene_shared.gsc.
References _play_instance(), a_ents, get_active_scenes(), and get_array().
function new_object::play | ( | str_alert_state | ) |
Definition at line 3455 of file scene_shared.gsc.
References _a_objects, and IS_EQUAL.
function play | ( | str_awareness_state | = "low_alert" | ) |
Definition at line 3562 of file scene_shared.gsc.
References _a_objects, _call_state_funcs(), _str_name, _str_state, get_valid_objects(), has_init_state(), is_looping(), set(), stop(), and wait_till_scene_ready().
function play | ( | str_state | = "play" , |
a_ents | , | ||
b_testing | = false , |
||
str_mode | = "" |
||
) |
Definition at line 2242 of file scene_shared.gsc.
References _a_objects, _call_state_funcs(), _e_root, _n_streamer_req, _play_camera_anims(), _s, _stop_camera_anims(), _str_mode, _str_name, _str_notify_name, _str_state, _testing, _wait_for_camera_animation(), a_ents, assign_ents(), clear(), get_align_ent(), get_valid_objects(), has_init_state(), init_scene_sequence_started(), initialize(), is_igc(), is_looping(), is_scene_shared(), is_scene_shared_sequence(), is_skipping_scene(), IS_TRUE, loop_camera_anim_to_set_up_for_capture(), run_next(), set(), skip_scene(), spawn_model(), stop(), streamer_request_completed(), sync_with_client_scene(), trigger_scene_sequence_started(), update_scene_sequence(), and wait_till_scene_ready().
Referenced by cSceneObject::_play_anim(), cSceneObject::_play_shared_player_anim_for_player(), _trigger_play(), cSceneObject::do_death_anims(), run_instances(), run_next(), skipto_end(), and skipto_end_noai().
function private prepare_generic_model_anim | ( | ent | ) |
Definition at line 45 of file scene_shared.gsc.
References IS_EQUAL.
Referenced by cSceneObject::_prepare().
function private prepare_player_model_anim | ( | ent | ) |
Definition at line 35 of file scene_shared.gsc.
References IS_EQUAL.
Referenced by cSceneObject::_prepare().
function remove_from_sync_list | ( | ) |
function remove_invalid_scene_objects | ( | s_scenedef | ) |
Definition at line 3886 of file scene_shared.gsc.
function remove_player_linked_scene | ( | linked_scene_str | ) |
Definition at line 5293 of file scene_shared.gsc.
function remove_scene_func | ( | str_scenedef | , |
func | , | ||
str_state | = "play" |
||
) |
Description:
"Summary: Removes a function to be called when a scene starts"
"Single Player / Multi Player: shared"
"Function Name: remove_scene_func( str_scenedef, func, str_state = "play" )" "CallOn: level"
"Mandatory Argument(s): <str_scenedef> Name of scene"
"Mandatory Argument(s): <func> function to remove"
"Optional Argument(s): [str_state] set to "init" or "done" if you want to the function to get removed from one of those states"
"Example:level scene::init( "my_scenes", "targetname" );"
Definition at line 4078 of file scene_shared.gsc.
References DEFAULT, and get_scenedef().
function run_instances | ( | ) |
Definition at line 3977 of file scene_shared.gsc.
References get_script_bundle_instances(), init(), play(), SPAWNFLAG, SPAWNFLAG_SCRIPTBUNDLE_INIT, and SPAWNFLAG_SCRIPTBUNDLE_PLAY.
Referenced by __main__().
function run_next | ( | ) |
Definition at line 2731 of file scene_shared.gsc.
References _e_root, _s, _str_mode, allows_multiple(), error(), get_ents(), has_init_state(), init(), init_scene_sequence_started(), IS_EQUAL, is_scene_shared_sequence(), is_skipping_player_scene(), is_skipping_scene(), IS_TRUE, play(), streamer_request_completed(), and waittill_any_timeout().
Referenced by play().
function scene_disable_player_stuff | ( | b_hide_hud | = true | ) |
Definition at line 4969 of file scene_shared.gsc.
References set_igc_active(), show_hud(), and wait_network_frame().
Referenced by _play_camera_anim_on_player(), and cSceneObject::_prepare_player().
function scene_enable_player_stuff | ( | b_hide_hud | = true | ) |
Definition at line 4989 of file scene_shared.gsc.
References set_igc_active(), and show_hud().
Referenced by cSceneObject::_finish_player(), and _stop_camera_anim_on_player().
function set_igc_active | ( | b_in_igc | ) |
Definition at line 5028 of file scene_shared.gsc.
References get(), set(), and updateIGCViewtime().
Referenced by on_player_disconnect(), player_lock_control(), player_unlock_control(), scene_disable_player_stuff(), and scene_enable_player_stuff().
function should_skip_linked_to_players_scene | ( | ) |
Definition at line 3336 of file scene_shared.gsc.
Referenced by _play_instance().
function should_skip_scene_loop | ( | ) |
Definition at line 5376 of file scene_shared.gsc.
References any_button_pressed(), clear_scene_skipping_ui(), IS_TRUE, and skip_scene().
Referenced by watch_scene_skip_requests().
function should_spectate_on_join | ( | ) |
Definition at line 5066 of file scene_shared.gsc.
References IS_TRUE.
function skip_scene | ( | b_sequence | ) |
Definition at line 3161 of file scene_shared.gsc.
References _call_state_funcs(), _s, _skip_scene(), _str_state, finish_skip_scene(), is_igc(), is_skipping_player_scene(), IS_TRUE, screen_fade(), and wait_till_scene_ready().
Referenced by _play_instance(), play(), and should_skip_scene_loop().
function skip_scene | ( | scene_name | , |
b_sequence | , | ||
b_player_scene | , | ||
b_check_linked_scene | |||
) |
Definition at line 5081 of file scene_shared.gsc.
References _skip_scene(), get_active_scenes(), get_array(), and IS_TRUE.
function skipto_end | ( | arg1 | , |
arg2 | , | ||
arg3 | , | ||
n_time | , | ||
b_include_players | = false |
||
) |
Description:
"Summary: Skipts a scene or multiple scenes to the end state (last frame or looping animation). Look at scene::play() for all the various ways this can be called."
"Single Player / Multi Player: shared"
"Optional Argument(s): [n_time] Value between 0 and 1 to only skip through a portion of the scene. 0 will start at the beginning of the scene, 1 skips completely to the end."
"Example:level scene::skipto_end( "my_scene" );"
Definition at line 4563 of file scene_shared.gsc.
References play().
function skipto_end_noai | ( | arg1 | , |
arg2 | , | ||
arg3 | , | ||
n_time | |||
) |
Description:
"Summary: Skipts a scene or multiple scenes to the end state (last frame or looping animation), but skips AI. Look at scene::play() for all the various ways this can be called."
"Single Player / Multi Player: shared"
"Optional Argument(s): [n_time] Value between 0 and 1 to only skip through a portion of the scene. 0 will start at the beginning of the scene, 1 skips completely to the end."
"Example:level scene::skipto_end_noai( "my_scene" );"
Definition at line 4587 of file scene_shared.gsc.
References play().
function spawn | ( | arg1 | , |
arg2 | , | ||
arg3 | , | ||
arg4 | , | ||
b_test_run | |||
) |
Description:
"Summary: Spawns a scene"
"Single Player / Multi Player: shared"
"Function Name: spawn( str_scenedef, v_origin, v_angles, ents )" "CallOn: NA <br/>"Mandatory Argument(s): <str_scenedef> Name of scene to spawn" <br/>"Optional Argument(s): [v_origin] The origin to spawn the scene at - defaults to (0, 0, 0)" <br/>"Optional Argument(s): [v_angles] The angles to spawn the scene at - defaults to (0, 0, 0)" <br/>"Optional Argument(s): [a_ents] Entities to use for the scene" <br/>"Example:level scene::spawn( "my_scene", (99, 45, 156) );"
"Function Name: spawn( str_scenedef, ents, v_origin, v_angles )" "CallOn: NA <br/>"Mandatory Argument(s): <str_scenedef> Name of scene to spawn" <br/>"Optional Argument(s): [a_ents] Entities to use for the scene" <br/>"Optional Argument(s): [v_origin] The origin to spawn the scene at - defaults to (0, 0, 0)" <br/>"Optional Argument(s): [v_angles] The angles to spawn the scene at - defaults to (0, 0, 0)" <br/>"Example:level scene::spawn( "my_scene", array( my_ent1, my_ent2 ) );"
Definition at line 4141 of file scene_shared.gsc.
References a_ents, and init().
Referenced by cSceneObject::spawn_ent().
function stop | ( | arg1 | , |
arg2 | , | ||
arg3 | |||
) |
Description:
"Summary: Stops a scene or multiple scenes"
"Single Player / Multi Player: shared"
"Function Name: stop( str_val, str_key, b_clear )" "CallOn: level using KVP to specify the scene instances"
"Mandatory Argument(s): <str_val> value of the KVP of the scene entity"
"Mandatory Argument(s): <str_key> key of the KVP of the scene entity"
"Optional Argument(s): [b_clear] optionally delete the ents if they were spawned by the scene, regardless of options in scene definition"
"Example:level scene::stop( "my_scenes", "targetname" );"
"Function Name: stop( str_scenedef, b_clear )" "CallOn: level"
"Mandatory Argument(s): <str_scenedef> specify the scene name, will stop all instances of this scene"
"Optional Argument(s): [b_clear] optionally delete the ents if they were spawned by the scene, regardless of options in scene definition"
"Example:level scene::stop( "level1_scene_3" );"
"Function Name: stop( str_scenedef, b_clear )" "CallOn: Any entity (script_origin, script_struct, ai, script_model, script_brushmodel, player)"
"Optional Argument(s): [str_scenedef] specify the scene name if multiple scenes are running on the entity"
"Optional Argument(s): [b_clear] optionally delete the ents if they were spawned by the scene, regardless of options in scene definition"
"Example:e_my_scene scene::stop( "level1_scene_3" );"
"Function Name: stop( b_clear, str_scenedef )" "CallOn: Any entity (script_origin, script_struct, ai, script_model, script_brushmodel, player)"
"Optional Argument(s): [b_clear] optionally delete the ents if they were spawned by the scene, regardless of options in scene definition"
"Optional Argument(s): [str_scenedef] specify the scene name if multiple scenes are running on the entity"
"Example:s_scene_object scene::stop( true );"
Definition at line 4632 of file scene_shared.gsc.
References _stop_instance(), get_active_scenes(), and get_array().
function stop | ( | b_clear | = false , |
b_finished | = false |
||
) |
Definition at line 2826 of file scene_shared.gsc.
References _a_objects, _call_state_funcs(), _e_root, _release_object(), _s, _stop_camera_anims(), _str_name, _str_notify_name, _str_state, clear(), init_scene_sequence_started(), is_scene_shared_sequence(), is_skipping_scene(), IS_TRUE, remove_from_sync_list(), streamer_request_completed(), and sync_with_client_scene().
Referenced by _trigger_stop(), initialize(), on_error(), play(), and cSceneObject::skip_anim_on_server().
function streamer_request_completed | ( | ) |
Definition at line 2810 of file scene_shared.gsc.
References _s.
Referenced by play(), run_next(), and stop().
function sync_with_client_scene | ( | str_state | , |
b_test_run | = false |
||
) |
Definition at line 2025 of file scene_shared.gsc.
References _s, is_igc(), set(), and wait_till_scene_ready().
Referenced by initialize(), play(), and stop().
function sync_with_other_scenes | ( | ) |
Definition at line 3104 of file scene_shared.gsc.
References _n_request_time, _s, and IS_TRUE.
Referenced by wait_till_scene_ready().
function synced_delete | ( | ) |
Definition at line 3681 of file scene_shared.gsc.
References WAIT_SERVER_FRAME.
Referenced by cSceneObject::finish().
function private trigger_scene_sequence_started | ( | scene_object | , |
entity | |||
) |
Definition at line 3427 of file scene_shared.gsc.
References _s, _str_state, init_scene_sequence_started(), is_igc(), is_skipping_scene(), and IS_TRUE.
Referenced by play().
function private update_scene_sequence | ( | ) |
Definition at line 3351 of file scene_shared.gsc.
References _s.
Referenced by init_scene_sequence_started(), and play().
function updateIGCViewtime | ( | b_in_igc | ) |
Definition at line 5007 of file scene_shared.gsc.
Referenced by set_igc_active().
function wait_till_scene_ready | ( | o_exclude | , |
b_ignore_streamer | = false |
||
) |
Definition at line 3048 of file scene_shared.gsc.
References _a_objects, _n_streamer_req, _s, a_objects, is_skipping_scene(), set(), streamer_wait(), and sync_with_other_scenes().
Referenced by _call_state_funcs(), initialize(), play(), skip_scene(), and sync_with_client_scene().
function wait_until_spectate_on_join_completes | ( | ) |
Definition at line 5071 of file scene_shared.gsc.
References IS_TRUE.
function waittill_skip_sequence_completed | ( | ) |
Definition at line 5302 of file scene_shared.gsc.
Referenced by init_scene_sequence_started().
function watch_scene_ending | ( | ) |
Definition at line 5356 of file scene_shared.gsc.
References clear_scene_skipping_ui().
Referenced by watch_scene_skip_requests().
function watch_scene_skip_requests | ( | ) |
Definition at line 5315 of file scene_shared.gsc.
References should_skip_scene_loop(), watch_scene_ending(), and watch_scene_skipping().
Referenced by on_player_connect().
function watch_scene_skipping | ( | ) |
Definition at line 5366 of file scene_shared.gsc.
References clear_scene_skipping_ui().
Referenced by watch_scene_skip_requests().
cSceneObject _e_root |
Referenced by _call_state_funcs(), get_align_ent(), get_root(), init(), play(), run_next(), and stop().
var _n_object_id |
Definition at line 1887 of file scene_shared.gsc.
Referenced by constructor(), and get_object_id().
var _n_request_time |
Definition at line 1890 of file scene_shared.gsc.
Referenced by add_to_sync_list(), init(), remove_from_sync_list(), and sync_with_other_scenes().
var _n_streamer_req |
Definition at line 1891 of file scene_shared.gsc.
Referenced by constructor(), init(), play(), and wait_till_scene_ready().
var _str_mode |
Definition at line 1888 of file scene_shared.gsc.
Referenced by constructor(), is_skipping_player_scene(), is_skipping_scene(), play(), and run_next().
var _str_notify_name |
Definition at line 1889 of file scene_shared.gsc.
Referenced by _call_state_funcs(), init(), initialize(), play(), and stop().
var _str_state |
Definition at line 1886 of file scene_shared.gsc.
Referenced by get_state(), initialize(), play(), skip_scene(), stop(), and trigger_scene_sequence_started().
function _assign_ents_by_type a_objects |
Definition at line 2101 of file scene_shared.gsc.
Referenced by assign_ents(), and wait_till_scene_ready().
function wait_till_objects_ready array |
Definition at line 3086 of file scene_shared.gsc.