![]() |
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 | HINT_TEXT_DISPLAY_HEIGHT -160 |
#define | HINT_TEXT_DISPLAY_TIME_DEFAULT 4.0 |
#define | HINT_TEXT_TURN_OFF_NOTIFY "notify_turn_off_hint_text" |
#define | N_HINT_TEXT_FADE_TIME 0.75 |
Functions | |
function | _playLocalSound (soundAlias) |
function | add_trigger_to_ent (ent) |
function | clearLowerMessage (fadetime) |
function | DoMaxDamage (origin, attacker, inflictor, headshot, mod) |
function | ent_already_in_trigger (trig) |
function | error (msg) |
function | fade_hint_text_after_time (n_display_time, str_turn_off_notify) |
function | get_player_height () |
function | getfx (fx) |
function | getObjectiveHintText (team) |
function | getObjectiveScoreText (team) |
function | getObjectiveText (team) |
function | getOtherTeam (team) |
function | getOtherTeamsMask (skip_team) |
function | getPlayerFromClientNum (clientNum) |
function | getTeamMask (team) |
function | ghost_wait_show (wait_time=0.1) |
function | ghost_wait_show_to_others (player, wait_time=0.1, self_endon_string1) |
function | ghost_wait_show_to_player (player, wait_time=0.1, self_endon_string1) |
function | hide_hint_text (b_fade_before_hiding=true) |
function | hide_hint_text_listener (n_time) |
function | init_player_contract_events () |
function | is_objective_game (game_type) |
function | IsBulletImpactMOD (sMeansOfDeath) |
function | isFlashbanged () |
function | isKillStreaksEnabled () |
function | isPressBuild () |
function | isStrStart (string1, subStr) |
function | player_contract_event (event_name, param1=undefined, param2=undefined, param3=undefined) |
function | plot_points (plotpoints, r, g, b, timer) |
function | printAndSoundOnEveryone (team, enemyteam, printFriendly, printEnemy, soundFriendly, soundEnemy, printarg) |
function | printBoldOnTeam (text, team) |
function | printBoldOnTeamArg (text, team, arg) |
function | printOnPlayers (text, team) |
function | printOnTeam (text, team) |
function | printOnTeamArg (text, team, arg) |
function | register_player_contract_event (event_name, event_func, max_param_count=0) |
function | registerNumLives (minValue, maxValue, teamLivesMinValue, teamLivesMaxValue) |
function | registerRoundLimit (minValue, maxValue) |
function | registerRoundScoreLimit (minValue, maxValue) |
function | registerRoundSwitch (minValue, maxValue) |
function | registerRoundWinLimit (minValue, maxValue) |
function | registerScoreLimit (minValue, maxValue) |
function | registerTimeLimit (minValue, maxValue) |
function | remove_trigger_from_ent (ent) |
function | screen_message_create (string_message_1, string_message_2, string_message_3, n_offset_y, n_time) |
function | screen_message_delete (delay) |
function | self_delete () |
function | set_dvar_float_if_unset (dvar, value, reset) |
function | set_dvar_if_unset (dvar, value, reset) |
function | set_dvar_int_if_unset (dvar, value, reset) |
function | set_team_radar (team, value) |
function | setLowerMessage (text, time, combineMessageAndTimer) |
function | setLowerMessageValue (text, value, combineMessage) |
function | setObjectiveHintText (team, text) |
function | setObjectiveScoreText (team, text) |
function | setObjectiveText (team, text) |
function | setUsingRemote (remoteName, set_killstreak_delay_killcam=true) |
function | show_hint_text (str_text_to_show, b_should_blink=false, str_turn_off_notify=HINT_TEXT_TURN_OFF_NOTIFY, n_display_time=HINT_TEXT_DISPLAY_TIME_DEFAULT) |
function | trigger_thread (ent, on_enter_payload, on_exit_payload) |
function | trigger_thread_death_monitor (ent, ender) |
function | use_button_pressed () |
function | wait_endon (waitTime, endOnString, endonString2, endonString3, endonString4) |
function | waitRespawnButton () |
function | waittill_use_button_pressed () |
function | warning (msg) |
function | within_fov (start_origin, start_angles, end_origin, fov) |
#define HINT_TEXT_TURN_OFF_NOTIFY "notify_turn_off_hint_text" |
function add_trigger_to_ent | ( | ent | ) |
Definition at line 470 of file _util.gsc.
Referenced by trigger_thread().
function clearLowerMessage | ( | fadetime | ) |
Definition at line 166 of file _util.gsc.
References setLowerMessage().
Referenced by freezePlayerForRoundEnd(), in_spawnSpectator(), removeSpawnMessageShortly(), spawnIntermission(), spawnInterRoundIntermission(), and waitAndSpawnClient().
function DoMaxDamage | ( | origin | , |
attacker | , | ||
inflictor | , | ||
headshot | , | ||
mod | |||
) |
function ent_already_in_trigger | ( | trig | ) |
Definition at line 494 of file _util.gsc.
Referenced by trigger_thread().
function error | ( | msg | ) |
Definition at line 28 of file _util.gsc.
Referenced by addGroupDialogToPlayer(), assign_ents(), bombs(), get_align_ent(), include_weapon(), init(), registerDialogGroup(), run_next(), and setCategoryTypeWeight().
function fade_hint_text_after_time | ( | n_display_time | , |
str_turn_off_notify | |||
) |
Definition at line 1106 of file _util.gsc.
References hide_hint_text(), N_HINT_TEXT_FADE_TIME, and waittill_any_timeout().
Referenced by show_hint_text().
function getObjectiveHintText | ( | team | ) |
Definition at line 610 of file _util.gsc.
Referenced by doInitialSpawnMessaging(), and spawnPlayer().
function getObjectiveScoreText | ( | team | ) |
Definition at line 605 of file _util.gsc.
Referenced by updateObjectiveText().
function getObjectiveText | ( | team | ) |
Definition at line 600 of file _util.gsc.
Referenced by updateObjectiveText().
function getOtherTeam | ( | team | ) |
Definition at line 360 of file _util.gsc.
Referenced by addSpawnPointsForFlag(), createFlag(), createFlagSpawnInfluencer(), createFlagZone(), flagCapturedFromNeutral(), getEnemyTeam(), getSpawnPoint(), getTeamStartSpawnName(), menuAutoAssign(), onBeginUse(), onCapture(), onDrop(), onPickup(), onSpawnPlayer(), onStartGameType(), onUseUpdate(), PlayAfterburnerFx(), returnFlag(), and selectPlaneMortarLocation().
function getOtherTeamsMask | ( | skip_team | ) |
Definition at line 382 of file _util.gsc.
References getTeamMask().
Referenced by create_grenade_influencers(), create_player_influencers(), ctf(), get_best_spawnpoint(), get_enemy_team_mask(), player_influencers_set_team(), and update_spawn_influencers().
function getPlayerFromClientNum | ( | clientNum | ) |
Definition at line 678 of file _util.gsc.
Referenced by on_menu_response().
function getTeamMask | ( | team | ) |
Definition at line 373 of file _util.gsc.
Referenced by add_fallback_spawnpoints(), create_grenade_influencers(), create_map_placed_influencer(), create_player_influencers(), createFlagSpawnInfluencer(), get_friendly_team_mask(), getOtherTeamsMask(), getSpawnPoint(), onDrop(), onPickup(), player_influencers_set_team(), update_spawn_influencers(), and updateAllSpawnPoints().
function ghost_wait_show | ( | wait_time | = 0.1 | ) |
Description:
"Function Name: ghost_wait_show()"
"Summary: ghosts an entity, waits, then shows the entity; mainly used to hide pops when setting up models poses via setanim" "Module: Utility" "CallOn: An entity"
"Optional Argument(s): <wait_time> : how long to wait before showing"
"Example:turret thread ghost_wait_show();"
"Single Player / Multi Player: multiplayer"
Definition at line 916 of file _util.gsc.
Referenced by OnPlaceEMP(), and OnPlaceTurret().
function ghost_wait_show_to_others | ( | player | , |
wait_time | = 0.1 , |
||
self_endon_string1 | |||
) |
Description:
"Function Name: ghost_wait_show_to_others()"
"Summary: ghosts an entity, waits, then shows the entity to other players; mainly used to hide pops when setting up models poses via setanim" "Module: Utility" "CallOn: An entity"
"Mandatory Argument(s): <player> : the player from whom to hide this entity"
"Optional Argument(s): <wait_time> : how long to wait before showing to others"
"Optional Argument(s): <self_endon_string1> : sets up a self endon with this string"
"Example:turret thread ghost_wait_show_to_others( player );"
"Single Player / Multi Player: multiplayer"
Definition at line 977 of file _util.gsc.
Referenced by ActivateEMP(), ActivateMicrowaveTurret(), ActivateTurret(), and CarryPlaceable().
function ghost_wait_show_to_player | ( | player | , |
wait_time | = 0.1 , |
||
self_endon_string1 | |||
) |
Description:
"Function Name: ghost_wait_show_to_player()"
"Summary: ghosts an entity, waits, then shows the entity to a player; mainly used to hide pops when setting up models poses via setanim" "Module: Utility" "CallOn: An entity"
"Mandatory Argument(s): <player> : the player to whom to show this entity"
"Optional Argument(s): <wait_time> : how long to wait before showing to the player"
"Optional Argument(s): <self_endon_string1> : sets up a self endon with this string"
"Example:turret thread ghost_wait_show_to_player( player );"
"Single Player / Multi Player: multiplayer"
Definition at line 937 of file _util.gsc.
Referenced by ActivateEMP(), ActivateMicrowaveTurret(), ActivateTurret(), and CarryPlaceable().
function hide_hint_text | ( | b_fade_before_hiding | = true | ) |
Description:
"Function Name: hide_hint_text"
"Summary: Hides any help text which may be on screen."
Definition at line 1084 of file _util.gsc.
References N_HINT_TEXT_FADE_TIME, play_animation(), and waittill_any_timeout().
Referenced by fade_hint_text_after_time(), hide_hint_text_listener(), show_hint_text(), and stop_tutorial_when_restarting_track().
function hide_hint_text_listener | ( | n_time | ) |
Definition at line 1118 of file _util.gsc.
References hide_hint_text(), and waittill_any_timeout().
Referenced by show_hint_text().
function init_player_contract_events | ( | ) |
Definition at line 1141 of file _util.gsc.
Referenced by start_gametype().
function is_objective_game | ( | game_type | ) |
Definition at line 1205 of file _util.gsc.
Referenced by contract_win().
function isFlashbanged | ( | ) |
Definition at line 703 of file _util.gsc.
Referenced by challengeKills(), and on_damage().
function isKillStreaksEnabled | ( | ) |
Definition at line 564 of file _util.gsc.
Referenced by give_for_streak(), and give_internal().
function player_contract_event | ( | event_name | , |
param1 | = undefined , |
||
param2 | = undefined , |
||
param3 | = undefined |
||
) |
Definition at line 1161 of file _util.gsc.
References VAL.
Referenced by givePlayerScore(), killedBaseDefender(), killedBaseOffender(), killedHeroWeaponEnemy(), PlayerKilled_Kill(), process_killstreak_assist_score(), scoreEventPlayerKill(), and specialistMedalAchievement().
function printAndSoundOnEveryone | ( | team | , |
enemyteam | , | ||
printFriendly | , | ||
printEnemy | , | ||
soundFriendly | , | ||
soundEnemy | , | ||
printarg | |||
) |
Definition at line 252 of file _util.gsc.
Referenced by flagCapturedFromNeutral(), flagCapturedFromTeam(), flagNeutralized(), onCapture(), onDrop(), and onPickup().
function register_player_contract_event | ( | event_name | , |
event_func | , | ||
max_param_count | = 0 |
||
) |
Definition at line 1147 of file _util.gsc.
Referenced by start_gametype().
function registerNumLives | ( | minValue | , |
maxValue | , | ||
teamLivesMinValue | , | ||
teamLivesMaxValue | |||
) |
function registerRoundLimit | ( | minValue | , |
maxValue | |||
) |
Definition at line 622 of file _util.gsc.
References clamp().
Referenced by Callback_StartGameType(), and main().
function registerRoundScoreLimit | ( | minValue | , |
maxValue | |||
) |
Definition at line 647 of file _util.gsc.
References clamp().
Referenced by Callback_StartGameType(), and main().
function registerRoundSwitch | ( | minValue | , |
maxValue | |||
) |
function registerRoundWinLimit | ( | minValue | , |
maxValue | |||
) |
Definition at line 630 of file _util.gsc.
References clamp().
Referenced by Callback_StartGameType(), and main().
function registerScoreLimit | ( | minValue | , |
maxValue | |||
) |
Definition at line 638 of file _util.gsc.
References clamp().
Referenced by Callback_StartGameType(), main(), and onStartGameType().
function registerTimeLimit | ( | minValue | , |
maxValue | |||
) |
Definition at line 655 of file _util.gsc.
References clamp().
Referenced by Callback_StartGameType(), main(), and onStartGameType().
function remove_trigger_from_ent | ( | ent | ) |
Definition at line 480 of file _util.gsc.
Referenced by trigger_thread(), and trigger_thread_death_monitor().
function screen_message_create | ( | string_message_1 | , |
string_message_2 | , | ||
string_message_3 | , | ||
n_offset_y | , | ||
n_time | |||
) |
Description:
"Function Name: screen_message_create(<string_message>)"
"Summary: Creates a HUD element at the correct position with the string or string reference passed in." "Module: Utility" "CallOn: N/A"
"Mandatory Argument(s): <string_message_1> : A string or string reference to place on the screen."
"Optional Argument(s): <string_message_2> : A second string to display below the first."
"Optional Argument(s): <string_message_3> : A third string to display below the second."
"Optional Argument(s): <n_offset_y>: Optional offset in y direction that should only be used in very specific circumstances."
"Optional Argument(s): <n_time> : Length of time to display the message."
"Example:screen_message_create( &"LEVEL_STRING" );"
"Single Player / Multi Player: singleplayer"
Definition at line 762 of file _util.gsc.
References screen_message_delete().
function screen_message_delete | ( | delay | ) |
Description:
"Function Name: screen_message_delete()"
"Summary: Deletes the current message being displayed on the screen made using screen_message_create." "Module: Utility" "CallOn: N/A"
"Example:screen_message_delete();"
"Single Player / Multi Player: singleplayer"
Definition at line 885 of file _util.gsc.
References delay().
Referenced by screen_message_create().
function self_delete | ( | ) |
Description:
"Function Name: self_delete()"
"Summary: Just calls the delete() script command on self. Reason for this is so that we can use array::thread_all to delete entities" "Module: Entity" "CallOn: An entity"
"Example:ai[ 0 ] thread self_delete();"
"Single Player / Multi Player: singleplayer"
Definition at line 739 of file _util.gsc.
Referenced by blocker_trigger_think(), delete_in_createfx(), do_zombie_explode(), monkey_cleanup(), octobomb_cleanup(), player_throw_octobomb(), remove_chunk(), and zombie_ragdoll_then_explode().
function set_dvar_float_if_unset | ( | dvar | , |
value | , | ||
reset | |||
) |
function set_dvar_if_unset | ( | dvar | , |
value | , | ||
reset | |||
) |
Definition at line 420 of file _util.gsc.
Referenced by init(), and onSpawnPlayer_Unified().
function set_dvar_int_if_unset | ( | dvar | , |
value | , | ||
reset | |||
) |
Definition at line 453 of file _util.gsc.
Referenced by init(), and QRDrone_leave_on_timeout().
function set_team_radar | ( | team | , |
value | |||
) |
Definition at line 1129 of file _util.gsc.
Referenced by SatelliteTracker(), and UAVTracker().
function setLowerMessage | ( | text | , |
time | , | ||
combineMessageAndTimer | |||
) |
Definition at line 86 of file _util.gsc.
Referenced by clearLowerMessage(), default_spawnMessage(), and waitAndSpawnClient().
function setLowerMessageValue | ( | text | , |
value | , | ||
combineMessage | |||
) |
function setObjectiveHintText | ( | team | , |
text | |||
) |
Definition at line 595 of file _util.gsc.
Referenced by onStartGameType(), and setupTeam().
function setObjectiveScoreText | ( | team | , |
text | |||
) |
Definition at line 590 of file _util.gsc.
Referenced by onStartGameType(), and setupTeam().
function setObjectiveText | ( | team | , |
text | |||
) |
Definition at line 585 of file _util.gsc.
Referenced by onStartGameType(), and setupTeam().
function setUsingRemote | ( | remoteName | , |
set_killstreak_delay_killcam | = true |
||
) |
Definition at line 569 of file _util.gsc.
References isUsingRemote(), set_killstreak_delay_killcam(), and set_player_uimodel().
Referenced by _fire(), EnterHelicopter(), remote_mortar_killstreak(), startQRDrone(), and UseRemoteControlWeapon().
function show_hint_text | ( | str_text_to_show | , |
b_should_blink | = false , |
||
str_turn_off_notify | = HINT_TEXT_TURN_OFF_NOTIFY , |
||
n_display_time | = HINT_TEXT_DISPLAY_TIME_DEFAULT |
||
) |
Description:
"Function Name: show_hint_text"
"Summary: Displays hint text for an amount of time. Can be turned off by sending a notify, or by calling hide_hint_text()."
"Mandatory Argument(s): <str_text_to_show> : The text to display."
"Optional Argument(s): <b_should_blink> : Should this menu flash on and off?"
"Optional Argument(s): <str_turn_off_notify> : The use this notify to turn off the hint text."
"Optional Argument(s): <n_display_time> : Override how many seconds the text is displayed for."
"Example:show_hint_text( "Your help text here!", "notify_hide_help_text" );"
Definition at line 1042 of file _util.gsc.
References fade_hint_text_after_time(), hide_hint_text(), hide_hint_text_listener(), HINT_TEXT_TURN_OFF_NOTIFY, and play_animation().
Referenced by default_power_full(), show_tutorial_hint(), watchFirstUse(), and wield_gravityspikes().
function trigger_thread | ( | ent | , |
on_enter_payload | , | ||
on_exit_payload | |||
) |
Definition at line 515 of file _util.gsc.
References add_trigger_to_ent(), ent_already_in_trigger(), remove_trigger_from_ent(), and trigger_thread_death_monitor().
Referenced by speed_test(), and watchCheckpointTrigger().
function trigger_thread_death_monitor | ( | ent | , |
ender | |||
) |
Definition at line 508 of file _util.gsc.
References remove_trigger_from_ent().
Referenced by trigger_thread().
function use_button_pressed | ( | ) |
Definition at line 1008 of file _util.gsc.
Referenced by waittill_use_button_pressed().
function wait_endon | ( | waitTime | , |
endOnString | , | ||
endonString2 | , | ||
endonString3 | , | ||
endonString4 | |||
) |
Definition at line 396 of file _util.gsc.
Referenced by dog_leave(), dog_manager_abort(), dog_patrol(), update_carry_object_objective_origin(), and update_carry_object_origin().
function waittill_use_button_pressed | ( | ) |
Description:
"Function Name: waittill_use_button_pressed()"
"Summary: Waits until the player is pressing their use button." "Module: Player"
"Example:level.player waittill_use_button_pressed()"
"Single Player / Multi Player: SP"
Definition at line 1024 of file _util.gsc.
References use_button_pressed().
function warning | ( | msg | ) |
Definition at line 38 of file _util.gsc.
Referenced by get_align_ent(), and GetFirstAvailableOffsetIndex().
function within_fov | ( | start_origin | , |
start_angles | , | ||
end_origin | , | ||
fov | |||
) |
Description:
"Function Name: within_fov( <start_origin> , <start_angles> , <end_origin> , <fov> )"
"Summary: Returns true if < end_origin > is within the players field of view, otherwise returns false." "Module: Vector" "CallOn: "
"Mandatory Argument(s): <start_origin> : starting origin for FOV check( usually the players origin )"
"Mandatory Argument(s): <start_angles> : angles to specify facing direction( usually the players angles )"
"Mandatory Argument(s): <end_origin> : origin to check if it's in the FOV"
"Mandatory Argument(s): <fov> : cosine of the FOV angle to use"
"Example:qBool = within_fov( level.player.origin, level.player.angles, target1.origin, cos( 45 ) );"
"Single Player / Multi Player: multiplayer"
Definition at line 56 of file _util.gsc.
Referenced by apothiconCanBamfInternal(), apothiconCanJuke(), back_to_near_owner_check(), Callback_PlayerKilled(), is_point_in_view(), RunBamfReAdjustmentAnalysis(), and should_go_to_near_owner().