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

Go to the source code of this file.

Macros

#define FR_DEATH_PENALTY_SECONDS   5.0
 
#define FR_NUM_TRACKS   1
 
#define FR_SPAWN_Z_OFFSET   5.0
 
#define HIGH_SCORE_COUNT   3
 
#define TUTORIAL_TEXT_HINT_TIME   4.0
 

Functions

function _show_tutorial_hint_with_vo (text, time, unlock_player)
 
function _tutorial_mode (b_tutorial_mode)
 
function activate_tutorial_mode ()
 
function activateTrack (trackIndex)
 
function add_current_run_to_high_scores (player)
 
function blocker_disable ()
 
function blocker_enable ()
 
function create_high_score_struct (time, faults, retries, bulletPenalty)
 
function dpad_down_pressed ()
 
function dpad_left_pressed ()
 
function dpad_right_pressed ()
 
function dpad_up_pressed ()
 
function enable_all_tutorial_triggers ()
 
function end_game_state ()
 
function faultDeath ()
 
function freerunMusic (start=true)
 
function freeze ()
 
function get_checkpoint_times_for_track (trackIndex)
 
function get_current_track_time (player)
 
function get_high_score_stat (trackIndex, slot, stat)
 
function get_stats_for_track (trackIndex, slot)
 
function get_top_scores_stats ()
 
function getGroundPointForOrigin (position)
 
function giveCustomLoadout ()
 
function ignoreBulletsFired (weapon)
 
function leaveCheckpointTrigger (player)
 
function main ()
 
function on_menu_response ()
 
function on_player_connect ()
 
function on_player_damage (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, modelIndex, psOffsetTime)
 
function onCheckpointTrigger (player, endOnString)
 
function onSpawnPlayer (predictedSpawn)
 
function onStartGameType ()
 
function play_fault_VO ()
 
function play_tutorial_vo (aliasstring)
 
function play_tutorial_vo_with_hint (aliasstring, text)
 
function put_players_in_tutorial_mode ()
 
function readHighScores ()
 
function register_tutorials ()
 
function reset_all_targets ()
 
function reset_targets ()
 
function respawnAtActiveCheckpoint ()
 
function set_high_score_stat (trackIndex, slot, stat, value)
 
function setup_tutorial ()
 
function setup_weapon_targets ()
 
function setupTeam (team)
 
function show_tutorial_hint (text, time, unlock_player)
 
function show_tutorial_hint_with_full_movement (text, time)
 
function start_tutorial (tutorial)
 
function startRun ()
 
function stop_tutorial_vo ()
 
function stop_tutorial_when_restarting_track ()
 
function take_all_player_weapons (only_default, immediate)
 
function take_players_out_of_tutorial_mode ()
 
function trackPlayerOrigin ()
 
function turn_off_target (weapon)
 
function tutorial_01 ()
 
function tutorial_02 ()
 
function tutorial_03 ()
 
function tutorial_06 ()
 
function tutorial_08 ()
 
function tutorial_09 ()
 
function tutorial_10 ()
 
function tutorial_10a ()
 
function tutorial_12 ()
 
function tutorial_12a ()
 
function tutorial_13 ()
 
function tutorial_14 ()
 
function tutorial_15 ()
 
function tutorial_16 ()
 
function tutorial_17 ()
 
function tutorial_17a ()
 
function tutorial_18 ()
 
function tutorial_19 ()
 
function tutorial_20 ()
 
function unfreeze ()
 
function updateHighScores ()
 
function watch_for_game_end ()
 
function watch_target_trigger_thread (weaponObject)
 
function watchCheckpointTrigger ()
 
function watchDeathTrigger ()
 
function watchGoalTrigger ()
 
function watchStartRun (player)
 
function watchTrackSwitch ()
 
function watchTutorialTrigger ()
 
function watchUserRespawn ()
 
function watchWeaponFire ()
 
function write_checkpoint_times ()
 
