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

Go to the source code of this file.

Macros

#define ABSOLUTE_STAT_PATH_COL   9
 
#define AR_KILL_INDEX   1019
 
#define ARENA_WINS_INDEX   1001
 
#define ATTACHMENT_COUNT_FOR_LOADED_WEAPON_KILL   4
 
#define ATTACKER_DEFENDER_KILLS_INDEX   6
 
#define BALL_WINS_INDEX   1003
 
#define BIG_KILLS_INDEX   4
 
#define BIG_KILLS_KILLSTREAK_INDEX   8
 
#define BIG_KILLS_SPECIALIST_WEAPON_INDEX   7
 
#define BIG_MEDALS_SPECIALIST_ABILITIES_INDEX   3
 
#define BIG_OBJECTIVE_WINS_INDEX   2
 
#define BIG_SCORE_INDEX   5
 
#define BIG_TOTAL_WINS_INDEX   1
 
#define CALLING_CARD_STAT_COL   7
 
#define CK_COST_COL   6
 
#define CLEAN_WINS_INDEX   1029
 
#define CONF_WINS_INDEX   1005
 
#define CONTRACT_TABLE   "gamedata/tables/mp/mp_contractTable.csv"
 
#define CONTRACT_TYPE   5
 
#define CTF_WINS_INDEX   1026
 
#define DEFAULT_CRYPTOKEY_LOOTXP   100
 
#define DEFAULT_DAILY_CRYPTOKEYS   10
 
#define DEFAULT_DEBUG_CONTRACT_SLOT   MAX_CONTRACT_SLOTS - 1
 
#define DEFAULT_WEEKLY_CRYPTOKEYS   30
 
#define DEM_WINS_INDEX   1027
 
#define DM_WINS_INDEX   1028
 
#define DOM_WINS_INDEX   1008
 
#define ESCORT_WINS_INDEX   1004
 
#define FIRST_UNASSIGNED_CONTRACT_SLOT   3
 
#define HEADSHOTS_INDEX   1016
 
#define HUGE_AR_KILL_INDEX   3001
 
#define HUGE_KILLS_SPECIALIST_WEAPON_INDEX   3006
 
#define HUGE_LMG_KILL_INDEX   3003
 
#define HUGE_MELEE_WEAPON_KILL_INDEX   3005
 
#define HUGE_SHOTGUN_KILL_INDEX   3002
 
#define HUGE_SMG_KILL_INDEX   3000
 
#define HUGE_SNIPER_KILL_INDEX   3004
 
#define HUGE_TOTAL_WINS_INDEX   3007
 
#define HUGE_TOTAL_WINS_INDEX_2   3008
 
#define HUGE_TOTAL_WINS_INDEX_3   3009
 
#define HUGE_TOTAL_WINS_INDEX_4   3011
 
#define HUGE_TOTAL_WINS_INDEX_5   3012
 
#define HUGE_TOTAL_WINS_INDEX_6   3013
 
#define HUGE_TOTAL_WINS_INDEX_7   3014
 
#define HUGE_TOTAL_WINS_INDEX_8   3015
 
#define HUGE_TOTAL_WINS_INDEX_GRAND_SLAM   3010
 
#define INDEX_COL   0
 
#define KILLED_ATTACKER_INDEX   1018
 
#define KILLED_DEFENDER_INDEX   1017
 
#define KILLS_INDEX   1015
 
#define KILLS_KILLSTREAK_INDEX   1010
 
#define KILLS_SPECIALIST_WEAPON_INDEX   1012
 
#define KILLSTREAK_SCORE_INDEX   1011
 
#define KOTH_WINS_INDEX   1007
 
#define LMG_KILL_INDEX   1022
 
#define LOADED_WEAPON_KILL_INDEX   1025
 
#define MAX_CONTRACT_SLOTS   10
 
#define MEDALS_SPECIALIST_ABILITIES_INDEX   1013
 
#define NAME_STRING_COL   3
 
#define PISTOL_KILL_INDEX   1024
 
#define SCORE_INDEX   1009
 
#define SD_WINS_INDEX   1006
 
#define SHOTGUN_KILL_INDEX   1023
 
#define SMG_KILL_INDEX   1020
 
#define SNIPER_KILL_INDEX   1021
 
#define SPECIALIST_KILLED_INDEX   1014
 
#define TARGET_VALUE_COL   2
 
#define TDM_WINS_INDEX   1002
 
#define TITLE_OVERRIDE_COL   4
 
#define TOTAL_WINS_INDEX   1000
 
#define WEAPON_CAMO_STAT_COL   8
 

Functions

