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

Go to the source code of this file.

Functions

function add_callback (event, func, obj)
 
function add_entity_callback (event, func, obj)
 
function add_weapon_type (weapontype, callback)
 
function callback (event, localclientnum, params)
 
function CodeCallback_ActivateExploder (exploder_id)
 
function CodeCallback_AirSupport (localClientNum, x, y, z, type, yaw, team, teamfaction, owner, exittype, time, height)
 
function CodeCallback_CallClientScript (pSelf, label, param)
 
function CodeCallback_CallClientScriptOnLevel (label, param)
 
function CodeCallback_ChargesHotWeaponSoundNotify (localClientNum, weapon, chargeShotLevel)
 
function CodeCallback_ClientFlag (localClientNum, flag, set)
 
function CodeCallback_ClientFlagAsVal (localClientNum, val)
 
function CodeCallback_CollectiblesChanged (changedClient, collectiblesArray, localClientNum)
 
function CodeCallback_CreatingCorpse (localClientNum, player)
 
function CodeCallback_DeactivateExploder (exploder_id)
 
function CodeCallback_DemoJump (localClientNum, time)
 
function CodeCallback_DemoPlayerSwitch (localClientNum)
 
function CodeCallback_DogSoundNotify (client_num, entity, note)
 
function CodeCallback_EntityShutdown (localClientNum, entity)
 
function CodeCallback_EntitySpawned (localClientNum)
 
function CodeCallback_ExtraCamRenderCharacterBodyItem (localClientNum, jobIndex, extraCamIndex, sessionMode, characterIndex, itemIndex)
 
function CodeCallback_ExtraCamRenderCharacterHeadItem (localClientNum, jobIndex, extraCamIndex, sessionMode, headIndex)
 
function CodeCallback_ExtraCamRenderCharacterHelmetItem (localClientNum, jobIndex, extraCamIndex, sessionMode, characterIndex, itemIndex)
 
function CodeCallback_ExtraCamRenderCurrentHeroHeadshot (localClientNum, jobIndex, extraCamIndex, sessionMode, characterIndex, isDefaultHero)
 
function CodeCallback_ExtraCamRenderHero (localClientNum, jobIndex, extraCamIndex, sessionMode, characterIndex)
 
function CodeCallback_ExtraCamRenderLobbyClientHero (localClientNum, jobIndex, extraCamIndex, sessionMode)
 
function CodeCallback_ExtraCamRenderOutfitPreview (localClientNum, jobIndex, extraCamIndex, sessionMode, outfitIndex)
 
function CodeCallback_ExtraCamRenderWCPaintjobIcon (localClientNum, extraCamIndex, jobIndex, attachmentVariantString, weaponOptions, weaponPlusAttachments, loadoutSlot, paintjobIndex, paintjobSlot)
 
function CodeCallback_ExtraCamRenderWCVariantIcon (localClientNum, extraCamIndex, jobIndex, attachmentVariantString, weaponOptions, weaponPlusAttachments, loadoutSlot, paintjobIndex, paintjobSlot)
 
function CodeCallback_FinalizeInitialization ()
 
function CodeCallback_GadgetVisionPulse_Reveal (local_client_num, entity, bReveal)
 
function CodeCallback_GibEvent (localClientNum, type, locations)
 
function CodeCallback_GlassSmash (org, dir)
 
function CodeCallback_HostMigration (localClientNum)
 
function CodeCallback_KillcamBegin (localClientNum, time)
 
function CodeCallback_KillcamEnd (localClientNum, time)
 
function CodeCallback_LocalClientChanged (localClientNum, entity)
 
function CodeCallback_LocalClientConnect (localClientNum)
 
function CodeCallback_LocalClientDisconnect (clientNum)
 
function CodeCallback_LocalClientShutdown (localClientNum, entity)
 
function CodeCallback_MapRestart ()
 
function CodeCallback_PlayAIFootstep (client_num, pos, surface, notetrack, bone)
 
function CodeCallback_PlayerFoliage (client_num, player, firstperson, quiet)
 
function CodeCallback_PlayerSpawned (localClientNum)
 
function CodeCallback_PlayerSwitch (localClientNum)
 
function CodeCallback_PlayLightLoopExploder (exploderIndex)
 
function CodeCallback_PrecacheGameType ()
 
function CodeCallback_PreInitialization ()
 
function CodeCallback_ServerSceneInit (scene_name)
 
function CodeCallback_ServerScenePlay (scene_name)
 
function CodeCallback_ServerSceneStop (scene_name)
 
function CodeCallback_SoundNotify (localClientNum, entity, note)
 