function write_high_scores_stats (start_index)
 

Macro Definition Documentation

◆ FR_DEATH_PENALTY_SECONDS

#define FR_DEATH_PENALTY_SECONDS   5.0

Definition at line 49 of file fr.gsc.

◆ FR_NUM_TRACKS

#define FR_NUM_TRACKS   1

Definition at line 50 of file fr.gsc.

◆ FR_SPAWN_Z_OFFSET

#define FR_SPAWN_Z_OFFSET   5.0

Definition at line 51 of file fr.gsc.

◆ HIGH_SCORE_COUNT

#define HIGH_SCORE_COUNT   3

Definition at line 55 of file fr.gsc.

◆ TUTORIAL_TEXT_HINT_TIME

#define TUTORIAL_TEXT_HINT_TIME   4.0

Definition at line 53 of file fr.gsc.

Function Documentation

◆ _show_tutorial_hint_with_vo()

function _show_tutorial_hint_with_vo ( text  ,
time  ,
unlock_player   
)

Definition at line 1428 of file fr.gsc.

References show_tutorial_hint().

Referenced by play_tutorial_vo_with_hint().

◆ _tutorial_mode()

function _tutorial_mode ( b_tutorial_mode  )

Definition at line 1279 of file fr.gsc.

Referenced by put_players_in_tutorial_mode(), and take_players_out_of_tutorial_mode().

◆ activate_tutorial_mode()

function activate_tutorial_mode ( )

Definition at line 1316 of file fr.gsc.

References watchTutorialTrigger().

Referenced by onSpawnPlayer().

◆ activateTrack()

◆ add_current_run_to_high_scores()

function add_current_run_to_high_scores ( player  )

◆ blocker_disable()

function blocker_disable ( )

Definition at line 834 of file fr.gsc.

Referenced by turn_off_target().

◆ blocker_enable()

function blocker_enable ( )

Definition at line 825 of file fr.gsc.

Referenced by reset_targets().

◆ create_high_score_struct()

function create_high_score_struct ( time  ,
faults  ,
retries  ,
bulletPenalty   
)

◆ dpad_down_pressed()

function dpad_down_pressed ( )

Definition at line 904 of file fr.gsc.

Referenced by watchUserRespawn().

◆ dpad_left_pressed()

function dpad_left_pressed ( )

Definition at line 914 of file fr.gsc.

Referenced by watchTrackSwitch().

◆ dpad_right_pressed()

function dpad_right_pressed ( )

Definition at line 909 of file fr.gsc.

Referenced by watchTrackSwitch().

◆ dpad_up_pressed()

function dpad_up_pressed ( )

Definition at line 899 of file fr.gsc.

Referenced by watchTrackSwitch().

◆ enable_all_tutorial_triggers()

function enable_all_tutorial_triggers ( )

Definition at line 1305 of file fr.gsc.

Referenced by activateTrack().

◆ end_game_state()

function end_game_state ( )

Definition at line 919 of file fr.gsc.

References FR_STATE_DIALOG, FR_STATE_FINISHED, FR_STATE_QUIT, and get().

Referenced by watch_for_game_end(), watchTrackSwitch(), and watchUserRespawn().

◆ faultDeath()

function faultDeath ( )

Definition at line 887 of file fr.gsc.

References play_fault_VO(), respawnAtActiveCheckpoint(), and set().

Referenced by on_player_damage(), onSpawnPlayer(), and watchDeathTrigger().

◆ freerunMusic()

function freerunMusic ( start  = true)

Definition at line 1262 of file fr.gsc.

References IS_TRUE, and set_music_on_player().

Referenced by on_menu_response(), onSpawnPlayer(), watchGoalTrigger(), and watchTrackSwitch().

◆ freeze()

function freeze ( )

Definition at line 724 of file fr.gsc.

References freeze_player_controls().

Referenced by freeze_players(), and watchGoalTrigger().

◆ get_checkpoint_times_for_track()

