‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
audio_shared.csc File Reference

Go to the source code of this file.

Macros

#define SNAPSHOT_AMB_SILENT   2
 
#define SNAPSHOT_FOLEY_QUIETER   3
 
#define SNAPSHOT_LEVEL_END   4
 
#define SNAPSHOT_LEVEL_END_IMMEDIATE   5
 
#define SNAPSHOT_SPECIAL_SILENT   1
 

Functions

function __init__ ()
 
function absolute_value (fowd)
 
function audio_material_trigger (trig)
 
function audio_step_trigger (localClientNum)
 
function bump_trigger_listener ()
 
function bump_trigger_start (localClientNum)
 
function clientVoiceSetup (localClientNum)
 
function closest_point_on_line_to_point (Point, LineStart, LineEnd)
 
function debug_line_emitter ()
 
function doRattle (origin, min, max)
 
function get_vol_from_speed (player)
 
function init_audio_triggers (localClientNum)
 
function isPlayerInfected ()
 
function local_player_spawn (localClientNum)
 
Function mantle_wait (alias, localClientNum)
 
function move_sound_along_line ()
 
function player_init (localClientNum)
 
function playloopat (aliasname, origin)
 
function register_clientfields ()
 
function scale_speed (x1, x2, y1, y2, z)
 
function set_sound_context_defaults ()
 
function setCurrentAmbientState (ambientRoom, ambientPackage, roomColliderCent, packageColliderCent, defaultRoom)
 
function SetPfxContext ()
 
function snd_play_auto_fx (fxid, alias, offsetx, offsety, offsetz, onground, area, threshold, alias_override)
 
function snd_print_fx_id (fxid, type, ent)
 
function snd_set_snapshot (state)
 
function snd_snapshot_init ()
 
function snd_snapshot_think ()
 
function snd_underwater (localClientNum)
 