function CodeCallback_SoundPlayUiDecodeLoop (decodeString, playTimeMs)
 
function CodeCallback_SoundSetAiAmbientState (triggers, actors, numTriggers)
 
function CodeCallback_SoundSetAmbientState (ambientRoom, ambientPackage, roomColliderCent, packageColliderCent, defaultRoom)
 
function CodeCallback_StartGameType ()
 
function CodeCallback_StateChange (clientNum, system, newState)
 
function CodeCallback_StopLightLoopExploder (exploderIndex)
 
function entity_callback (event, localclientnum, params)
 
function on_finalize_initialization (func, obj)
 
function on_localclient_connect (func, obj)
 
function on_localclient_shutdown (func, obj)
 
function on_localplayer_spawned (func, obj)
 
function on_shutdown (func, obj)
 
function on_spawned (func, obj)
 
function on_start_gametype (func, obj)
 
function remove_callback (event, func, obj)
 
function remove_callback_on_death (event, func)
 
function remove_on_localplayer_spawned (func, obj)
 
function remove_on_spawned (func, obj)
 
function scene_black_screen ()
 
function spawned_weapon_type (localClientNum)
 

Function Documentation

◆ add_callback()

◆ add_entity_callback()

function add_entity_callback ( event  ,
func  ,
obj   
)

Definition at line 121 of file callbacks_shared.csc.

References add(), array, and callback().

Referenced by on_shutdown().

◆ add_weapon_type()

function add_weapon_type ( weapontype  ,
callback   
)

Definition at line 780 of file callbacks_shared.csc.

References callback().

Referenced by __init__(), and init_shared().

◆ callback()

◆ CodeCallback_ActivateExploder()

function CodeCallback_ActivateExploder ( exploder_id  )

Definition at line 512 of file callbacks_shared.csc.

References activate_exploder(), and exploder().

◆ CodeCallback_AirSupport()

function CodeCallback_AirSupport ( localClientNum  ,
,
,
,
type  ,
yaw  ,
team  ,
teamfaction  ,
owner  ,
exittype  ,
time  ,
height   
)

Definition at line 461 of file callbacks_shared.csc.

◆ CodeCallback_CallClientScript()

function CodeCallback_CallClientScript ( pSelf  ,
label  ,
param   
)

Definition at line 810 of file callbacks_shared.csc.

◆ CodeCallback_CallClientScriptOnLevel()

function CodeCallback_CallClientScriptOnLevel ( label  ,
param   
)

Definition at line 821 of file callbacks_shared.csc.

◆ CodeCallback_ChargesHotWeaponSoundNotify()

function CodeCallback_ChargesHotWeaponSoundNotify ( localClientNum  ,
weapon  ,
chargeShotLevel   
)

Definition at line 573 of file callbacks_shared.csc.

◆ CodeCallback_ClientFlag()

function CodeCallback_ClientFlag ( localClientNum  ,
flag  ,
set   
)

Definition at line 644 of file callbacks_shared.csc.

References set().

◆ CodeCallback_ClientFlagAsVal()

function CodeCallback_ClientFlagAsVal ( localClientNum  ,
val   
)

Definition at line 652 of file callbacks_shared.csc.

◆ CodeCallback_CollectiblesChanged()

function CodeCallback_CollectiblesChanged ( changedClient  ,
collectiblesArray  ,
localClientNum   
)

Definition at line 772 of file callbacks_shared.csc.

◆ CodeCallback_CreatingCorpse()

function CodeCallback_CreatingCorpse ( localClientNum  ,
player   
)

Definition at line 499 of file callbacks_shared.csc.

◆ CodeCallback_DeactivateExploder()

function CodeCallback_DeactivateExploder ( exploder_id  )

Definition at line 544 of file callbacks_shared.csc.

References exploder(), and stop_exploder().

◆ CodeCallback_DemoJump()

function CodeCallback_DemoJump ( localClientNum  ,
time   
)

Definition at line 469 of file callbacks_shared.csc.

◆ CodeCallback_DemoPlayerSwitch()

function CodeCallback_DemoPlayerSwitch ( localClientNum  )

Definition at line 475 of file callbacks_shared.csc.

◆ CodeCallback_DogSoundNotify()

function CodeCallback_DogSoundNotify ( client_num  ,
entity  ,
note   
)

Definition at line 590 of file callbacks_shared.csc.

◆ CodeCallback_EntityShutdown()

function CodeCallback_EntityShutdown ( localClientNum  ,
entity   
)

Definition at line 439 of file callbacks_shared.csc.

References entity_callback().

◆ CodeCallback_EntitySpawned()