function __init__ ()
 
function add_active_stat (contract_index, delta=1)
 
function add_stat (contract_index, delta)
 
function award_blackjack_contract ()
 
function award_daily_contract ()
 
function award_loot_xp ()
 
function award_loot_xp_due (amount)
 
function award_weekly_contract ()
 
function can_process_contracts ()
 
function contract_game_ended (data)
 
function contract_kills (data)
 
function contract_slot_met (slot)
 
function contract_win (winner)
 
function gametype_win (winner)
 
function get_contract_stat (slot, stat_name)
 
function get_hero_ability_mask (ability)
 
function get_hero_weapon_mask (attacker, weapon)
 
function is_contract_active (challenge_index)
 
function on_defender_kill ()
 
function on_headshot_kill ()
 
function on_hero_ability_kill (ability, victimAbility)
 
function on_hero_ability_medal ()
 
function on_hero_ability_multikill (killcount, ability)
 
function on_hero_weapon_multikill (killcount, weapon)
 
function on_killed_hero_ability_enemy ()
 
function on_killed_hero_weapon_enemy ()
 
function on_killstreak_score (delta_score, killstreak_purchased)
 
function on_offender_kill ()
 
function on_player_connect ()
 
function on_player_score (delta_score)
 
function set_contract_award_stat (award_type, stat_name, stat_value=1)
 
function set_contract_award_stat_from_path (stat_path, stat_value)
 
function set_contract_stat (slot, stat_name, stat_value)
 
function setup_player_contracts ()
 
function start_gametype ()
 

Macro Definition Documentation

◆ ABSOLUTE_STAT_PATH_COL

#define ABSOLUTE_STAT_PATH_COL   9

Definition at line 44 of file _contracts.gsc.

◆ AR_KILL_INDEX

#define AR_KILL_INDEX   1019

Definition at line 78 of file _contracts.gsc.

◆ ARENA_WINS_INDEX

#define ARENA_WINS_INDEX   1001

Definition at line 60 of file _contracts.gsc.

◆ ATTACHMENT_COUNT_FOR_LOADED_WEAPON_KILL

#define ATTACHMENT_COUNT_FOR_LOADED_WEAPON_KILL   4

Definition at line 28 of file _contracts.gsc.

◆ ATTACKER_DEFENDER_KILLS_INDEX

#define ATTACKER_DEFENDER_KILLS_INDEX   6

Definition at line 54 of file _contracts.gsc.

◆ BALL_WINS_INDEX

#define BALL_WINS_INDEX   1003

Definition at line 62 of file _contracts.gsc.

◆ BIG_KILLS_INDEX

#define BIG_KILLS_INDEX   4

Definition at line 52 of file _contracts.gsc.

◆ BIG_KILLS_KILLSTREAK_INDEX

#define BIG_KILLS_KILLSTREAK_INDEX   8

Definition at line 56 of file _contracts.gsc.

◆ BIG_KILLS_SPECIALIST_WEAPON_INDEX

#define BIG_KILLS_SPECIALIST_WEAPON_INDEX   7

Definition at line 55 of file _contracts.gsc.

◆ BIG_MEDALS_SPECIALIST_ABILITIES_INDEX

#define BIG_MEDALS_SPECIALIST_ABILITIES_INDEX   3

Definition at line 51 of file _contracts.gsc.

◆ BIG_OBJECTIVE_WINS_INDEX

#define BIG_OBJECTIVE_WINS_INDEX   2

Definition at line 50 of file _contracts.gsc.

◆ BIG_SCORE_INDEX

#define BIG_SCORE_INDEX   5

Definition at line 53 of file _contracts.gsc.

◆ BIG_TOTAL_WINS_INDEX

#define BIG_TOTAL_WINS_INDEX   1

Definition at line 49 of file _contracts.gsc.

◆ CALLING_CARD_STAT_COL

#define CALLING_CARD_STAT_COL   7

Definition at line 42 of file _contracts.gsc.

◆ CK_COST_COL

#define CK_COST_COL   6

Definition at line 41 of file _contracts.gsc.

◆ CLEAN_WINS_INDEX

#define CLEAN_WINS_INDEX   1029

Definition at line 88 of file _contracts.gsc.

◆ CONF_WINS_INDEX

#define CONF_WINS_INDEX   1005

Definition at line 64 of file _contracts.gsc.

◆ CONTRACT_TABLE

#define CONTRACT_TABLE   "gamedata/tables/mp/mp_contractTable.csv"

Definition at line 35 of file _contracts.gsc.

◆ CONTRACT_TYPE

#define CONTRACT_TYPE   5