function sndCChacking (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function sndChyronLoop (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function sndDeath_Activate ()
 
function sndDeath_Deactivate ()
 
function sndDniRepair (localClientNum, alais, min, max)
 
function sndDoubleJump_Watcher ()
 
function sndFinalKillcam_Activate ()
 
function sndFinalKillcam_Deactivate ()
 
function sndFinalKillcam_Slowdown ()
 
function sndFoleyContext (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function sndHealthSystem (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function sndIGCsnapshot (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function sndKillcam ()
 
function sndLevelStartSnapOff (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function sndMatchSnapshot (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function sndMusicDeathWatcher ()
 
function sndOnWait ()
 
function sndRattle_Grenade_Client ()
 
function sndRattle_Server (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function sndSwitchVehicleContext (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function sndTacRig (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function sndVoNotify (notifyString, dialog)
 
function sndZMBFadeIn (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function soundLineCheckpointRestore (target)
 
function soundLineThink ()
 
function soundLoopCheckpointRestore ()
 
function soundLoopThink ()
 
function soundplayuidecodeloop (decodeString, playTimeMs)
 
function soundRandom_NotifyWait (notify_name, randSound)
 
function soundRandom_Thread (localClientNum, randSound)
 
function soundwait (id)
 
function startLineEmitters ()
 
function startRattles ()
 
function startSoundLoops ()
 
function startSoundRandoms (localClientNum)
 
function stoploopat (aliasname, origin)
 
function swimBegin ()
 
function swimCancel (localClientNum)
 
function swimEnd (localClientNum)
 
function thread_bump_trigger (localClientNum)
 
function trig_enter_audio_material_trigger (player)
 
function trig_enter_audio_step_trigger (trigPlayer)
 
function trig_enter_bump (ent)
 
function trig_leave_audio_material_trigger (player)
 
function trig_leave_audio_step_trigger (trigPlayer)
 
function trig_leave_bump (ent)
 
function underwaterBegin ()
 
function underwaterEnd ()
 
function weapon_butt_sounds (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 

Macro Definition Documentation

◆ SNAPSHOT_AMB_SILENT

#define SNAPSHOT_AMB_SILENT   2

Definition at line 1437 of file audio_shared.csc.

◆ SNAPSHOT_FOLEY_QUIETER

#define SNAPSHOT_FOLEY_QUIETER   3

Definition at line 1438 of file audio_shared.csc.

◆ SNAPSHOT_LEVEL_END

#define SNAPSHOT_LEVEL_END   4

Definition at line 1439 of file audio_shared.csc.

◆ SNAPSHOT_LEVEL_END_IMMEDIATE

#define SNAPSHOT_LEVEL_END_IMMEDIATE   5

Definition at line 1440 of file audio_shared.csc.

◆ SNAPSHOT_SPECIAL_SILENT

#define SNAPSHOT_SPECIAL_SILENT   1

Definition at line 1436 of file audio_shared.csc.

Function Documentation

◆ __init__()

◆ absolute_value()

function absolute_value ( fowd  )

Definition at line 792 of file audio_shared.csc.

Referenced by get_vol_from_speed().

◆ audio_material_trigger()

function audio_material_trigger ( trig  )

◆ audio_step_trigger()

function audio_step_trigger ( localClientNum  )

◆ bump_trigger_listener()

function bump_trigger_listener ( )

Definition at line 741 of file audio_shared.csc.

Referenced by thread_bump_trigger().

◆ bump_trigger_start()

function bump_trigger_start ( localClientNum  )

Definition at line 662 of file audio_shared.csc.

References thread_bump_trigger().

Referenced by player_init().

◆ clientVoiceSetup()

function clientVoiceSetup ( localClientNum  )

Definition at line 111 of file audio_shared.csc.

References sndVoNotify().

Referenced by init(), and local_player_spawn().

◆ closest_point_on_line_to_point()

function closest_point_on_line_to_point ( Point  ,
LineStart  ,
LineEnd   
)

Definition at line 801 of file audio_shared.csc.

Referenced by move_sound_along_line().

◆ debug_line_emitter()

function debug_line_emitter ( )

Definition at line 856 of file audio_shared.csc.

References end(), and WAIT_CLIENT_FRAME.

Referenced by move_sound_along_line().

◆ doRattle()

function doRattle ( origin  ,
min  ,
max   
)

◆ get_vol_from_speed()

function get_vol_from_speed ( player  )

◆ init_audio_triggers()

function init_audio_triggers ( localClientNum  )

Definition at line 525 of file audio_shared.csc.

References audio_material_trigger(), audio_step_trigger(), and waitforclient().

Referenced by player_init().

◆ isPlayerInfected()

function isPlayerInfected ( )

Definition at line 1063 of file audio_shared.csc.

Referenced by local_player_spawn().

◆ local_player_spawn()

function local_player_spawn ( localClientNum  )

Definition at line 49 of file audio_shared.csc.

References clientVoiceSetup(), isPlayerInfected(), snd_underwater(), and sndMusicDeathWatcher().

Referenced by __init__().

◆ mantle_wait()

Function mantle_wait ( alias  ,
localClientNum   
)

Definition at line 725 of file audio_shared.csc.

Referenced by trig_enter_bump().

◆ move_sound_along_line()

function move_sound_along_line ( )

Definition at line 874 of file audio_shared.csc.

References closest_point_on_line_to_point(), debug_line_emitter(), and end().

◆ player_init()

function player_init ( localClientNum  )

◆ playloopat()

function playloopat ( aliasname  ,
origin   
)

◆ register_clientfields()

◆ scale_speed()

function scale_speed ( x1  ,
x2  ,
y1  ,
y2  ,
 
)

◆ set_sound_context_defaults()

function set_sound_context_defaults ( )

Definition at line 1292 of file audio_shared.csc.

◆ setCurrentAmbientState()

function setCurrentAmbientState ( ambientRoom  ,
ambientPackage  ,
roomColliderCent  ,
packageColliderCent  ,
defaultRoom   
)

Definition at line 1055 of file audio_shared.csc.

Referenced by CodeCallback_SoundSetAmbientState().

◆ SetPfxContext()

function SetPfxContext ( )

Definition at line 1011 of file audio_shared.csc.

Referenced by __init__().

◆ snd_play_auto_fx()

function snd_play_auto_fx ( fxid  ,
alias  ,
offsetx  ,
offsety  ,
offsetz  ,
onground  ,
area  ,
threshold  ,
alias_override   
)

Definition at line 841 of file audio_shared.csc.

◆ snd_print_fx_id()

function snd_print_fx_id ( fxid  ,
type  ,
ent   
)

Definition at line 846 of file audio_shared.csc.

◆ snd_set_snapshot()

◆ snd_snapshot_init()

function snd_snapshot_init ( )

Definition at line 142 of file audio_shared.csc.

References snd_snapshot_think().

Referenced by __init__().

◆ snd_snapshot_think()

function snd_snapshot_think ( )

Definition at line 193 of file audio_shared.csc.

Referenced by snd_snapshot_init().

◆ snd_underwater()

function snd_underwater ( localClientNum  )

◆ sndCChacking()

function sndCChacking ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 1405 of file audio_shared.csc.

Referenced by register_clientfields().

◆ sndChyronLoop()

function sndChyronLoop ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 1492 of file audio_shared.csc.

References spawn().

Referenced by register_clientfields().

◆ sndDeath_Activate()

function sndDeath_Activate ( )

Definition at line 1340 of file audio_shared.csc.

References snd_set_snapshot().

◆ sndDeath_Deactivate()

function sndDeath_Deactivate ( )

Definition at line 1349 of file audio_shared.csc.

References snd_set_snapshot().

◆ sndDniRepair()

function sndDniRepair ( localClientNum  ,
alais  ,
min  ,
max   
)

Definition at line 1205 of file audio_shared.csc.

Referenced by sndHealthSystem().

◆ sndDoubleJump_Watcher()

function sndDoubleJump_Watcher ( )

Definition at line 90 of file audio_shared.csc.

References trace().

◆ sndFinalKillcam_Activate()

function sndFinalKillcam_Activate ( )

Definition at line 1358 of file audio_shared.csc.

References snd_set_snapshot().

◆ sndFinalKillcam_Deactivate()

function sndFinalKillcam_Deactivate ( )

Definition at line 1377 of file audio_shared.csc.

References snd_set_snapshot().

Referenced by sndKillcam().

◆ sndFinalKillcam_Slowdown()

function sndFinalKillcam_Slowdown ( )

Definition at line 1367 of file audio_shared.csc.

References snd_set_snapshot().

Referenced by sndKillcam().

◆ sndFoleyContext()

function sndFoleyContext ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 1322 of file audio_shared.csc.

Referenced by register_clientfields().

◆ sndHealthSystem()

function sndHealthSystem ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 1135 of file audio_shared.csc.

References IS_TRUE, and sndDniRepair().

◆ sndIGCsnapshot()

function sndIGCsnapshot ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

◆ sndKillcam()

function sndKillcam ( )

Definition at line 1335 of file audio_shared.csc.

References sndFinalKillcam_Deactivate(), and sndFinalKillcam_Slowdown().

Referenced by __init__().

◆ sndLevelStartSnapOff()

function sndLevelStartSnapOff ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 1475 of file audio_shared.csc.

References IS_TRUE, and snd_set_snapshot().

Referenced by register_clientfields().

◆ sndMatchSnapshot()

function sndMatchSnapshot ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 1300 of file audio_shared.csc.

References snd_set_snapshot().

Referenced by register_clientfields().

◆ sndMusicDeathWatcher()

function sndMusicDeathWatcher ( )

Definition at line 1400 of file audio_shared.csc.

Referenced by local_player_spawn().

◆ sndOnWait()

function sndOnWait ( )

Definition at line 177 of file audio_shared.csc.

References waittill_any_timeout().

◆ sndRattle_Grenade_Client()

function sndRattle_Grenade_Client ( )

Definition at line 1264 of file audio_shared.csc.

References doRattle().

Referenced by player_init().

◆ sndRattle_Server()

function sndRattle_Server ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 1249 of file audio_shared.csc.

References doRattle().

Referenced by register_clientfields().

◆ sndSwitchVehicleContext()

function sndSwitchVehicleContext ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 1386 of file audio_shared.csc.

Referenced by register_clientfields().

◆ sndTacRig()

function sndTacRig ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 1224 of file audio_shared.csc.

Referenced by register_clientfields().

◆ sndVoNotify()

function sndVoNotify ( notifyString  ,
dialog   
)

Definition at line 129 of file audio_shared.csc.

Referenced by clientVoiceSetup().

◆ sndZMBFadeIn()

function sndZMBFadeIn ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 1485 of file audio_shared.csc.

References snd_set_snapshot().

Referenced by register_clientfields().

◆ soundLineCheckpointRestore()

function soundLineCheckpointRestore ( target  )

Definition at line 420 of file audio_shared.csc.

Referenced by soundLineThink().

◆ soundLineThink()

function soundLineThink ( )

Definition at line 365 of file audio_shared.csc.

References get(), and soundLineCheckpointRestore().

Referenced by startLineEmitters().

◆ soundLoopCheckpointRestore()

function soundLoopCheckpointRestore ( )

Definition at line 357 of file audio_shared.csc.

Referenced by soundLoopThink().

◆ soundLoopThink()

function soundLoopThink ( )

Definition at line 301 of file audio_shared.csc.

References soundLoopCheckpointRestore().

Referenced by startSoundLoops().

◆ soundplayuidecodeloop()

function soundplayuidecodeloop ( decodeString  ,
playTimeMs   
)

Definition at line 1037 of file audio_shared.csc.

References spawn().

Referenced by CodeCallback_SoundPlayUiDecodeLoop().

◆ soundRandom_NotifyWait()

function soundRandom_NotifyWait ( notify_name  ,
randSound   
)

Definition at line 262 of file audio_shared.csc.

References IS_TRUE.

Referenced by soundRandom_Thread().

◆ soundRandom_Thread()

function soundRandom_Thread ( localClientNum  ,
randSound   
)

Definition at line 216 of file audio_shared.csc.

References IS_TRUE, and soundRandom_NotifyWait().

Referenced by startSoundRandoms().

◆ soundwait()

function soundwait ( id  )

Definition at line 919 of file audio_shared.csc.

◆ startLineEmitters()

function startLineEmitters ( )

Definition at line 462 of file audio_shared.csc.

References delay(), get_array(), soundLineThink(), and WAIT_CLIENT_FRAME.

Referenced by player_init().

◆ startRattles()

function startRattles ( )

Definition at line 497 of file audio_shared.csc.

References delay(), get_array(), and WAIT_CLIENT_FRAME.

Referenced by player_init().

◆ startSoundLoops()

function startSoundLoops ( )

Definition at line 427 of file audio_shared.csc.

References delay(), get_array(), soundLoopThink(), and WAIT_CLIENT_FRAME.

Referenced by player_init().

◆ startSoundRandoms()

function startSoundRandoms ( localClientNum  )

Definition at line 274 of file audio_shared.csc.

References get_array(), and soundRandom_Thread().

Referenced by player_init().

◆ stoploopat()

function stoploopat ( aliasname  ,
origin   
)

Definition at line 914 of file audio_shared.csc.

Referenced by StopEmpEffects(), and stopflareloopWatcher().

◆ swimBegin()

function swimBegin ( )

Definition at line 1022 of file audio_shared.csc.

Referenced by snd_underwater().

◆ swimCancel()

function swimCancel ( localClientNum  )

Definition at line 1032 of file audio_shared.csc.

Referenced by snd_underwater().

◆ swimEnd()

function swimEnd ( localClientNum  )

Definition at line 1027 of file audio_shared.csc.

Referenced by snd_underwater().

◆ thread_bump_trigger()

function thread_bump_trigger ( localClientNum  )

◆ trig_enter_audio_material_trigger()

function trig_enter_audio_material_trigger ( player  )

Definition at line 566 of file audio_shared.csc.

Referenced by audio_material_trigger().

◆ trig_enter_audio_step_trigger()

function trig_enter_audio_step_trigger ( trigPlayer  )

Definition at line 600 of file audio_shared.csc.

References get_vol_from_speed().

Referenced by audio_step_trigger().

◆ trig_enter_bump()

function trig_enter_bump ( ent  )

Definition at line 688 of file audio_shared.csc.

References get_vol_from_speed(), mantle_wait(), and script_wait().

Referenced by thread_bump_trigger().

◆ trig_leave_audio_material_trigger()

function trig_leave_audio_material_trigger ( player  )

Definition at line 581 of file audio_shared.csc.

Referenced by audio_material_trigger().

◆ trig_leave_audio_step_trigger()

function trig_leave_audio_step_trigger ( trigPlayer  )

Definition at line 630 of file audio_shared.csc.

References get_vol_from_speed().

Referenced by audio_step_trigger().

◆ trig_leave_bump()

function trig_leave_bump ( ent  )

Definition at line 735 of file audio_shared.csc.

Referenced by thread_bump_trigger().

◆ underwaterBegin()

function underwaterBegin ( )

Definition at line 1001 of file audio_shared.csc.

Referenced by snd_underwater().

◆ underwaterEnd()

function underwaterEnd ( )

Definition at line 1006 of file audio_shared.csc.

Referenced by snd_underwater().

◆ weapon_butt_sounds()

function weapon_butt_sounds ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 1273 of file audio_shared.csc.

Referenced by register_clientfields().