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

Go to the source code of this file.

Functions

function __init__ ()
 
function addSpawnPointClassName (spawnPointClassName)
 
function addSpawnPoints (team, spawnPointName)
 
function addSpawnPointsInternal (team, spawnPointName)
 
function addSpawnPointTeamClassName (team, spawnPointClassName)
 
function avoidSameSpawn (spawnpoints)
 
function avoidSpawnReuse (spawnpoints, teambased)
 
function avoidVisibleEnemies (spawnpoints, teambased)
 
function avoidWeaponDamage (spawnpoints)
 
function checkForSimilarDeaths (deathInfo)
 
function clearSpawnPoints ()
 
function deathOccured (dier, killer)
 
function debugNearbyPlayers (players, origin)
 
function dropSpawnPoints (spawnPointName)
 
function expandMaxs (maxs, point)
 
function expandMins (mins, point)
 
function finalizeSpawnpointChoice (spawnpoint)
 
function findBoxCenter (mins, maxs)
 
function getAllAlliedAndEnemyPlayers (obj)
 
function getAllOtherPlayers ()
 
function getBestWeightedSpawnpoint (spawnpoints)
 
function getLosPenalty ()
 
function getNonTeamMinDist (skip_team, minDists)
 
function getNonTeamSum (skip_team, sums)
 
function getRandomIntermissionPoint ()
 
function getSpawnpoint_DM (spawnpoints)
 
function getSpawnpoint_Final (spawnpoints, useweights)
 
function getSpawnpoint_NearTeam (spawnpoints, favoredspawnpoints, forceAllyDistanceWeight, forceEnemyDistanceWeight)
 
function getSpawnpoint_Random (spawnpoints)
 
function getSpawnpoint_Turned (spawnpoints, idealDist, badDist, idealDistTeam, badDistTeam)
 
function getSpawnpointArray (classname)
 
function getTeamSpawnPoints (team)
 
function initWeights (spawnpoints)
 
function isPointVulnerable (playerorigin)
 
function lastMinuteSightTraces (spawnpoint)
 
function main ()
 
function placeSpawnPoints (spawnPointName)
 
function profileDebug ()
 
function rebuildSpawnPoints (team)
 
function showDeathsDebug ()
 
function Spawnlogic_Begin ()
 
function spawnPerFrameUpdate ()
 
function spawnPointInit ()
 
function spawnPointUpdate (spawnpoint)
 
function spawnPointUpdate_zm (spawnpoint)
 
function spawnWeightDebug (spawnpoints)
 
function updateDeathInfo ()
 
function updateDeathInfoDebug ()
 

Function Documentation

◆ __init__()

function __init__ ( )

Definition at line 13 of file _spawnlogic.gsc.

References main(), and on_start_gametype().

◆ addSpawnPointClassName()

function addSpawnPointClassName ( spawnPointClassName  )

Definition at line 193 of file _spawnlogic.gsc.

Referenced by addSpawnPoints(), and placeSpawnPoints().

◆ addSpawnPoints()

function addSpawnPoints ( team  ,
spawnPointName   
)

◆ addSpawnPointsInternal()

function addSpawnPointsInternal ( team  ,
spawnPointName   
)

◆ addSpawnPointTeamClassName()

function addSpawnPointTeamClassName ( team  ,
spawnPointClassName   
)

Definition at line 203 of file _spawnlogic.gsc.

Referenced by addSpawnPoints().

◆ avoidSameSpawn()

function avoidSameSpawn ( spawnpoints  )

◆ avoidSpawnReuse()

function avoidSpawnReuse ( spawnpoints  ,
teambased   
)

◆ avoidVisibleEnemies()

function avoidVisibleEnemies ( spawnpoints  ,
teambased   
)

Definition at line 1274 of file _spawnlogic.gsc.

References getLosPenalty(), and if().

Referenced by getSpawnpoint_DM(), getSpawnpoint_NearTeam(), and getSpawnpoint_Turned().

◆ avoidWeaponDamage()

function avoidWeaponDamage ( spawnpoints  )

Definition at line 998 of file _spawnlogic.gsc.

Referenced by getSpawnpoint_DM(), getSpawnpoint_NearTeam(), and getSpawnpoint_Turned().

◆ checkForSimilarDeaths()

function checkForSimilarDeaths ( deathInfo  )

Definition at line 880 of file _spawnlogic.gsc.

◆ clearSpawnPoints()

function clearSpawnPoints ( )

Definition at line 120 of file _spawnlogic.gsc.

Referenced by update_fallback_spawnpoints(), and updateAllSpawnPoints().

◆ deathOccured()

function deathOccured ( dier  ,
killer   
)

Definition at line 831 of file _spawnlogic.gsc.

Referenced by Callback_PlayerKilled().

◆ debugNearbyPlayers()

function debugNearbyPlayers ( players  ,
origin   
)

Definition at line 827 of file _spawnlogic.gsc.

◆ dropSpawnPoints()

function dropSpawnPoints ( spawnPointName  )

Definition at line 178 of file _spawnlogic.gsc.

References getSpawnpointArray().

◆ expandMaxs()

function expandMaxs ( maxs  ,
point   
)

Definition at line 66 of file _spawnlogic.gsc.

Referenced by addSpawnPointsInternal(), and spawnPointInit().

◆ expandMins()

function expandMins ( mins  ,
point   
)

Definition at line 55 of file _spawnlogic.gsc.

Referenced by addSpawnPointsInternal(), and spawnPointInit().

◆ finalizeSpawnpointChoice()

function finalizeSpawnpointChoice ( spawnpoint  )

Definition at line 337 of file _spawnlogic.gsc.

Referenced by getSpawnpoint_Final().