Definition at line 40 of file _contracts.gsc.

◆ CTF_WINS_INDEX

#define CTF_WINS_INDEX   1026

Definition at line 85 of file _contracts.gsc.

◆ DEFAULT_CRYPTOKEY_LOOTXP

#define DEFAULT_CRYPTOKEY_LOOTXP   100

Definition at line 26 of file _contracts.gsc.

◆ DEFAULT_DAILY_CRYPTOKEYS

#define DEFAULT_DAILY_CRYPTOKEYS   10

Definition at line 24 of file _contracts.gsc.

◆ DEFAULT_DEBUG_CONTRACT_SLOT

#define DEFAULT_DEBUG_CONTRACT_SLOT   MAX_CONTRACT_SLOTS - 1

Definition at line 32 of file _contracts.gsc.

◆ DEFAULT_WEEKLY_CRYPTOKEYS

#define DEFAULT_WEEKLY_CRYPTOKEYS   30

Definition at line 25 of file _contracts.gsc.

◆ DEM_WINS_INDEX

#define DEM_WINS_INDEX   1027

Definition at line 86 of file _contracts.gsc.

◆ DM_WINS_INDEX

#define DM_WINS_INDEX   1028

Definition at line 87 of file _contracts.gsc.

◆ DOM_WINS_INDEX

#define DOM_WINS_INDEX   1008

Definition at line 67 of file _contracts.gsc.

◆ ESCORT_WINS_INDEX

#define ESCORT_WINS_INDEX   1004

Definition at line 63 of file _contracts.gsc.

◆ FIRST_UNASSIGNED_CONTRACT_SLOT

#define FIRST_UNASSIGNED_CONTRACT_SLOT   3

Definition at line 31 of file _contracts.gsc.

◆ HEADSHOTS_INDEX

#define HEADSHOTS_INDEX   1016

Definition at line 75 of file _contracts.gsc.

◆ HUGE_AR_KILL_INDEX

#define HUGE_AR_KILL_INDEX   3001

Definition at line 92 of file _contracts.gsc.

◆ HUGE_KILLS_SPECIALIST_WEAPON_INDEX

#define HUGE_KILLS_SPECIALIST_WEAPON_INDEX   3006

Definition at line 97 of file _contracts.gsc.

◆ HUGE_LMG_KILL_INDEX

#define HUGE_LMG_KILL_INDEX   3003

Definition at line 94 of file _contracts.gsc.

◆ HUGE_MELEE_WEAPON_KILL_INDEX

#define HUGE_MELEE_WEAPON_KILL_INDEX   3005

Definition at line 96 of file _contracts.gsc.

◆ HUGE_SHOTGUN_KILL_INDEX

#define HUGE_SHOTGUN_KILL_INDEX   3002

Definition at line 93 of file _contracts.gsc.

◆ HUGE_SMG_KILL_INDEX

#define HUGE_SMG_KILL_INDEX   3000

Definition at line 91 of file _contracts.gsc.

◆ HUGE_SNIPER_KILL_INDEX

#define HUGE_SNIPER_KILL_INDEX   3004

Definition at line 95 of file _contracts.gsc.

◆ HUGE_TOTAL_WINS_INDEX

#define HUGE_TOTAL_WINS_INDEX   3007

Definition at line 98 of file _contracts.gsc.

◆ HUGE_TOTAL_WINS_INDEX_2

#define HUGE_TOTAL_WINS_INDEX_2   3008

Definition at line 99 of file _contracts.gsc.

◆ HUGE_TOTAL_WINS_INDEX_3

#define HUGE_TOTAL_WINS_INDEX_3   3009

Definition at line 100 of file _contracts.gsc.

◆ HUGE_TOTAL_WINS_INDEX_4

#define HUGE_TOTAL_WINS_INDEX_4   3011

Definition at line 102 of file _contracts.gsc.

◆ HUGE_TOTAL_WINS_INDEX_5

#define HUGE_TOTAL_WINS_INDEX_5   3012

Definition at line 103 of file _contracts.gsc.

◆ HUGE_TOTAL_WINS_INDEX_6

#define HUGE_TOTAL_WINS_INDEX_6   3013

Definition at line 104 of file _contracts.gsc.

◆ HUGE_TOTAL_WINS_INDEX_7

#define HUGE_TOTAL_WINS_INDEX_7   3014

Definition at line 105 of file _contracts.gsc.

◆ HUGE_TOTAL_WINS_INDEX_8

#define HUGE_TOTAL_WINS_INDEX_8   3015

Definition at line 106 of file _contracts.gsc.