function CodeCallback_EntitySpawned ( localClientNum  )

Definition at line 420 of file callbacks_shared.csc.

◆ CodeCallback_ExtraCamRenderCharacterBodyItem()

function CodeCallback_ExtraCamRenderCharacterBodyItem ( localClientNum  ,
jobIndex  ,
extraCamIndex  ,
sessionMode  ,
characterIndex  ,
itemIndex   
)

Definition at line 688 of file callbacks_shared.csc.

◆ CodeCallback_ExtraCamRenderCharacterHeadItem()

function CodeCallback_ExtraCamRenderCharacterHeadItem ( localClientNum  ,
jobIndex  ,
extraCamIndex  ,
sessionMode  ,
headIndex   
)

Definition at line 718 of file callbacks_shared.csc.

◆ CodeCallback_ExtraCamRenderCharacterHelmetItem()

function CodeCallback_ExtraCamRenderCharacterHelmetItem ( localClientNum  ,
jobIndex  ,
extraCamIndex  ,
sessionMode  ,
characterIndex  ,
itemIndex   
)

Definition at line 703 of file callbacks_shared.csc.

◆ CodeCallback_ExtraCamRenderCurrentHeroHeadshot()

function CodeCallback_ExtraCamRenderCurrentHeroHeadshot ( localClientNum  ,
jobIndex  ,
extraCamIndex  ,
sessionMode  ,
characterIndex  ,
isDefaultHero   
)

Definition at line 676 of file callbacks_shared.csc.

◆ CodeCallback_ExtraCamRenderHero()

function CodeCallback_ExtraCamRenderHero ( localClientNum  ,
jobIndex  ,
extraCamIndex  ,
sessionMode  ,
characterIndex   
)

Definition at line 660 of file callbacks_shared.csc.

◆ CodeCallback_ExtraCamRenderLobbyClientHero()

function CodeCallback_ExtraCamRenderLobbyClientHero ( localClientNum  ,
jobIndex  ,
extraCamIndex  ,
sessionMode   
)

Definition at line 668 of file callbacks_shared.csc.

◆ CodeCallback_ExtraCamRenderOutfitPreview()

function CodeCallback_ExtraCamRenderOutfitPreview ( localClientNum  ,
jobIndex  ,
extraCamIndex  ,
sessionMode  ,
outfitIndex   
)

Definition at line 729 of file callbacks_shared.csc.

◆ CodeCallback_ExtraCamRenderWCPaintjobIcon()

function CodeCallback_ExtraCamRenderWCPaintjobIcon ( localClientNum  ,
extraCamIndex  ,
jobIndex  ,
attachmentVariantString  ,
weaponOptions  ,
weaponPlusAttachments  ,
loadoutSlot  ,
paintjobIndex  ,
paintjobSlot   
)

Definition at line 741 of file callbacks_shared.csc.

◆ CodeCallback_ExtraCamRenderWCVariantIcon()

function CodeCallback_ExtraCamRenderWCVariantIcon ( localClientNum  ,
extraCamIndex  ,
jobIndex  ,
attachmentVariantString  ,
weaponOptions  ,
weaponPlusAttachments  ,
loadoutSlot  ,
paintjobIndex  ,
paintjobSlot   
)

Definition at line 758 of file callbacks_shared.csc.

◆ CodeCallback_FinalizeInitialization()

function CodeCallback_FinalizeInitialization ( )

Definition at line 303 of file callbacks_shared.csc.

References callback(), and run_post_systems().

◆ CodeCallback_GadgetVisionPulse_Reveal()

function CodeCallback_GadgetVisionPulse_Reveal ( local_client_num  ,
entity  ,
bReveal   
)

Definition at line 883 of file callbacks_shared.csc.

◆ CodeCallback_GibEvent()

function CodeCallback_GibEvent ( localClientNum  ,
type  ,
locations   
)

Definition at line 386 of file callbacks_shared.csc.

◆ CodeCallback_GlassSmash()

function CodeCallback_GlassSmash ( org  ,
dir   
)

Definition at line 360 of file callbacks_shared.csc.

◆ CodeCallback_HostMigration()

function CodeCallback_HostMigration ( localClientNum  )

Definition at line 581 of file callbacks_shared.csc.

◆ CodeCallback_KillcamBegin()

function CodeCallback_KillcamBegin ( localClientNum  ,
time   
)

Definition at line 487 of file callbacks_shared.csc.

◆ CodeCallback_KillcamEnd()

function CodeCallback_KillcamEnd ( localClientNum  ,
time   
)

Definition at line 493 of file callbacks_shared.csc.

◆ CodeCallback_LocalClientChanged()

