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

Go to the source code of this file.

Functions

function __init__ ()
 
function atLeastOnePlayerOnEachTeam ()
 
function CodeCallback_RankUp (rank, prestige, unlockTokensAdded)
 
function doesScoreInfoCountTowardRampage (type)
 
function endGameUpdate ()
 
function getArenaPointsStat ()
 
function getCodPointsCapped (inCodPoints)
 
function getCodPointsStat ()
 
function getCombatEfficiencyEvent (type)
 
function getItemIndex (refString)
 
function getRank ()
 
function getRankForXp (xpVal)
 
function getRankInfoCodPointsEarned (rankId)
 
function getRankInfoFull (rankId)
 
function getRankInfoIcon (rankId, prestigeId)
 
function getRankInfoLevel (rankId)
 
function getRankInfoMaxXp (rankId)
 
function getRankInfoMinXP (rankId)
 
function getRankInfoXPAmt (rankId)
 
function getRankXP ()
 
function getRankXPCapped (inRankXp)
 
function getRankXpStat ()
 
function getScoreInfoLabel (type)
 
function getScoreInfoValue (type)
 
function getScoreInfoXP (type)
 
function getSPM ()
 
function giveRankXP (type, value, devAdd)
 
function incCodPoints (amount)
 
function incRankXP (amount)
 
function init ()
 
function initScoreInfo ()
 
function on_joined_spectators ()
 
function on_joined_team ()
 
function on_player_connect ()
 
function on_player_spawned ()
 
function registerScoreInfo (type, value, xp, label, teamscore_material)
 
function removeRankHUD ()
 
function round_this_number (value)
 
function setCodPointsStat (codPoints)
 
function shouldKickByRank ()
 
function shouldSkipMomentumDisplay (type)
 
function syncXPStat ()
 
function updateMomentumHUD (amount, reason, reasonValue)
 
function updateRank ()
 
function updateRankScoreHUD (amount)
 

Function Documentation

◆ __init__()

function __init__ ( )

Definition at line 20 of file rank_shared.gsc.

References init(), and on_start_gametype().

◆ atLeastOnePlayerOnEachTeam()

function atLeastOnePlayerOnEachTeam ( )

Definition at line 584 of file rank_shared.gsc.

Referenced by giveRankXP().

◆ CodeCallback_RankUp()

function CodeCallback_RankUp ( rank  ,
prestige  ,
unlockTokensAdded   
)

Definition at line 783 of file rank_shared.gsc.

◆ doesScoreInfoCountTowardRampage()

function doesScoreInfoCountTowardRampage ( type  )

Definition at line 301 of file rank_shared.gsc.

Referenced by givePlayerMomentum().

◆ endGameUpdate()

function endGameUpdate ( )

Definition at line 830 of file rank_shared.gsc.

Referenced by giveMatchBonus(), and updateMatchBonusScores().

◆ getArenaPointsStat()

function getArenaPointsStat ( )

Definition at line 398 of file rank_shared.gsc.

Referenced by on_player_connect().

◆ getCodPointsCapped()

function getCodPointsCapped ( inCodPoints  )

Definition at line 203 of file rank_shared.gsc.

Referenced by getCodPointsStat(), incCodPoints(), setCodPointsStat(), and syncXPStat().

◆ getCodPointsStat()

function getCodPointsStat ( )

◆ getCombatEfficiencyEvent()

function getCombatEfficiencyEvent ( type  )

Definition at line 296 of file rank_shared.gsc.

Referenced by givePlayerMomentum().

◆ getItemIndex()

function getItemIndex ( refString  )

Definition at line 821 of file rank_shared.gsc.

References getStatsTableName().

◆ getRank()

function getRank ( )

Definition at line 979 of file rank_shared.gsc.

References getRankForXp(), getRankInfoMinXP(), getRankInfoXPAmt(), and getRankXPCapped().

Referenced by getSPM(), and updateRank().

◆ getRankForXp()

function getRankForXp ( xpVal  )

Definition at line 990 of file rank_shared.gsc.

References getRankInfoMinXP(), and getRankInfoXPAmt().

Referenced by getRank(), and on_player_connect().

◆ getRankInfoCodPointsEarned()

function getRankInfoCodPointsEarned ( rankId  )

Definition at line 336 of file rank_shared.gsc.

Referenced by updateRank().

◆ getRankInfoFull()

function getRankInfoFull ( rankId  )

Definition at line 321 of file rank_shared.gsc.

◆ getRankInfoIcon()

function getRankInfoIcon ( rankId  ,
prestigeId   
)

Definition at line 326 of file rank_shared.gsc.

◆ getRankInfoLevel()

function getRankInfoLevel ( rankId  )

