![]() |
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.
Macros | |
#define | KILL_DAMAGE_VO_DURATION 2 |
#define | LOCATION_NUM_UNTIL_REPEAT 3 |
#define | RANDOM_PLAYER 4 |
#define | ZOMBIE_ANNOUNCER_PREFIX "zmba" |
Functions | |
function | __init__ () |
function | areNearbySpeakersActive (radius=1000) |
function | CheckForValidAIType (e_victim) |
function | CheckForValidMod (str_meansofdeath) |
function | CheckForValidWeapon (weapon) |
function | checkIntValid (value, defaultValue=0) |
function | checkStringTrue (str) |
function | checkStringValid (str) |
function | create_and_play_dialog (category, subcategory, force_variant) |
function | custom_kill_damaged_VO (player) |
function | do_player_or_npc_playvox (sound_to_play, category, subcategory) |
function | exert_timer () |
function | get_mod_type (impact, mod, weapon, zombie, instakill, dist, player) |
function | get_response_chance (event) |
function | getRandomCharacter (ignore) |
function | getSpecificCharacter (charIndex) |
function | init_audio_functions () |
function | is_last_zombie () |
function | isAnyoneTalking () |
function | isCurrentSpeakerAbleToTalk (player) |
function | isVoxOnCooldown (player, category, subcategory) |
function | loadPlayerVoiceCategories (table) |
function | musicState_Create (stateName, playType=PLAYTYPE_REJECT, musName1, musName2, musName3, musName4, musName5, musName6) |
function | networkSafeReset () |
function | oh_shit_vox () |
function | player_killstreak_timer () |
function | player_zombie_kill_vox (hit_location, player, mod, zombie) |
function | playerExert (exert, notifywait=false) |
function | playState (state) |
function | secretUse (notify_string, color, qualifier_func, arg1, arg2) |
function | SetExertVoice (exert_id) |
function | setup_hero_rival (player, hero, rival, category, type) |
function | setup_response_line (player, category, subcategory) |
function | setup_response_line_override (player, category, subcategory) |
function | shouldPlayerSpeak (player, category, subcategory, percentage) |
function | sndAnnouncer_Init () |
function | sndAnnouncerPlayVox (type, player) |
function | sndAnnouncerVoxAdd (type, suffix) |
function | sndConversation_AddLine (name, line, player_or_random, ignorePlayer=5) |
function | sndConversation_Init (name, specialEndon=undefined) |
function | sndConversation_Play (name) |
function | sndConvoInterrupt () |
function | sndConvoStopCurrentConversation () |
function | sndCurrentLocationArray (current_array, activeZone, numCut, num) |
function | sndIsNetworkSafe () |
function | sndLocationQueue (zone) |
function | sndLocationShouldPlay (array, activeZone) |
function | sndMusicSystem_CreateState (state, stateName, playtype=PLAYTYPE_REJECT, delay=0) |
function | sndMusicSystem_EEOverride (arg1, arg2) |
function | sndMusicSystem_EESetup (state, origin1, origin2, origin3, origin4, origin5) |
function | sndMusicSystem_EEWait (origin, state) |
function | sndMusicSystem_IsAbleToPlay () |
function | sndMusicSystem_Locations (locationArray) |
function | sndMusicSystem_LocationsInit (locationArray) |
function | sndMusicSystem_PlayState (state) |
function | sndMusicSystem_QueueState (state) |
function | sndMusicSystem_StopAndFlush () |
function | sndPerksJingles_Cooldown () |
function | sndPerksJingles_Player (type) |
function | sndPerksJingles_Timer () |
function | sndPlayerHitAlert (e_victim, str_meansofdeath, e_inflictor, weapon) |
function | sndPlayerHitAlert_PlaySound (str_alias) |
function | sndRadio_Override (arg1, arg2) |
function | sndRadioSetup (alias_prefix, is_sequential=false, origin1, origin2, origin3, origin4, origin5) |
function | sndRadioWait (origin, radio, is_sequential, num) |
function | timer_actual (kills, time) |
function | vo_clear_underwater () |
function | waitPlaybackTime (alias) |
function | water_vox () |
function | zmbAIVox_AmbientDelay () |
function | zmbAIVox_NotifyConvert () |
function | zmbAIVox_PlayDeath () |
function | zmbAIVox_PlayElectrocution () |
function | zmbAIVox_PlayVox (zombie, type, override, priority, delayAmbientVox=false) |
function | zmbVox () |
function | zmbVoxAdd (category, subcategory, suffix, percentage, response, delayBeforePlayAgain=0) |
function | zmbVoxCreate () |
function | zmbVoxGetLineVariant (prefix, suffix, force_variant) |
function | zmbVoxInitSpeaker (speaker, prefix, ent) |
function | zombie_behind_vox () |
#define KILL_DAMAGE_VO_DURATION 2 |
Definition at line 490 of file _zm_audio.gsc.
#define LOCATION_NUM_UNTIL_REPEAT 3 |
Definition at line 1180 of file _zm_audio.gsc.
#define RANDOM_PLAYER 4 |
Definition at line 1657 of file _zm_audio.gsc.
#define ZOMBIE_ANNOUNCER_PREFIX "zmba" |
Definition at line 1294 of file _zm_audio.gsc.
function __init__ | ( | ) |
Definition at line 27 of file _zm_audio.gsc.
References get_mod_type(), init_audio_functions(), on_connect(), register(), sndAnnouncer_Init(), VERSION_SHIP, and zmbVox().
function areNearbySpeakersActive | ( | radius | = 1000 | ) |
Definition at line 939 of file _zm_audio.gsc.
References is_player(), IS_TRUE, and player_is_in_laststand().
Referenced by do_player_or_npc_playvox().
function CheckForValidAIType | ( | e_victim | ) |
Definition at line 1985 of file _zm_audio.gsc.
Referenced by sndPlayerHitAlert().
function CheckForValidMod | ( | str_meansofdeath | ) |
Definition at line 1963 of file _zm_audio.gsc.
Referenced by sndPlayerHitAlert().
function CheckForValidWeapon | ( | weapon | ) |
Definition at line 1981 of file _zm_audio.gsc.
Referenced by sndPlayerHitAlert().
function checkIntValid | ( | value | , |
defaultValue | = 0 |
||
) |
Definition at line 570 of file _zm_audio.gsc.
Referenced by loadPlayerVoiceCategories().
function checkStringTrue | ( | str | ) |
Definition at line 558 of file _zm_audio.gsc.
Referenced by loadPlayerVoiceCategories().
function checkStringValid | ( | str | ) |
Definition at line 552 of file _zm_audio.gsc.
Referenced by loadPlayerVoiceCategories().
function create_and_play_dialog | ( | category | , |
subcategory | , | ||
force_variant | |||
) |
Definition at line 603 of file _zm_audio.gsc.
References do_player_or_npc_playvox(), IS_TRUE, shouldPlayerSpeak(), and zmbVoxGetLineVariant().
Referenced by box_encounter_vo(), debris_think(), do_player_general_vox(), dog_death(), door_buy(), give(), give_melee_weapon(), give_perk_presentation(), handle_post_board_repair_rewards(), jump_pad_move(), melee_weapon_think(), oh_shit_vox(), play_dog_round(), play_door_dialog(), play_level_start_vox_delayed(), play_raps_round(), play_wasp_round(), play_weapon_vo(), player_damage_override(), player_laststand(), player_revive_monitor(), player_track_ammo_count(), player_zombie_kill_vox(), powerup_vo(), quantum_bomb_give_nearest_perk_result(), quantum_bomb_open_nearest_door_result(), raps_death(), round_one_up(), setup_hero_rival(), setup_response_line(), setup_thundergun_vox(), tesla_killstreak_sound(), timer_actual(), trap_use_think(), treasure_chest_move(), treasure_chest_think(), vending_trigger_think(), vending_weapon_upgrade(), wasp_death(), weapon_spawn_think(), widows_wine_override_melee_wallbuy_purchase(), widows_wine_override_wallbuy_purchase(), zombie_damage(), and zombie_death_event().
function custom_kill_damaged_VO | ( | player | ) |
Definition at line 491 of file _zm_audio.gsc.
References KILL_DAMAGE_VO_DURATION.
function do_player_or_npc_playvox | ( | sound_to_play | , |
category | , | ||
subcategory | |||
) |
Definition at line 640 of file _zm_audio.gsc.
References areNearbySpeakersActive(), exists(), get(), IS_TRUE, set_to_player(), setup_response_line(), and setup_response_line_override().
Referenced by create_and_play_dialog().
function exert_timer | ( | ) |
Definition at line 90 of file _zm_audio.gsc.
Referenced by playerExert().
function get_mod_type | ( | impact | , |
mod | , | ||
weapon | , | ||
zombie | , | ||
instakill | , | ||
dist | , | ||
player | |||
) |
Definition at line 343 of file _zm_audio.gsc.
References is_explosive_damage(), is_headshot(), is_placeable_mine(), and IS_TRUE.
Referenced by __init__().
function get_response_chance | ( | event | ) |
Definition at line 334 of file _zm_audio.gsc.
function getRandomCharacter | ( | ignore | ) |
Definition at line 1783 of file _zm_audio.gsc.
References array, and ignore().
Referenced by sndConversation_Play().
function getSpecificCharacter | ( | charIndex | ) |
Definition at line 1797 of file _zm_audio.gsc.
Referenced by sndConversation_Play().
function init_audio_functions | ( | ) |
Definition at line 135 of file _zm_audio.gsc.
References oh_shit_vox(), player_killstreak_timer(), and zombie_behind_vox().
Referenced by __init__().
function is_last_zombie | ( | ) |
Definition at line 1554 of file _zm_audio.gsc.
References get_current_zombie_count().
Referenced by zmbAIVox_PlayVox().
function isAnyoneTalking | ( | ) |
Definition at line 1806 of file _zm_audio.gsc.
References IS_TRUE.
Referenced by sndConversation_Play().
function isCurrentSpeakerAbleToTalk | ( | player | ) |
Definition at line 1770 of file _zm_audio.gsc.
References IS_TRUE.
Referenced by sndConversation_Play().
function isVoxOnCooldown | ( | player | , |
category | , | ||
subcategory | |||
) |
Definition at line 871 of file _zm_audio.gsc.
Referenced by shouldPlayerSpeak().
function loadPlayerVoiceCategories | ( | table | ) |
Definition at line 515 of file _zm_audio.gsc.
References checkIntValid(), checkStringTrue(), checkStringValid(), IS_TRUE, RESPOND_APPEND, RESPONSE_PERCENTAGE, VOX_TABLE_COL_CATEGORY, VOX_TABLE_COL_DELAYBEFOREPLAY, VOX_TABLE_COL_PERCENTAGE, VOX_TABLE_COL_RESPONSE, VOX_TABLE_COL_SUBCATEGORY, VOX_TABLE_COL_SUFFIX, and zmbVoxAdd().
Referenced by custom_add_vox().
function musicState_Create | ( | stateName | , |
playType | = PLAYTYPE_REJECT , |
||
musName1 | , | ||
musName2 | , | ||
musName3 | , | ||
musName4 | , | ||
musName5 | , | ||
musName6 | |||
) |
Definition at line 991 of file _zm_audio.gsc.
References add(), array, and PLAYTYPE_NONE.
Referenced by setupMusic().
function networkSafeReset | ( | ) |
Definition at line 1530 of file _zm_audio.gsc.
References wait_network_frame().
Referenced by sndIsNetworkSafe().
function oh_shit_vox | ( | ) |
Definition at line 224 of file _zm_audio.gsc.
References create_and_play_dialog(), and get_round_enemy_array().
Referenced by init_audio_functions().
function player_killstreak_timer | ( | ) |
Definition at line 259 of file _zm_audio.gsc.
References IS_TRUE, and timer_actual().
Referenced by init_audio_functions().
function player_zombie_kill_vox | ( | hit_location | , |
player | , | ||
mod | , | ||
zombie | |||
) |
Definition at line 306 of file _zm_audio.gsc.
References create_and_play_dialog(), death(), and IS_TRUE.
Referenced by zombie_death_points().
function playerExert | ( | exert | , |
notifywait | = false |
||
) |
Definition at line 47 of file _zm_audio.gsc.
References exert_timer(), and IS_TRUE.
function playState | ( | state | ) |
Definition at line 1081 of file _zm_audio.gsc.
References IS_TRUE.
Referenced by sndMusicSystem_PlayState(), and sndMusicSystem_QueueState().
function secretUse | ( | notify_string | , |
color | , | ||
qualifier_func | , | ||
arg1 | , | ||
arg2 | |||
) |
Definition at line 1282 of file _zm_audio.gsc.
function SetExertVoice | ( | exert_id | ) |
function setup_hero_rival | ( | player | , |
hero | , | ||
rival | , | ||
category | , | ||
type | |||
) |
Definition at line 762 of file _zm_audio.gsc.
References create_and_play_dialog(), and IS_TRUE.
Referenced by setup_response_line_override().
function setup_response_line | ( | player | , |
category | , | ||
subcategory | |||
) |
Definition at line 816 of file _zm_audio.gsc.
References create_and_play_dialog(), RESPOND_APPEND, and RESPONSE_LINE_MAX_DIST.
Referenced by do_player_or_npc_playvox().
function setup_response_line_override | ( | player | , |
category | , | ||
subcategory | |||
) |
Definition at line 732 of file _zm_audio.gsc.
References DEMPSEY_CHAR_INDEX_R, NIKOLAI_CHAR_INDEX_R, RICHTOFEN_CHAR_INDEX_R, setup_hero_rival(), and TAKEO_CHAR_INDEX_R.
Referenced by do_player_or_npc_playvox().
function shouldPlayerSpeak | ( | player | , |
category | , | ||
subcategory | , | ||
percentage | |||
) |
Definition at line 835 of file _zm_audio.gsc.
References get_player_index(), is_player(), IS_TRUE, isVoxOnCooldown(), player_is_in_laststand(), and PLAYER_PREFIX.
Referenced by create_and_play_dialog().
function sndAnnouncer_Init | ( | ) |
Definition at line 1295 of file _zm_audio.gsc.
References sndAnnouncerVoxAdd(), and ZOMBIE_ANNOUNCER_PREFIX.
Referenced by __init__().
function sndAnnouncerPlayVox | ( | type | , |
player | |||
) |
Definition at line 1319 of file _zm_audio.gsc.
References IS_TRUE, spawn(), and WAIT_SERVER_FRAME.
Referenced by dog_round_spawning(), hide_chest(), powerup_grab(), powerup_zombie_grab(), and start_fire_sale().
function sndAnnouncerVoxAdd | ( | type | , |
suffix | |||
) |
function sndConversation_AddLine | ( | name | , |
line | , | ||
player_or_random | , | ||
ignorePlayer | = 5 |
||
) |
Definition at line 1668 of file _zm_audio.gsc.
References array, ARRAY_ADD, and name.
Referenced by sndConversations().
function sndConversation_Init | ( | name | , |
specialEndon | = undefined |
||
) |
Definition at line 1658 of file _zm_audio.gsc.
Referenced by sndConversations().
function sndConversation_Play | ( | name | ) |
Definition at line 1691 of file _zm_audio.gsc.
References getRandomCharacter(), getSpecificCharacter(), IS_TRUE, isAnyoneTalking(), isCurrentSpeakerAbleToTalk(), name, RANDOM_PLAYER, sndConvoInterrupt(), and waitPlaybackTime().
Referenced by sndConvo1(), sndConvo2(), sndConvo3(), and sndConvo4().
function sndConvoInterrupt | ( | ) |
Definition at line 1818 of file _zm_audio.gsc.
References sndConvoStopCurrentConversation().
Referenced by sndConversation_Play().
function sndConvoStopCurrentConversation | ( | ) |
Definition at line 1743 of file _zm_audio.gsc.
Referenced by sndConvoInterrupt().
function sndCurrentLocationArray | ( | current_array | , |
activeZone | , | ||
numCut | , | ||
num | |||
) |
Definition at line 1246 of file _zm_audio.gsc.
Referenced by sndMusicSystem_Locations().
function sndIsNetworkSafe | ( | ) |
Definition at line 1538 of file _zm_audio.gsc.
References networkSafeReset().
Referenced by zmbAIVox_PlayVox().
function sndLocationQueue | ( | zone | ) |
Definition at line 1263 of file _zm_audio.gsc.
References PLAYTYPE_ROUND.
Referenced by sndLocationShouldPlay().
function sndLocationShouldPlay | ( | array | , |
activeZone | |||
) |
Definition at line 1220 of file _zm_audio.gsc.
References any_player_in_zone(), array, PLAYTYPE_ROUND, and sndLocationQueue().
Referenced by sndMusicSystem_Locations().
function sndMusicSystem_CreateState | ( | state | , |
stateName | , | ||
playtype | = PLAYTYPE_REJECT , |
||
delay | = 0 |
||
) |
Definition at line 1020 of file _zm_audio.gsc.
function sndMusicSystem_EEOverride | ( | arg1 | , |
arg2 | |||
) |
Definition at line 1279 of file _zm_audio.gsc.
function sndMusicSystem_EESetup | ( | state | , |
origin1 | , | ||
origin2 | , | ||
origin3 | , | ||
origin4 | , | ||
origin5 | |||
) |
Definition at line 1273 of file _zm_audio.gsc.
function sndMusicSystem_EEWait | ( | origin | , |
state | |||
) |
Definition at line 1276 of file _zm_audio.gsc.
function sndMusicSystem_IsAbleToPlay | ( | ) |
Definition at line 1166 of file _zm_audio.gsc.
function sndMusicSystem_Locations | ( | locationArray | ) |
Definition at line 1189 of file _zm_audio.gsc.
References LOCATION_NUM_UNTIL_REPEAT, sndCurrentLocationArray(), sndLocationShouldPlay(), and sndMusicSystem_PlayState().
Referenced by sndMusicSystem_LocationsInit().
function sndMusicSystem_LocationsInit | ( | locationArray | ) |
Definition at line 1181 of file _zm_audio.gsc.
References sndMusicSystem_Locations().
function sndMusicSystem_PlayState | ( | state | ) |
Definition at line 1042 of file _zm_audio.gsc.
References IS_TRUE, playState(), PLAYTYPE_GAMEEND, PLAYTYPE_QUEUE, PLAYTYPE_REJECT, PLAYTYPE_ROUND, sndMusicSystem_QueueState(), and sndMusicSystem_StopAndFlush().
Referenced by clock_timer(), dog_round_aftermath(), dog_round_start(), end_game(), power_electric_switch(), raps_round_aftermath(), raps_round_start(), round_think(), round_wait(), sndFirstDoor(), sndMusicOnKillRound(), sndMusicSystem_Locations(), teleport_core_think(), wasp_round_aftermath(), and wasp_round_start().
function sndMusicSystem_QueueState | ( | state | ) |
Definition at line 1124 of file _zm_audio.gsc.
References IS_TRUE, and playState().
Referenced by sndMusicSystem_PlayState().
function sndMusicSystem_StopAndFlush | ( | ) |
Definition at line 1155 of file _zm_audio.gsc.
Referenced by clock_timer(), and sndMusicSystem_PlayState().
function sndPerksJingles_Cooldown | ( | ) |
Definition at line 1639 of file _zm_audio.gsc.
Referenced by sndPerksJingles_Player().
function sndPerksJingles_Player | ( | type | ) |
Definition at line 1598 of file _zm_audio.gsc.
References IS_TRUE, PERKSACOLA_JINGLE, PERKSACOLA_STINGER, PLAYTYPE_SPECIAL, and sndPerksJingles_Cooldown().
Referenced by sndPerksJingles_Timer(), vending_trigger_think(), and vending_weapon_upgrade().
function sndPerksJingles_Timer | ( | ) |
Definition at line 1579 of file _zm_audio.gsc.
References IS_TRUE, PERKSACOLA_JINGLE, PERKSACOLA_PROBABILITY, PERKSACOLA_WAIT_TIME, and sndPerksJingles_Player().
Referenced by vending_trigger_think().
function sndPlayerHitAlert | ( | e_victim | , |
str_meansofdeath | , | ||
e_inflictor | , | ||
weapon | |||
) |
Definition at line 1927 of file _zm_audio.gsc.
References CheckForValidAIType(), CheckForValidMod(), CheckForValidWeapon(), IS_TRUE, and sndPlayerHitAlert_PlaySound().
Referenced by actor_damage_override().
function sndPlayerHitAlert_PlaySound | ( | str_alias | ) |
Definition at line 1948 of file _zm_audio.gsc.
Referenced by sndPlayerHitAlert().
function sndRadio_Override | ( | arg1 | , |
arg2 | |||
) |
Definition at line 1573 of file _zm_audio.gsc.
function sndRadioSetup | ( | alias_prefix | , |
is_sequential | = false , |
||
origin1 | , | ||
origin2 | , | ||
origin3 | , | ||
origin4 | , | ||
origin5 | |||
) |
Definition at line 1567 of file _zm_audio.gsc.
function sndRadioWait | ( | origin | , |
radio | , | ||
is_sequential | , | ||
num | |||
) |
Definition at line 1570 of file _zm_audio.gsc.
function timer_actual | ( | kills | , |
time | |||
) |
Definition at line 444 of file _zm_audio.gsc.
References create_and_play_dialog(), and timer().
Referenced by player_killstreak_timer().
function vo_clear_underwater | ( | ) |
function waitPlaybackTime | ( | alias | ) |
Definition at line 1756 of file _zm_audio.gsc.
Referenced by sndConversation_Play().
function water_vox | ( | ) |
Definition at line 1849 of file _zm_audio.gsc.
References vo_clear_underwater(), and WAIT_SERVER_FRAME.
function zmbAIVox_AmbientDelay | ( | ) |
Definition at line 1518 of file _zm_audio.gsc.
Referenced by zmbAIVox_PlayVox().
function zmbAIVox_NotifyConvert | ( | ) |
Definition at line 1354 of file _zm_audio.gsc.
References IS_TRUE, zmbAIVox_PlayDeath(), zmbAIVox_PlayElectrocution(), and zmbAIVox_PlayVox().
Referenced by dog_init(), and zombie_spawn_init().
function zmbAIVox_PlayDeath | ( | ) |
Definition at line 1490 of file _zm_audio.gsc.
References IS_TRUE, and zmbAIVox_PlayVox().
Referenced by zmbAIVox_NotifyConvert().
function zmbAIVox_PlayElectrocution | ( | ) |
Definition at line 1504 of file _zm_audio.gsc.
Referenced by zmbAIVox_NotifyConvert().
function zmbAIVox_PlayVox | ( | zombie | , |
type | , | ||
override | , | ||
priority | , | ||
delayAmbientVox | = false |
||
) |
Definition at line 1415 of file _zm_audio.gsc.
References is_last_zombie(), IS_TRUE, sndIsNetworkSafe(), and zmbAIVox_AmbientDelay().
Referenced by zmbAIVox_NotifyConvert(), and zmbAIVox_PlayDeath().
function zmbVox | ( | ) |
Definition at line 104 of file _zm_audio.gsc.
References spawn(), zmbVoxCreate(), and zmbVoxInitSpeaker().
Referenced by __init__().
function zmbVoxAdd | ( | category | , |
subcategory | , | ||
suffix | , | ||
percentage | , | ||
response | , | ||
delayBeforePlayAgain | = 0 |
||
) |
Definition at line 580 of file _zm_audio.gsc.
References create_vox_timer().
Referenced by add_zombie_weapon(), and loadPlayerVoiceCategories().
function zmbVoxCreate | ( | ) |
Definition at line 470 of file _zm_audio.gsc.
Referenced by zmbVox().
function zmbVoxGetLineVariant | ( | prefix | , |
suffix | , | ||
force_variant | |||
) |
Definition at line 896 of file _zm_audio.gsc.
References get_number_variants().
Referenced by create_and_play_dialog().
function zmbVoxInitSpeaker | ( | speaker | , |
prefix | , | ||
ent | |||
) |
Definition at line 476 of file _zm_audio.gsc.
Referenced by zmbVox().
function zombie_behind_vox | ( | ) |
Definition at line 152 of file _zm_audio.gsc.
References get_zombie_array(), and GetYawToSpot().
Referenced by init_audio_functions().