function CodeCallback_LocalClientChanged ( localClientNum  ,
entity   
)

Definition at line 455 of file callbacks_shared.csc.

◆ CodeCallback_LocalClientConnect()

function CodeCallback_LocalClientConnect ( localClientNum  )

Definition at line 349 of file callbacks_shared.csc.

◆ CodeCallback_LocalClientDisconnect()

function CodeCallback_LocalClientDisconnect ( clientNum  )

Definition at line 355 of file callbacks_shared.csc.

◆ CodeCallback_LocalClientShutdown()

function CodeCallback_LocalClientShutdown ( localClientNum  ,
entity   
)

Definition at line 449 of file callbacks_shared.csc.

References callback().

◆ CodeCallback_MapRestart()

function CodeCallback_MapRestart ( )

Definition at line 339 of file callbacks_shared.csc.

References init_utility(), and waitforclient().

◆ CodeCallback_PlayAIFootstep()

function CodeCallback_PlayAIFootstep ( client_num  ,
pos  ,
surface  ,
notetrack  ,
bone   
)

Definition at line 598 of file callbacks_shared.csc.

◆ CodeCallback_PlayerFoliage()

function CodeCallback_PlayerFoliage ( client_num  ,
player  ,
firstperson  ,
quiet   
)

Definition at line 507 of file callbacks_shared.csc.

References playerFoliage().

◆ CodeCallback_PlayerSpawned()

function CodeCallback_PlayerSpawned ( localClientNum  )

Definition at line 379 of file callbacks_shared.csc.

◆ CodeCallback_PlayerSwitch()

function CodeCallback_PlayerSwitch ( localClientNum  )

Definition at line 481 of file callbacks_shared.csc.

◆ CodeCallback_PlayLightLoopExploder()

function CodeCallback_PlayLightLoopExploder ( exploderIndex  )

Definition at line 603 of file callbacks_shared.csc.

◆ CodeCallback_PrecacheGameType()

function CodeCallback_PrecacheGameType ( )

Definition at line 398 of file callbacks_shared.csc.

◆ CodeCallback_PreInitialization()

function CodeCallback_PreInitialization ( )

Definition at line 294 of file callbacks_shared.csc.

References callback(), and run_pre_systems().

◆ CodeCallback_ServerSceneInit()

function CodeCallback_ServerSceneInit ( scene_name  )

Definition at line 832 of file callbacks_shared.csc.

References init().

◆ CodeCallback_ServerScenePlay()

function CodeCallback_ServerScenePlay ( scene_name  )

Definition at line 840 of file callbacks_shared.csc.

References play(), and scene_black_screen().

◆ CodeCallback_ServerSceneStop()

function CodeCallback_ServerSceneStop ( scene_name  )

Definition at line 850 of file callbacks_shared.csc.

References scene_black_screen(), and stop().

◆ CodeCallback_SoundNotify()

function CodeCallback_SoundNotify ( localClientNum  ,
entity  ,
note   
)

Definition at line 425 of file callbacks_shared.csc.

◆ CodeCallback_SoundPlayUiDecodeLoop()

function CodeCallback_SoundPlayUiDecodeLoop ( decodeString  ,
playTimeMs   
)

Definition at line 374 of file callbacks_shared.csc.

References soundplayuidecodeloop().

◆ CodeCallback_SoundSetAiAmbientState()

function CodeCallback_SoundSetAiAmbientState ( triggers  ,
actors  ,
numTriggers   
)

Definition at line 370 of file callbacks_shared.csc.

◆ CodeCallback_SoundSetAmbientState()

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

Definition at line 365 of file callbacks_shared.csc.

References setCurrentAmbientState().

◆ CodeCallback_StartGameType()

function CodeCallback_StartGameType ( )

Definition at line 409 of file callbacks_shared.csc.

◆ CodeCallback_StateChange()

function CodeCallback_StateChange ( clientNum  ,
system  ,
newState   
)

Definition at line 313 of file callbacks_shared.csc.

◆ CodeCallback_StopLightLoopExploder()

function CodeCallback_StopLightLoopExploder ( exploderIndex  )

Definition at line 608 of file callbacks_shared.csc.

◆ entity_callback()

function entity_callback ( event  ,
localclientnum  ,
params   
)

Definition at line 53 of file callbacks_shared.csc.

References callback().

Referenced by CodeCallback_EntityShutdown().

◆ on_finalize_initialization()

function on_finalize_initialization ( func  ,
obj   
)

Description:
"Function Name: on_finalize_initialization(<func>)" "Module: Callbacks"
"Summary: Set a callback for afer final initialization"
"Mandatory Argument(s): <func> the function you want to call."
"Example:callback::on_finalize_initialization( &foo );"