◆ findBoxCenter()

function findBoxCenter ( mins  ,
maxs   
)

Definition at line 47 of file _spawnlogic.gsc.

◆ getAllAlliedAndEnemyPlayers()

function getAllAlliedAndEnemyPlayers ( obj  )

Definition at line 439 of file _spawnlogic.gsc.

Referenced by getSpawnpoint_NearTeam().

◆ getAllOtherPlayers()

function getAllOtherPlayers ( )

Definition at line 416 of file _spawnlogic.gsc.

Referenced by getSpawnpoint_DM(), and getSpawnpoint_Turned().

◆ getBestWeightedSpawnpoint()

function getBestWeightedSpawnpoint ( spawnpoints  )

Definition at line 347 of file _spawnlogic.gsc.

References getLosPenalty(), and lastMinuteSightTraces().

Referenced by getSpawnpoint_Final().

◆ getLosPenalty()

function getLosPenalty ( )

Definition at line 1208 of file _spawnlogic.gsc.

Referenced by avoidVisibleEnemies(), and getBestWeightedSpawnpoint().

◆ getNonTeamMinDist()

function getNonTeamMinDist ( skip_team  ,
minDists   
)

Definition at line 1067 of file _spawnlogic.gsc.

Referenced by spawnPointUpdate().

◆ getNonTeamSum()

function getNonTeamSum ( skip_team  ,
sums   
)

Definition at line 1053 of file _spawnlogic.gsc.

Referenced by spawnPointUpdate().

◆ getRandomIntermissionPoint()

function getRandomIntermissionPoint ( )

Definition at line 1435 of file _spawnlogic.gsc.

References getSpawnpoint_Random().

Referenced by waitAndSpawnClient().

◆ getSpawnpoint_DM()

◆ getSpawnpoint_Final()

function getSpawnpoint_Final ( spawnpoints  ,
useweights   
)

◆ getSpawnpoint_NearTeam()

function getSpawnpoint_NearTeam ( spawnpoints  ,
favoredspawnpoints  ,
forceAllyDistanceWeight  ,
forceEnemyDistanceWeight   
)

◆ getSpawnpoint_Random()

function getSpawnpoint_Random ( spawnpoints  )

◆ getSpawnpoint_Turned()

function getSpawnpoint_Turned ( spawnpoints  ,
idealDist  ,
badDist  ,
idealDistTeam  ,
badDistTeam   
)

◆ getSpawnpointArray()

function getSpawnpointArray ( classname  )

◆ getTeamSpawnPoints()

function getTeamSpawnPoints ( team  )

Definition at line 258 of file _spawnlogic.gsc.

Referenced by gatherSpawnPoints().

◆ initWeights()

function initWeights ( spawnpoints  )

Definition at line 498 of file _spawnlogic.gsc.

Referenced by getSpawnpoint_DM(), getSpawnpoint_NearTeam(), and getSpawnpoint_Turned().

◆ isPointVulnerable()

function isPointVulnerable ( playerorigin  )

Definition at line 978 of file _spawnlogic.gsc.

◆ lastMinuteSightTraces()

function lastMinuteSightTraces ( spawnpoint  )

Definition at line 1215 of file _spawnlogic.gsc.

Referenced by getBestWeightedSpawnpoint().

◆ main()

function main ( )

Definition at line 19 of file _spawnlogic.gsc.

References spawnPointInit().

Referenced by __init__().

◆ placeSpawnPoints()

function placeSpawnPoints ( spawnPointName  )

◆ profileDebug()

function profileDebug ( )

Definition at line 809 of file _spawnlogic.gsc.

References getSpawnpoint_NearTeam().

◆ rebuildSpawnPoints()

function rebuildSpawnPoints ( team  )

Definition at line 138 of file _spawnlogic.gsc.

References addSpawnPointsInternal().

Referenced by CodeCallback_UpdateSpawnPoints().

◆ showDeathsDebug()

function showDeathsDebug ( )

Definition at line 786 of file _spawnlogic.gsc.

◆ Spawnlogic_Begin()

function Spawnlogic_Begin ( )

Definition at line 779 of file _spawnlogic.gsc.

Referenced by getSpawnpoint_DM(), getSpawnpoint_NearTeam(), and getSpawnpoint_Turned().

◆ spawnPerFrameUpdate()

function spawnPerFrameUpdate ( )

Definition at line 1029 of file _spawnlogic.gsc.

References spawnPointUpdate().

◆ spawnPointInit()

function spawnPointInit ( )

Definition at line 223 of file _spawnlogic.gsc.

References expandMaxs(), and expandMins().

Referenced by addSpawnPointsInternal(), main(), and placeSpawnPoints().

◆ spawnPointUpdate()

function spawnPointUpdate ( spawnpoint  )

Definition at line 1083 of file _spawnlogic.gsc.

References getNonTeamMinDist(), and getNonTeamSum().

Referenced by spawnPerFrameUpdate().

◆ spawnPointUpdate_zm()

function spawnPointUpdate_zm ( spawnpoint  )

Definition at line 505 of file _spawnlogic.gsc.

Referenced by getSpawnpoint_NearTeam().

◆ spawnWeightDebug()

function spawnWeightDebug ( spawnpoints  )

Definition at line 803 of file _spawnlogic.gsc.

Referenced by getSpawnpoint_Final().

◆ updateDeathInfo()

function updateDeathInfo ( )

Definition at line 897 of file _spawnlogic.gsc.

References remove().

Referenced by updateDeathInfoDebug().

◆ updateDeathInfoDebug()

function updateDeathInfoDebug ( )

Definition at line 790 of file _spawnlogic.gsc.

References updateDeathInfo().