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

Go to the source code of this file.

Macros

#define OBJECTIVE_FLAG_NORMAL   0
 
#define OBJECTIVE_FLAG_TARGET   1
 
#define RANDOM_ZONE_LOCATIONS_AFTER_FIRST   2
 
#define RANDOM_ZONE_LOCATIONS_OFF   0
 
#define RANDOM_ZONE_LOCATIONS_ON   1
 

Functions

function awardCapturePoints (team, lastCaptureTeam)
 
function CompareZoneIndexes (zone_a, zone_b)
 
function createZoneSpawnInfluencer ()
 
function forceSpawnTeam (team)
 
function GetCountOfTeamsWithPlayers (num)
 
function GetFirstZone ()
 
function GetNextZone ()
 
function GetNextZoneFromQueue ()
 
function getNumTouching ()
 
function GetPointCost (avgpos, origin)
 
function getRespawnDelay ()
 
function getZoneArray ()
 
function give_capture_credit (touchList, string, captureTime, capture_team, lastCaptureTeam)
 
function give_held_credit (touchList, team)
 
function hideTimerDisplayOnGameEnd ()
 
function isScoreBoosting (player)
 
function killWhileContesting ()
 
function koth_playerSpawnedCB ()
 
function KothCaptureLoop ()
 
function KothMainLoop ()
 
function main ()
 
function MoveZoneAfterTime (time)
 
function onBeginUse (player)
 
function onEndGame (winningTeam)
 
function onEndUse (team, player, success)
 
function onPlayerKilled (eInflictor, attacker, iDamage, sMeansOfDeath, weapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration)
 
function onRoundSwitch ()
 
function onStartGameType ()
 
function onZoneCapture (player)
 
function onZoneContested ()
 
function onZoneDestroy (player)
 
function onZoneUncontested (lastClaimTeam)
 
function onZoneUnoccupied ()
 
function pause_time ()
 
function PickRandomZoneToSpawn ()
 
function PickZoneToSpawn ()
 
function resume_time ()
 
function setUpNearbySpawns ()
 
function setupZoneExclusions ()
 
function SetupZones ()
 
function ShuffleZones ()
 
function spawn_first_zone (delay)
 
function spawn_next_zone ()
 
function toggleZoneEffects (enabled)
 
function track_capture_time ()
 
function updateCapsPerMinute (lastOwnerTeam)
 
function updateGametypeDvars ()
 
function updateObjectiveHintMessage (message)
 
function updateObjectiveHintMessages (defenderTeam, defendMessage, attackMessage)
 
function updateTeamClientField ()
 
function watchKillWhileContesting (zone_captured_team)
 

Macro Definition Documentation

◆ OBJECTIVE_FLAG_NORMAL

#define OBJECTIVE_FLAG_NORMAL   0

Definition at line 34 of file koth.gsc.

◆ OBJECTIVE_FLAG_TARGET

#define OBJECTIVE_FLAG_TARGET   1

Definition at line 35 of file koth.gsc.

◆ RANDOM_ZONE_LOCATIONS_AFTER_FIRST

#define RANDOM_ZONE_LOCATIONS_AFTER_FIRST   2

Definition at line 32 of file koth.gsc.

◆ RANDOM_ZONE_LOCATIONS_OFF

#define RANDOM_ZONE_LOCATIONS_OFF   0

Definition at line 30 of file koth.gsc.

◆ RANDOM_ZONE_LOCATIONS_ON

#define RANDOM_ZONE_LOCATIONS_ON   1

Definition at line 31 of file koth.gsc.

Function Documentation

◆ awardCapturePoints()

function awardCapturePoints ( team  ,
lastCaptureTeam   
)

Definition at line 904 of file koth.gsc.

References giveTeamScoreForObjective(), and waitTillHostMigrationDone().

Referenced by onZoneCapture(), and onZoneDestroy().

◆ CompareZoneIndexes()

function CompareZoneIndexes ( zone_a  ,
zone_b   
)

Definition at line 954 of file koth.gsc.

Referenced by getZoneArray().

◆ createZoneSpawnInfluencer()