Definition at line 331 of file rank_shared.gsc.

◆ getRankInfoMaxXp()

function getRankInfoMaxXp ( rankId  )

Definition at line 316 of file rank_shared.gsc.

Referenced by on_player_connect().

◆ getRankInfoMinXP()

function getRankInfoMinXP ( rankId  )

Definition at line 306 of file rank_shared.gsc.

Referenced by getRank(), getRankForXp(), incRankXP(), and set_rank().

◆ getRankInfoXPAmt()

function getRankInfoXPAmt ( rankId  )

Definition at line 311 of file rank_shared.gsc.

Referenced by getRank(), and getRankForXp().

◆ getRankXP()

function getRankXP ( )

Definition at line 1018 of file rank_shared.gsc.

References getRankXPCapped().

Referenced by incRankXP(), on_player_connect(), and syncXPStat().

◆ getRankXPCapped()

function getRankXPCapped ( inRankXp  )

◆ getRankXpStat()

◆ getScoreInfoLabel()

function getScoreInfoLabel ( type  )

Definition at line 291 of file rank_shared.gsc.

Referenced by givePlayerMomentum(), and givePlayerXPDisplay().

◆ getScoreInfoValue()

◆ getScoreInfoXP()

function getScoreInfoXP ( type  )

Definition at line 262 of file rank_shared.gsc.

Referenced by givePlayerXPDisplay().

◆ getSPM()

function getSPM ( )

Definition at line 1012 of file rank_shared.gsc.

References getRank().

Referenced by updateMatchBonusScores().

◆ giveRankXP()

◆ incCodPoints()

function incCodPoints ( amount  )

Definition at line 566 of file rank_shared.gsc.

References getCodPointsCapped(), isRankEnabled(), and setCodPointsStat().

Referenced by giveRankXP(), and updateRank().

◆ incRankXP()

function incRankXP ( amount  )

Definition at line 1023 of file rank_shared.gsc.

References getRankInfoMinXP(), getRankXP(), and getRankXPCapped().

Referenced by giveRankXP().

◆ init()

function init ( )

Definition at line 25 of file rank_shared.gsc.

References initScoreInfo(), on_connect(), and on_player_connect().

Referenced by __init__().

◆ initScoreInfo()

◆ on_joined_spectators()

function on_joined_spectators ( )

Definition at line 488 of file rank_shared.gsc.

References removeRankHUD().

Referenced by on_player_connect().

◆ on_joined_team()

function on_joined_team ( )

Definition at line 481 of file rank_shared.gsc.

References removeRankHUD().

Referenced by on_player_connect().

◆ on_player_connect()

◆ on_player_spawned()

function on_player_spawned ( )

Definition at line 495 of file rank_shared.gsc.

References font_pulse_init().

Referenced by on_player_connect().

◆ registerScoreInfo()

function registerScoreInfo ( type  ,
value  ,
xp  ,
label  ,
teamscore_material   
)

Definition at line 213 of file rank_shared.gsc.

Referenced by initScoreInfo().

◆ removeRankHUD()

function removeRankHUD ( )

Definition at line 968 of file rank_shared.gsc.

Referenced by on_joined_spectators(), and on_joined_team().

◆ round_this_number()

function round_this_number ( value  )

Definition at line 726 of file rank_shared.gsc.

Referenced by giveRankXP().

◆ setCodPointsStat()

function setCodPointsStat ( codPoints  )

◆ shouldKickByRank()

function shouldKickByRank ( )

Definition at line 341 of file rank_shared.gsc.

Referenced by on_player_connect().

◆ shouldSkipMomentumDisplay()

function shouldSkipMomentumDisplay ( type  )

Definition at line 276 of file rank_shared.gsc.

References IS_TRUE.

◆ syncXPStat()

function syncXPStat ( )

Definition at line 1049 of file rank_shared.gsc.

References getCodPointsCapped(), getRankXP(), and getRankXPCapped().

Referenced by giveRankXP(), and set_rank().

◆ updateMomentumHUD()

function updateMomentumHUD ( amount  ,
reason  ,
reasonValue   
)

Definition at line 882 of file rank_shared.gsc.

References font_pulse().

◆ updateRank()

function updateRank ( )

Definition at line 732 of file rank_shared.gsc.

References getRank(), getRankInfoCodPointsEarned(), and incCodPoints().

Referenced by giveRankXP().

◆ updateRankScoreHUD()

function updateRankScoreHUD ( amount  )

Definition at line 835 of file rank_shared.gsc.

References font_pulse(), and WAIT_SERVER_FRAME.

Referenced by _setPlayerScore(), default_onPlayerScore(), and giveRankXP().