function get_checkpoint_times_for_track ( trackIndex  )

Definition at line 1181 of file fr.gsc.

Referenced by get_top_scores_stats().

◆ get_current_track_time()

function get_current_track_time ( player  )

◆ get_high_score_stat()

function get_high_score_stat ( trackIndex  ,
slot  ,
stat   
)

Definition at line 1154 of file fr.gsc.

Referenced by get_stats_for_track().

◆ get_stats_for_track()

function get_stats_for_track ( trackIndex  ,
slot   
)

Definition at line 1171 of file fr.gsc.

References create_high_score_struct(), and get_high_score_stat().

Referenced by get_top_scores_stats().

◆ get_top_scores_stats()

function get_top_scores_stats ( )

◆ getGroundPointForOrigin()

function getGroundPointForOrigin ( position  )

Definition at line 1057 of file fr.gsc.

References trace().

Referenced by onCheckpointTrigger().

◆ giveCustomLoadout()

function giveCustomLoadout ( )

Definition at line 1110 of file fr.gsc.

Referenced by activateTrack(), and main().

◆ ignoreBulletsFired()

function ignoreBulletsFired ( weapon  )

Definition at line 1014 of file fr.gsc.

Referenced by watchWeaponFire().

◆ leaveCheckpointTrigger()

function leaveCheckpointTrigger ( player  )

Definition at line 529 of file fr.gsc.

References watchCheckpointTrigger().

Referenced by watchCheckpointTrigger().

◆ main()

◆ on_menu_response()

function on_menu_response ( )

Definition at line 341 of file fr.gsc.

References activateTrack(), and freerunMusic().

Referenced by on_player_connect().

◆ on_player_connect()

function on_player_connect ( )

Definition at line 336 of file fr.gsc.

References on_menu_response().

Referenced by main().

◆ on_player_damage()

function on_player_damage ( eInflictor  ,
eAttacker  ,
iDamage  ,
iDFlags  ,
sMeansOfDeath  ,
weapon  ,
vPoint  ,
vDir  ,
sHitLoc  ,
modelIndex  ,
psOffsetTime   
)

Definition at line 389 of file fr.gsc.

References faultDeath().

◆ onCheckpointTrigger()

function onCheckpointTrigger ( player  ,
endOnString   
)

◆ onSpawnPlayer()

function onSpawnPlayer ( predictedSpawn  )

◆ onStartGameType()

◆ play_fault_VO()

function play_fault_VO ( )

Definition at line 868 of file fr.gsc.

Referenced by faultDeath().

◆ play_tutorial_vo()

function play_tutorial_vo ( aliasstring  )

◆ play_tutorial_vo_with_hint()

function play_tutorial_vo_with_hint ( aliasstring  ,
text   
)

Definition at line 1416 of file fr.gsc.

References _show_tutorial_hint_with_vo(), and stop_tutorial_vo().

Referenced by tutorial_09(), tutorial_13(), and tutorial_18().

◆ put_players_in_tutorial_mode()

function put_players_in_tutorial_mode ( )

Definition at line 1294 of file fr.gsc.

References _tutorial_mode().

Referenced by start_tutorial().

◆ readHighScores()

function readHighScores ( )

Definition at line 415 of file fr.gsc.

References get_top_scores_stats(), and updateHighScores().

Referenced by activateTrack().

◆ register_tutorials()

◆ reset_all_targets()

function reset_all_targets ( )

Definition at line 857 of file fr.gsc.

References reset_targets().

Referenced by activateTrack(), and respawnAtActiveCheckpoint().

◆ reset_targets()

function reset_targets ( )

Definition at line 846 of file fr.gsc.

References blocker_enable().

Referenced by onCheckpointTrigger(), and reset_all_targets().

◆ respawnAtActiveCheckpoint()

function respawnAtActiveCheckpoint ( )

◆ set_high_score_stat()

function set_high_score_stat ( trackIndex  ,
slot  ,
stat  ,
value   
)