◆ HUGE_TOTAL_WINS_INDEX_GRAND_SLAM

#define HUGE_TOTAL_WINS_INDEX_GRAND_SLAM   3010

Definition at line 101 of file _contracts.gsc.

◆ INDEX_COL

#define INDEX_COL   0

Definition at line 36 of file _contracts.gsc.

◆ KILLED_ATTACKER_INDEX

#define KILLED_ATTACKER_INDEX   1018

Definition at line 77 of file _contracts.gsc.

◆ KILLED_DEFENDER_INDEX

#define KILLED_DEFENDER_INDEX   1017

Definition at line 76 of file _contracts.gsc.

◆ KILLS_INDEX

#define KILLS_INDEX   1015

Definition at line 74 of file _contracts.gsc.

◆ KILLS_KILLSTREAK_INDEX

#define KILLS_KILLSTREAK_INDEX   1010

Definition at line 69 of file _contracts.gsc.

◆ KILLS_SPECIALIST_WEAPON_INDEX

#define KILLS_SPECIALIST_WEAPON_INDEX   1012

Definition at line 71 of file _contracts.gsc.

◆ KILLSTREAK_SCORE_INDEX

#define KILLSTREAK_SCORE_INDEX   1011

Definition at line 70 of file _contracts.gsc.

◆ KOTH_WINS_INDEX

#define KOTH_WINS_INDEX   1007

Definition at line 66 of file _contracts.gsc.

◆ LMG_KILL_INDEX

#define LMG_KILL_INDEX   1022

Definition at line 81 of file _contracts.gsc.

◆ LOADED_WEAPON_KILL_INDEX

#define LOADED_WEAPON_KILL_INDEX   1025

Definition at line 84 of file _contracts.gsc.

◆ MAX_CONTRACT_SLOTS

#define MAX_CONTRACT_SLOTS   10

Definition at line 30 of file _contracts.gsc.

◆ MEDALS_SPECIALIST_ABILITIES_INDEX

#define MEDALS_SPECIALIST_ABILITIES_INDEX   1013

Definition at line 72 of file _contracts.gsc.

◆ NAME_STRING_COL

#define NAME_STRING_COL   3

Definition at line 38 of file _contracts.gsc.

◆ PISTOL_KILL_INDEX

#define PISTOL_KILL_INDEX   1024

Definition at line 83 of file _contracts.gsc.

◆ SCORE_INDEX

#define SCORE_INDEX   1009

Definition at line 68 of file _contracts.gsc.

◆ SD_WINS_INDEX

#define SD_WINS_INDEX   1006

Definition at line 65 of file _contracts.gsc.

◆ SHOTGUN_KILL_INDEX

#define SHOTGUN_KILL_INDEX   1023

Definition at line 82 of file _contracts.gsc.

◆ SMG_KILL_INDEX

#define SMG_KILL_INDEX   1020

Definition at line 79 of file _contracts.gsc.

◆ SNIPER_KILL_INDEX

#define SNIPER_KILL_INDEX   1021

Definition at line 80 of file _contracts.gsc.

◆ SPECIALIST_KILLED_INDEX

#define SPECIALIST_KILLED_INDEX   1014

Definition at line 73 of file _contracts.gsc.

◆ TARGET_VALUE_COL

#define TARGET_VALUE_COL   2

Definition at line 37 of file _contracts.gsc.

◆ TDM_WINS_INDEX

#define TDM_WINS_INDEX   1002

Definition at line 61 of file _contracts.gsc.

◆ TITLE_OVERRIDE_COL

#define TITLE_OVERRIDE_COL   4

Definition at line 39 of file _contracts.gsc.

◆ TOTAL_WINS_INDEX

#define TOTAL_WINS_INDEX   1000

Definition at line 59 of file _contracts.gsc.

◆ WEAPON_CAMO_STAT_COL

#define WEAPON_CAMO_STAT_COL   8

Definition at line 43 of file _contracts.gsc.

Function Documentation

◆ __init__()

function __init__ ( )

Definition at line 116 of file _contracts.gsc.

References on_start_gametype(), and start_gametype().

◆ add_active_stat()

◆ add_stat()

◆ award_blackjack_contract()

function award_blackjack_contract ( )

Definition at line 817 of file _contracts.gsc.

Referenced by award_weekly_contract().

◆ award_daily_contract()

function award_daily_contract ( )

Definition at line 805 of file _contracts.gsc.

References DEFAULT_CRYPTOKEY_LOOTXP, and DEFAULT_DAILY_CRYPTOKEYS.

Referenced by add_active_stat(), and award_loot_xp().