function createZoneSpawnInfluencer ( )

Definition at line 1588 of file koth.gsc.

References create_influencer(), and enable_influencers().

Referenced by SetupZones().

◆ forceSpawnTeam()

function forceSpawnTeam ( team  )

Definition at line 573 of file koth.gsc.

Referenced by KothCaptureLoop(), and KothMainLoop().

◆ GetCountOfTeamsWithPlayers()

function GetCountOfTeamsWithPlayers ( num  )

Definition at line 1282 of file koth.gsc.

Referenced by PickZoneToSpawn().

◆ GetFirstZone()

function GetFirstZone ( )

Definition at line 1196 of file koth.gsc.

References ShuffleZones().

Referenced by spawn_first_zone().

◆ GetNextZone()

function GetNextZone ( )

Definition at line 1212 of file koth.gsc.

Referenced by spawn_next_zone().

◆ GetNextZoneFromQueue()

function GetNextZoneFromQueue ( )

Definition at line 1269 of file koth.gsc.

References ShuffleZones().

Referenced by spawn_first_zone(), and spawn_next_zone().

◆ getNumTouching()

function getNumTouching ( )

Definition at line 357 of file koth.gsc.

Referenced by KothCaptureLoop().

◆ GetPointCost()

function GetPointCost ( avgpos  ,
origin   
)

Definition at line 1295 of file koth.gsc.

Referenced by PickZoneToSpawn().

◆ getRespawnDelay()

function getRespawnDelay ( )

Definition at line 161 of file koth.gsc.

References get_owner_team().

Referenced by main().

◆ getZoneArray()

function getZoneArray ( )

Definition at line 989 of file koth.gsc.

References CompareZoneIndexes().

Referenced by SetupZones().

◆ give_capture_credit()

function give_capture_credit ( touchList  ,
string  ,
captureTime  ,
capture_team  ,
lastCaptureTeam   
)

◆ give_held_credit()

function give_held_credit ( touchList  ,
team   
)

Definition at line 762 of file koth.gsc.

References WaitTillSlowProcessAllowed().

Referenced by KothMainLoop().

◆ hideTimerDisplayOnGameEnd()

function hideTimerDisplayOnGameEnd ( )

Definition at line 566 of file koth.gsc.

Referenced by KothMainLoop().

◆ isScoreBoosting()

function isScoreBoosting ( player  )

Definition at line 1624 of file koth.gsc.

Referenced by give_capture_credit().

◆ killWhileContesting()

function killWhileContesting ( )

Definition at line 1548 of file koth.gsc.

References processScoreEvent(), waittill_any_return(), and watchKillWhileContesting().

Referenced by onPlayerKilled().

◆ koth_playerSpawnedCB()

function koth_playerSpawnedCB ( )

Definition at line 949 of file koth.gsc.

Referenced by main().

◆ KothCaptureLoop()

◆ KothMainLoop()

◆ main()

◆ MoveZoneAfterTime()

function MoveZoneAfterTime ( time  )

Definition at line 877 of file koth.gsc.

References controlZoneEntirely(), and get_owner_team().

Referenced by KothMainLoop().

◆ onBeginUse()

function onBeginUse ( player  )

Definition at line 611 of file koth.gsc.

References gametype_specific_battle_chatter(), and get_owner_team().

Referenced by KothCaptureLoop().

◆ onEndGame()

function onEndGame ( winningTeam  )

Definition at line 1580 of file koth.gsc.

References allow_use().

Referenced by main().

◆ onEndUse()

function onEndUse ( team  ,
player  ,
success   
)

Definition at line 626 of file koth.gsc.

Referenced by KothCaptureLoop().

◆ onPlayerKilled()

function onPlayerKilled ( eInflictor  ,
attacker  ,
iDamage  ,
sMeansOfDeath  ,
weapon  ,
vDir  ,
sHitLoc  ,
psOffsetTime  ,
deathAnimDuration   
)

◆ onRoundSwitch()

function onRoundSwitch ( )

Definition at line 1399 of file koth.gsc.

Referenced by main().

