![]() |
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 | CAPTURE_CONDITION_AT_BASE 1 |
#define | CAPTURE_CONDITION_NONE 0 |
#define | OBJECTIVE_FLAG_AT_BASE 0 |
#define | OBJECTIVE_FLAG_AWAY 1 |
#define | OBJECTIVE_FLAG_RETURN_SCORE_DIST 300 |
Functions | |
function | __init__ () |
function | claim_trigger (trigger) |
function | clearReturnFlagHudElems () |
function | createFlag (trigger) |
function | createFlagHint (team, origin) |
function | createFlagSpawnInfluencer (entityTeam) |
function | createFlagZone (trigger) |
function | createReturnMessageElems () |
function | ctf () |
function | ctf_getTeamKillPenalty (eInflictor, attacker, sMeansOfDeath, weapon) |
function | ctf_getTeamKillScore (eInflictor, attacker, sMeansOfDeath, weapon) |
function | ctf_icon_hide () |
function | getOtherFlag (flag) |
function | giveFlagCaptureXP (player) |
function | isHome () |
function | main () |
function | minutesAndSecondsString (milliseconds) |
function | onCapture (player) |
function | onDrop (player) |
function | onEndGame (winningTeam) |
function | onPickup (player) |
function | OnPickupMusicState (player) |
function | onPlayerKilled (eInflictor, attacker, iDamage, sMeansOfDeath, weapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration) |
function | onPrecacheGameType () |
function | onReset () |
function | onRoundEndGame (winningTeam) |
function | onRoundSwitch () |
function | onSpawnPlayer (predictedSpawn) |
function | onStartGameType () |
function | removeInfluencers () |
function | returnFlag () |
function | returnFlagAfterTimeMsg (time) |
function | returnFlagHudElems (time) |
function | setMatchScoreHUDElemForTeam (team) |
function | shouldPlayOvertimeRound () |
function | turn_off () |
function | turn_on () |
function | update_hints () |
function | updateGametypeDvars () |
function | updateTeamScoreByFlagsCaptured () |
function | updateTeamScoreByRoundsWon () |
function __init__ | ( | ) |
Definition at line 123 of file ctf.gsc.
References register(), and VERSION_SHIP.
function claim_trigger | ( | trigger | ) |
Definition at line 1351 of file ctf.gsc.
Referenced by onPickup().
function clearReturnFlagHudElems | ( | ) |
Definition at line 1303 of file ctf.gsc.
References get_owner_team().
Referenced by onPickup(), onReset(), and returnFlagAfterTimeMsg().
function createFlag | ( | trigger | ) |
Definition at line 520 of file ctf.gsc.
References allow_carry(), create_carry_object(), get_flag_carry_model(), get_flag_model(), getOtherTeam(), onDrop(), onPickup(), onReset(), set_2d_icon(), set_3d_icon(), set_team_use_time(), set_visible_carrier_model(), set_visible_team(), and spawn().
Referenced by ctf().
function createFlagHint | ( | team | , |
origin | |||
) |
function createFlagSpawnInfluencer | ( | entityTeam | ) |
Definition at line 1360 of file ctf.gsc.
References create_influencer(), getOtherTeam(), and getTeamMask().
Referenced by createFlagZone().
function createFlagZone | ( | trigger | ) |
Definition at line 573 of file ctf.gsc.
References allow_use(), create_use_object(), createFlagSpawnInfluencer(), getOtherTeam(), onCapture(), set_key_object(), set_use_text(), set_use_time(), and set_visible_team().
Referenced by ctf().
function createReturnMessageElems | ( | ) |
Definition at line 1234 of file ctf.gsc.
References createServerTimer(), and setPoint().
Referenced by ctf().
function ctf | ( | ) |
Definition at line 616 of file ctf.gsc.
References createFlag(), createFlagHint(), createFlagZone(), createReturnMessageElems(), get_owner_team(), and getOtherTeamsMask().
Referenced by onStartGameType().
function ctf_getTeamKillPenalty | ( | eInflictor | , |
attacker | , | ||
sMeansOfDeath | , | ||
weapon | |||
) |
Definition at line 1370 of file ctf.gsc.
References default_getTeamKillPenalty().
Referenced by main().
function ctf_getTeamKillScore | ( | eInflictor | , |
attacker | , | ||
sMeansOfDeath | , | ||
weapon | |||
) |
function ctf_icon_hide | ( | ) |
function giveFlagCaptureXP | ( | player | ) |
function main | ( | ) |
Definition at line 128 of file ctf.gsc.
References ctf_getTeamKillPenalty(), ctf_getTeamKillScore(), ctf_icon_hide(), init(), onEndGame(), onPlayerKilled(), onPrecacheGameType(), onRoundEndGame(), onRoundSwitch(), onSpawnPlayer(), onStartGameType(), register_allowed_gameobject(), registerFriendlyFireDelay(), registerNumLives(), registerRoundLimit(), registerRoundSwitch(), registerRoundWinLimit(), registerScoreLimit(), registerTimeLimit(), set_leader_gametype_dialog(), setMatchScoreHUDElemForTeam(), setvisiblescoreboardcolumns(), and shouldPlayOvertimeRound().
function minutesAndSecondsString | ( | milliseconds | ) |
Definition at line 333 of file ctf.gsc.
Referenced by setMatchScoreHUDElemForTeam().
function onCapture | ( | player | ) |
Definition at line 976 of file ctf.gsc.
References allow_carry(), allow_use(), bookmark(), CAPTURE_CONDITION_AT_BASE, capturedObjective(), CLIENT_FIELD_CTF_CARRIER, DisplayTeamMessageToTeam(), getOtherTeam(), giveFlagCaptureXP(), giveTeamScoreForObjective(), is_object_away_from_home(), leader_dialog(), play_2d_on_team(), printAndSoundOnEveryone(), removeInfluencers(), return_home(), set(), and set_visible_team().
Referenced by createFlagZone().
function onDrop | ( | player | ) |
Definition at line 707 of file ctf.gsc.
References allow_carry(), CLIENT_FIELD_CTF_CARRIER, create_entity_influencer(), DisplayTeamMessageToTeam(), get_owner_team(), getOtherTeam(), getTeamMask(), leader_dialog(), play_2d_on_team(), play_on_players(), printAndSoundOnEveryone(), removeInfluencers(), returnFlagAfterTimeMsg(), set(), set_2d_icon(), set_3d_icon(), set_visible_team(), and turn_off().
Referenced by createFlag(), generate_zombie_craftable_piece(), and set_dropped().
function onEndGame | ( | winningTeam | ) |
function onPickup | ( | player | ) |
Definition at line 797 of file ctf.gsc.
References allow_carry(), bookmark(), claim_trigger(), clearReturnFlagHudElems(), CLIENT_FIELD_CTF_CARRIER, create_entity_masked_enemy_influencer(), create_entity_masked_friendly_influencer(), DisplayTeamMessageToTeam(), get_owner_team(), getOtherTeam(), getTeamMask(), leader_dialog(), OBJECTIVE_FLAG_AT_BASE, OBJECTIVE_FLAG_AWAY, OBJECTIVE_FLAG_RETURN_SCORE_DIST, play_2d_on_team(), printAndSoundOnEveryone(), processScoreEvent(), remove_influencer(), removeInfluencers(), returnFlag(), set(), set_2d_icon(), set_3d_icon(), set_flags(), set_visible_team(), and update_hints().
Referenced by createFlag().
function onPlayerKilled | ( | eInflictor | , |
attacker | , | ||
iDamage | , | ||
sMeansOfDeath | , | ||
weapon | , | ||
vDir | , | ||
sHitLoc | , | ||
psOffsetTime | , | ||
deathAnimDuration | |||
) |
Definition at line 1085 of file ctf.gsc.
References killedBaseDefender(), killedBaseOffender(), and processScoreEvent().
Referenced by main().
function onReset | ( | ) |
Definition at line 1052 of file ctf.gsc.
References allow_carry(), allow_use(), clearReturnFlagHudElems(), get_owner_team(), OBJECTIVE_FLAG_AT_BASE, removeInfluencers(), set(), set_2d_icon(), set_3d_icon(), set_flags(), set_visible_team(), and update_hints().
Referenced by createFlag(), and return_home().
function onRoundEndGame | ( | winningTeam | ) |
Definition at line 419 of file ctf.gsc.
References determineTeamWinnerByGameStat(), determineTeamWinnerByTeamScore(), updateTeamScoreByFlagsCaptured(), and updateTeamScoreByRoundsWon().
Referenced by main().
function onSpawnPlayer | ( | predictedSpawn | ) |
Definition at line 488 of file ctf.gsc.
References CLIENT_FIELD_CTF_CARRIER, and set().
Referenced by main().
function onStartGameType | ( | ) |
Definition at line 193 of file ctf.gsc.
References add_fallback_spawnpoints(), add_spawn_points(), create_map_placed_influencers(), ctf(), find_box_center(), get_random_intermission_point(), get_spawnpoint_array(), getOtherTeam(), place_spawn_points(), registerScoreLimit(), registerTimeLimit(), resetTeamScores(), setObjectiveHintText(), setObjectiveScoreText(), setObjectiveText(), update_fallback_spawnpoints(), updateAllSpawnPoints(), and updateGametypeDvars().
Referenced by main().
function removeInfluencers | ( | ) |
Definition at line 685 of file ctf.gsc.
References remove_influencer().
Referenced by onCapture(), onDrop(), onPickup(), onReset(), and returnFlagAfterTimeMsg().
function returnFlag | ( | ) |
Definition at line 946 of file ctf.gsc.
References allow_carry(), allow_use(), get_owner_team(), getOtherTeam(), leader_dialog(), play_2d_on_team(), return_home(), set_2d_icon(), set_3d_icon(), set_visible_team(), and update_hints().
Referenced by onPickup().
function returnFlagAfterTimeMsg | ( | time | ) |
Definition at line 1261 of file ctf.gsc.
References clearReturnFlagHudElems(), removeInfluencers(), result(), and returnFlagHudElems().
Referenced by onDrop().
function returnFlagHudElems | ( | time | ) |
Definition at line 1280 of file ctf.gsc.
References get_owner_team().
Referenced by returnFlagAfterTimeMsg().
function setMatchScoreHUDElemForTeam | ( | team | ) |
Definition at line 348 of file ctf.gsc.
References minutesAndSecondsString().
Referenced by main(), setup_callbacks(), and SetupCallbacks().
function shouldPlayOvertimeRound | ( | ) |
Definition at line 293 of file ctf.gsc.
References getRoundsWon(), and hitRoundLimit().
Referenced by main().
function turn_off | ( | ) |
Definition at line 1319 of file ctf.gsc.
Referenced by createFlagHint(), onDrop(), register_gadget_activation_callbacks(), turn_gadget_off(), and update_hints().
function turn_on | ( | ) |
Definition at line 1311 of file ctf.gsc.
Referenced by register_gadget_activation_callbacks(), turn_gadget_on(), and update_hints().
function update_hints | ( | ) |
Definition at line 1324 of file ctf.gsc.
References is_object_away_from_home(), turn_off(), and turn_on().
Referenced by onPickup(), onReset(), and returnFlag().
function updateGametypeDvars | ( | ) |
Definition at line 497 of file ctf.gsc.
Referenced by onStartGameType().
function updateTeamScoreByFlagsCaptured | ( | ) |
Definition at line 408 of file ctf.gsc.
Referenced by onRoundEndGame().
function updateTeamScoreByRoundsWon | ( | ) |
Definition at line 397 of file ctf.gsc.
Referenced by onRoundEndGame().