Definition at line 1123 of file fr.gsc.

Referenced by write_high_scores_stats().

◆ setup_tutorial()

function setup_tutorial ( )

Definition at line 1336 of file fr.gsc.

References register_tutorials().

Referenced by onStartGameType().

◆ setup_weapon_targets()

function setup_weapon_targets ( )

Definition at line 734 of file fr.gsc.

References watch_target_trigger_thread().

Referenced by onStartGameType().

◆ setupTeam()

function setupTeam ( team  )

◆ show_tutorial_hint()

function show_tutorial_hint ( text  ,
time  ,
unlock_player   
)

◆ show_tutorial_hint_with_full_movement()

function show_tutorial_hint_with_full_movement ( text  ,
time   
)

◆ start_tutorial()

function start_tutorial ( tutorial  )

◆ startRun()

function startRun ( )

Definition at line 491 of file fr.gsc.

References FR_STATE_RUNNING, get_current_track_time(), set(), and watchUserRespawn().

Referenced by watchStartRun().

◆ stop_tutorial_vo()

function stop_tutorial_vo ( )

◆ stop_tutorial_when_restarting_track()

function stop_tutorial_when_restarting_track ( )

Definition at line 1363 of file fr.gsc.

References hide_hint_text(), stop_tutorial_vo(), and take_players_out_of_tutorial_mode().

Referenced by start_tutorial().

◆ take_all_player_weapons()

function take_all_player_weapons ( only_default  ,
immediate   
)

Definition at line 1220 of file fr.gsc.

Referenced by onCheckpointTrigger(), respawnAtActiveCheckpoint(), and watchGoalTrigger().

◆ take_players_out_of_tutorial_mode()

function take_players_out_of_tutorial_mode ( )

◆ trackPlayerOrigin()

function trackPlayerOrigin ( )

Definition at line 402 of file fr.gsc.

References WAIT_SERVER_FRAME.

Referenced by onSpawnPlayer().

◆ turn_off_target()

function turn_off_target ( weapon  )

Definition at line 813 of file fr.gsc.

References blocker_disable().

Referenced by watch_target_trigger_thread().

◆ tutorial_01()

function tutorial_01 ( )

Definition at line 1477 of file fr.gsc.

References play_tutorial_vo().

Referenced by register_tutorials().

◆ tutorial_02()

function tutorial_02 ( )

Definition at line 1484 of file fr.gsc.

References show_tutorial_hint_with_full_movement().

Referenced by register_tutorials().

◆ tutorial_03()

function tutorial_03 ( )

Definition at line 1489 of file fr.gsc.

References show_tutorial_hint_with_full_movement().

Referenced by register_tutorials().

◆ tutorial_06()

function tutorial_06 ( )

Definition at line 1494 of file fr.gsc.

References play_tutorial_vo(), and show_tutorial_hint_with_full_movement().

Referenced by register_tutorials().

◆ tutorial_08()

function tutorial_08 ( )

Definition at line 1500 of file fr.gsc.

References show_tutorial_hint_with_full_movement().

Referenced by register_tutorials().

◆ tutorial_09()

function tutorial_09 ( )

Definition at line 1505 of file fr.gsc.

References play_tutorial_vo_with_hint().

Referenced by register_tutorials().

◆ tutorial_10()

function tutorial_10 ( )

Definition at line 1510 of file fr.gsc.

References play_tutorial_vo().

Referenced by register_tutorials().

◆ tutorial_10a()

function tutorial_10a ( )

Definition at line 1515 of file fr.gsc.

References show_tutorial_hint_with_full_movement().

Referenced by register_tutorials().

◆ tutorial_12()

function tutorial_12 ( )

Definition at line 1520 of file fr.gsc.

References play_tutorial_vo().

Referenced by register_tutorials().

◆ tutorial_12a()

function tutorial_12a ( )

Definition at line 1525 of file fr.gsc.

References show_tutorial_hint_with_full_movement().