◆ award_loot_xp()

◆ award_loot_xp_due()

function award_loot_xp_due ( amount  )

Definition at line 546 of file _contracts.gsc.

References VAL.

Referenced by add_active_stat().

◆ award_weekly_contract()

function award_weekly_contract ( )

◆ can_process_contracts()

function can_process_contracts ( )

◆ contract_game_ended()

function contract_game_ended ( data  )

Definition at line 647 of file _contracts.gsc.

Referenced by start_gametype().

◆ contract_kills()

◆ contract_slot_met()

function contract_slot_met ( slot  )

Definition at line 790 of file _contracts.gsc.

References get_contract_stat().

Referenced by award_loot_xp().

◆ contract_win()

◆ gametype_win()

◆ get_contract_stat()

function get_contract_stat ( slot  ,
stat_name   
)

◆ get_hero_ability_mask()

function get_hero_ability_mask ( ability  )

Definition at line 608 of file _contracts.gsc.

◆ get_hero_weapon_mask()

function get_hero_weapon_mask ( attacker  ,
weapon   
)

Definition at line 559 of file _contracts.gsc.

◆ is_contract_active()

function is_contract_active ( challenge_index  )

Definition at line 211 of file _contracts.gsc.

Referenced by add_stat(), and recordEndGameComScoreEventForPlayer().

◆ on_defender_kill()

function on_defender_kill ( )

Definition at line 738 of file _contracts.gsc.

References add_stat(), ATTACKER_DEFENDER_KILLS_INDEX, and KILLED_DEFENDER_INDEX.

Referenced by start_gametype().

◆ on_headshot_kill()

function on_headshot_kill ( )

Definition at line 744 of file _contracts.gsc.

References add_stat(), and HEADSHOTS_INDEX.

Referenced by start_gametype().

◆ on_hero_ability_kill()

function on_hero_ability_kill ( ability  ,
victimAbility   
)

Definition at line 229 of file _contracts.gsc.

Referenced by start_gametype().

◆ on_hero_ability_medal()

function on_hero_ability_medal ( )

◆ on_hero_ability_multikill()

function on_hero_ability_multikill ( killcount  ,
ability   
)

Definition at line 248 of file _contracts.gsc.

Referenced by start_gametype().

◆ on_hero_weapon_multikill()

function on_hero_weapon_multikill ( killcount  ,
weapon   
)

Definition at line 256 of file _contracts.gsc.

Referenced by start_gametype().

◆ on_killed_hero_ability_enemy()

function on_killed_hero_ability_enemy ( )

Definition at line 156 of file _contracts.gsc.

References add_stat(), and SPECIALIST_KILLED_INDEX.

Referenced by start_gametype().

◆ on_killed_hero_weapon_enemy()

function on_killed_hero_weapon_enemy ( )

Definition at line 161 of file _contracts.gsc.

References add_stat(), and SPECIALIST_KILLED_INDEX.

Referenced by start_gametype().

◆ on_killstreak_score()

function on_killstreak_score ( delta_score  ,
killstreak_purchased   
)

Definition at line 270 of file _contracts.gsc.

References add_stat(), and KILLSTREAK_SCORE_INDEX.

Referenced by start_gametype().

◆ on_offender_kill()

function on_offender_kill ( )

Definition at line 732 of file _contracts.gsc.

References add_stat(), ATTACKER_DEFENDER_KILLS_INDEX, and KILLED_ATTACKER_INDEX.

Referenced by start_gametype().

◆ on_player_connect()

function on_player_connect ( )

Definition at line 166 of file _contracts.gsc.

References can_process_contracts(), and setup_player_contracts().

Referenced by start_gametype().

◆ on_player_score()

function on_player_score ( delta_score  )

Definition at line 264 of file _contracts.gsc.

References add_stat(), BIG_SCORE_INDEX, and SCORE_INDEX.

Referenced by start_gametype().

◆ set_contract_award_stat()

function set_contract_award_stat ( award_type  ,
stat_name  ,
stat_value  = 1 
)

Definition at line 472 of file _contracts.gsc.

Referenced by add_active_stat().

◆ set_contract_award_stat_from_path()

function set_contract_award_stat_from_path ( stat_path  ,
stat_value   
)

Definition at line 479 of file _contracts.gsc.

Referenced by add_active_stat().

◆ set_contract_stat()

function set_contract_stat ( slot  ,
stat_name  ,
stat_value   
)

Definition at line 467 of file _contracts.gsc.

Referenced by add_active_stat(), and award_loot_xp().

◆ setup_player_contracts()

◆ start_gametype()