◆ onStartGameType()

◆ onZoneCapture()

◆ onZoneContested()

function onZoneContested ( )

◆ onZoneDestroy()

function onZoneDestroy ( player  )

◆ onZoneUncontested()

function onZoneUncontested ( lastClaimTeam  )

Definition at line 862 of file koth.gsc.

References get_owner_team(), pause_time(), set_claim_team(), and updateTeamClientField().

Referenced by KothCaptureLoop().

◆ onZoneUnoccupied()

function onZoneUnoccupied ( )

Definition at line 826 of file koth.gsc.

References resume_time(), and updateTeamClientField().

Referenced by KothCaptureLoop().

◆ pause_time()

function pause_time ( )

Definition at line 283 of file koth.gsc.

References pauseTimer().

Referenced by KothMainLoop(), onZoneCapture(), and onZoneUncontested().

◆ PickRandomZoneToSpawn()

function PickRandomZoneToSpawn ( )

Definition at line 1223 of file koth.gsc.

◆ PickZoneToSpawn()

function PickZoneToSpawn ( )

Definition at line 1318 of file koth.gsc.

References GetCountOfTeamsWithPlayers(), and GetPointCost().

◆ resume_time()

function resume_time ( )

Definition at line 292 of file koth.gsc.

References resumeTimerDiscardOverride().

Referenced by KothMainLoop(), onZoneContested(), and onZoneUnoccupied().

◆ setUpNearbySpawns()

function setUpNearbySpawns ( )

Definition at line 1153 of file koth.gsc.

Referenced by SetupZones().

◆ setupZoneExclusions()

function setupZoneExclusions ( )

Definition at line 1120 of file koth.gsc.

Referenced by SetupZones().

◆ SetupZones()

◆ ShuffleZones()

function ShuffleZones ( )

Definition at line 1233 of file koth.gsc.

Referenced by GetFirstZone(), and GetNextZoneFromQueue().

◆ spawn_first_zone()

function spawn_first_zone ( delay  )

Definition at line 307 of file koth.gsc.

References enable_influencers(), GetFirstZone(), GetNextZoneFromQueue(), and RANDOM_ZONE_LOCATIONS_ON.

Referenced by KothMainLoop().

◆ spawn_next_zone()

function spawn_next_zone ( )

Definition at line 331 of file koth.gsc.

References enable_influencers(), GetNextZone(), GetNextZoneFromQueue(), and RANDOM_ZONE_LOCATIONS_OFF.

Referenced by KothMainLoop().

◆ toggleZoneEffects()

function toggleZoneEffects ( enabled  )

Definition at line 368 of file koth.gsc.

References set().

Referenced by KothCaptureLoop(), and KothMainLoop().

◆ track_capture_time()

function track_capture_time ( )

Definition at line 713 of file koth.gsc.

◆ updateCapsPerMinute()

function updateCapsPerMinute ( lastOwnerTeam  )

Definition at line 1598 of file koth.gsc.

References getTimePassed().

Referenced by give_capture_credit().

◆ updateGametypeDvars()

function updateGametypeDvars ( )

Definition at line 301 of file koth.gsc.

Referenced by onStartGameType().

◆ updateObjectiveHintMessage()

function updateObjectiveHintMessage ( message  )

Definition at line 153 of file koth.gsc.

Referenced by KothMainLoop(), and onStartGameType().

◆ updateObjectiveHintMessages()

function updateObjectiveHintMessages ( defenderTeam  ,
defendMessage  ,
attackMessage   
)

Definition at line 138 of file koth.gsc.

Referenced by KothCaptureLoop().

◆ updateTeamClientField()

function updateTeamClientField ( )

Definition at line 590 of file koth.gsc.

References get_owner_team(), IS_TRUE, and set().

Referenced by onZoneCapture(), onZoneContested(), onZoneUncontested(), and onZoneUnoccupied().

◆ watchKillWhileContesting()

function watchKillWhileContesting ( zone_captured_team  )

Definition at line 1537 of file koth.gsc.

References waittill_any_return().

Referenced by killWhileContesting().