Referenced by register_tutorials().

◆ tutorial_13()

function tutorial_13 ( )

◆ tutorial_14()

function tutorial_14 ( )

Definition at line 1537 of file fr.gsc.

References play_tutorial_vo(), and show_tutorial_hint_with_full_movement().

Referenced by register_tutorials().

◆ tutorial_15()

function tutorial_15 ( )

Definition at line 1543 of file fr.gsc.

References play_tutorial_vo().

Referenced by register_tutorials().

◆ tutorial_16()

function tutorial_16 ( )

Definition at line 1548 of file fr.gsc.

References play_tutorial_vo().

Referenced by register_tutorials().

◆ tutorial_17()

function tutorial_17 ( )

Definition at line 1553 of file fr.gsc.

References play_tutorial_vo().

Referenced by register_tutorials().

◆ tutorial_17a()

function tutorial_17a ( )

Definition at line 1558 of file fr.gsc.

References show_tutorial_hint_with_full_movement().

Referenced by register_tutorials().

◆ tutorial_18()

function tutorial_18 ( )

Definition at line 1564 of file fr.gsc.

References play_tutorial_vo_with_hint(), and show_tutorial_hint_with_full_movement().

Referenced by register_tutorials().

◆ tutorial_19()

function tutorial_19 ( )

Definition at line 1570 of file fr.gsc.

References play_tutorial_vo().

Referenced by register_tutorials().

◆ tutorial_20()

function tutorial_20 ( )

Definition at line 1575 of file fr.gsc.

References play_tutorial_vo().

Referenced by register_tutorials().

◆ unfreeze()

function unfreeze ( )

Definition at line 729 of file fr.gsc.

References freeze_player_controls().

Referenced by activateTrack().

◆ updateHighScores()

function updateHighScores ( )

Definition at line 422 of file fr.gsc.

References set().

Referenced by readHighScores(), and watchGoalTrigger().

◆ watch_for_game_end()

function watch_for_game_end ( )

Definition at line 324 of file fr.gsc.

References end_game_state(), FR_STATE_QUIT, set(), and stop_tutorial_vo().

Referenced by onStartGameType().

◆ watch_target_trigger_thread()

function watch_target_trigger_thread ( weaponObject  )

Definition at line 789 of file fr.gsc.

References damage(), PlayFx(), and turn_off_target().

Referenced by setup_weapon_targets().

◆ watchCheckpointTrigger()

function watchCheckpointTrigger ( )

◆ watchDeathTrigger()

function watchDeathTrigger ( )

Definition at line 602 of file fr.gsc.

References faultDeath().

Referenced by onStartGameType().

◆ watchGoalTrigger()

◆ watchStartRun()

function watchStartRun ( player  )

Definition at line 1063 of file fr.gsc.

References startRun().

Referenced by activateTrack().

◆ watchTrackSwitch()

function watchTrackSwitch ( )

◆ watchTutorialTrigger()

function watchTutorialTrigger ( )

Definition at line 1347 of file fr.gsc.

References start_tutorial().

Referenced by activate_tutorial_mode().

◆ watchUserRespawn()

function watchUserRespawn ( )

Definition at line 979 of file fr.gsc.

References dpad_down_pressed(), end_game_state(), respawnAtActiveCheckpoint(), and set().

Referenced by startRun().

◆ watchWeaponFire()

function watchWeaponFire ( )

Definition at line 1038 of file fr.gsc.

References ignoreBulletsFired(), and set().

Referenced by onSpawnPlayer().

◆ write_checkpoint_times()

function write_checkpoint_times ( )

Definition at line 1144 of file fr.gsc.

Referenced by add_current_run_to_high_scores().

◆ write_high_scores_stats()

function write_high_scores_stats ( start_index  )

Definition at line 1128 of file fr.gsc.

References HIGH_SCORE_COUNT, and set_high_score_stat().

Referenced by add_current_run_to_high_scores().