Definition at line 203 of file callbacks_shared.csc.

References add_callback().

Referenced by __init__().

◆ on_localclient_connect()

function on_localclient_connect ( func  ,
obj   
)

Description:
"Function Name: on_localclient_connect(<func>)" "Module: Callbacks"
"Summary: Set a callback for when the local client connects"
"Mandatory Argument(s): <func> the function you want to call on the new local client."
"Example:callback::on_localclient_connect(&on_player_connect);"
"Single Player / Multi Player: MP"

Definition at line 176 of file callbacks_shared.csc.

References add_callback().

◆ on_localclient_shutdown()

function on_localclient_shutdown ( func  ,
obj   
)

Description:
"Function Name: on_localclient_shutdown(<func>)" "Module: Callbacks"
"Summary: Set a callback for when the local client connects"
"Mandatory Argument(s): <func> the function you want to call on the new local client."
"Example:callback::on_localclient_connect(&on_player_connect);"
"Single Player / Multi Player: MP"

Definition at line 190 of file callbacks_shared.csc.

References add_callback().

Referenced by __init__().

◆ on_localplayer_spawned()

function on_localplayer_spawned ( func  ,
obj   
)

Description:
"Function Name: on_localplayer_spawned(<func>)" "Module: Callbacks"
"Summary: Set a callback for when a local player spawns in the game"
"Mandatory Argument(s): <func> the function you want to call on the local player."
"Example:callback::on_localplayer_spawned( &foo );"

Definition at line 217 of file callbacks_shared.csc.

References add_callback().

◆ on_shutdown()

function on_shutdown ( func  ,
obj   
)

Description:
"Function Name: on_shutdown(<func>)" "Module: Callbacks"
"Summary: Set a callback for when an entity is shutdown"
"Mandatory Argument(s): <func> the function you want to call on the entity."
"Example:callback::on_shutdown( &foo );"

Definition at line 272 of file callbacks_shared.csc.

References add_entity_callback().

Referenced by on_player_spawned(), and SecondaryAnimationsInit().

◆ on_spawned()

function on_spawned ( func  ,
obj   
)

Description:
"Function Name: on_spawned(<func>)" "Module: Callbacks"
"Summary: Set a callback for when a player spawns in the game"
"Mandatory Argument(s): <func> the function you want to call on the player."
"Example:callback::on_spawned( &foo );"

Definition at line 245 of file callbacks_shared.csc.

References add_callback().

Referenced by __init__(), init(), init_player_threat_all(), init_shared(), main(), on_player_connect(), on_player_connecting(), Prolog(), and start_gametype().

◆ on_start_gametype()

function on_start_gametype ( func  ,
obj   
)

Description:
"Function Name: on_start_gametype(<func>)" "Module: Callbacks"
"Summary: Set a callback for when a player starts a gametype"
"Mandatory Argument(s): <func> the function you want to call on the player."
"Example:callback::on_start_gametype( &init );"

Definition at line 285 of file callbacks_shared.csc.

References add_callback().

Referenced by __init__(), init(), and init_shared().

◆ remove_callback()

function remove_callback ( event  ,
func  ,
obj   
)

◆ remove_callback_on_death()

function remove_callback_on_death ( event  ,
func   
)

Definition at line 144 of file callbacks_shared.csc.

References remove_callback().

Referenced by add_callback().

◆ remove_on_localplayer_spawned()

function remove_on_localplayer_spawned ( func  ,
obj   
)

Description:
"Function Name: remove_on_localplayer_spawned(<func>)" "Module: Callbacks"
"Summary: Remove a callback for when a local player spawns in the game"
"Mandatory Argument(s): <func> the function you want to call on the local player."
"Example:callback::remove_on_localplayer_spawned( &foo );"

Definition at line 231 of file callbacks_shared.csc.

References remove_callback().

◆ remove_on_spawned()

function remove_on_spawned ( func  ,
obj   
)

Description:
"Function Name: remove_on_spawned(<func>)" "Module: Callbacks"
"Summary: Remove a callback for when a player spawns in the game"
"Mandatory Argument(s): <func> the function you want to call on the player."
"Example:callback::remove_on_spawned( &foo );"

Definition at line 259 of file callbacks_shared.csc.

References remove_callback().

Referenced by WatchCombatRobotDeath().

◆ scene_black_screen()

function scene_black_screen ( )

◆ spawned_weapon_type()

function spawned_weapon_type ( localClientNum  )

Definition at line 795 of file callbacks_shared.csc.

Referenced by set_default_callbacks().