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

Go to the source code of this file.

Macros

#define COMBAT_ROBOT_ADD_X_VELOCITY_MAX   20
 
#define COMBAT_ROBOT_ADD_X_VELOCITY_MIN   -20
 
#define COMBAT_ROBOT_ADD_Y_VELOCITY_MAX   20
 
#define COMBAT_ROBOT_ADD_Y_VELOCITY_MIN   -20
 
#define COMBAT_ROBOT_ADD_Z_VELOCITY_MAX   80
 
#define COMBAT_ROBOT_ADD_Z_VELOCITY_MIN   60
 
#define COMBAT_ROBOT_DEFEND_ICON   "t7_hud_ks_c54i_drop"
 
#define COMBAT_ROBOT_FORWARD_SPAWN_OFFSET   72
 
#define COMBAT_ROBOT_GIVE_UP_ON_ENEMY   10000
 
#define COMBAT_ROBOT_GUARD_RADIUS   1000
 
#define COMBAT_ROBOT_IGNORE_UNATTACKABLE_ENEMY   5000
 
#define COMBAT_ROBOT_INFLUENCER   "small_vehicle"
 
#define COMBAT_ROBOT_KILLCAM_TIME_OFFSET   ( 750 )
 
#define COMBAT_ROBOT_MARKER_NAME   "combat_robot_marker"
 
#define COMBAT_ROBOT_MAX_SHUTDOWN   4.5
 
#define COMBAT_ROBOT_MIN_SHUTDOWN   3.0
 
#define COMBAT_ROBOT_NAME   "combat_robot"
 
#define COMBAT_ROBOT_NAV_MESH_VALID_LOCATION_BOUNDARY   18
 
#define COMBAT_ROBOT_NAV_MESH_VALID_LOCATION_TOLERANCE   4
 
#define COMBAT_ROBOT_VELOCITY_SCALAR   ( 1 / 8 )
 
#define INVENTORY_COMBAT_ROBOT_NAME   "inventory_combat_robot"
 

Functions

function private _CalculateProjectedGuardPosition (player)
 
function private _CalculateRobotSpawnPosition (player)
 
function private _CleanupRobotCorpses ()
 
function private _ConfigureRobotTeam (robot, player, isHacked)
 
function private _corpseWatcher ()
 
function private _CreateGuardMarker (robot, position)
 
function private _DestroyGuardMarker (robot)
 
function private _Escort (robot)
 
function private _explodeRobot (combatRobot)
 
function private _GuardPosition (robot, position)
 
function private _IgnoreUnattackableEnemy (robot, enemy)
 
function private _Underwater (robot)
 
function _WatchModeSwap (robot, player)
 
function ActivateCombatRobot (killstreak)
 
function CleanupThread (context)
 
function combatRobotDamageOverride (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, psOffsetTime, boneIndex, modelIndex)
 
function ConfigureTeamPost (player, isHacked)
 
function DropKillThread ()
 
function Epilog (context)
 
function HackedCallbackPost (hacker)
 
function init ()
 
function OnCombatRobotTimeout ()
 
function Prolog (context)
 
function respectNotTargetedByRobotPerk (player)
 
function SetupCombatRobotHintTrigger (player)
 
function sndWatchActivate ()
 
function sndWatchCombatRobotVoxNotifies ()
 
function sndWatchExit ()
 
function sndWatchLanding ()
 
function WaitThenSetDeleteAfterDestructionWaitTime (set_wait_time, delete_after_destruction_wait_time)
 
function WatchCombatRobotDeath ()
 
function WatchCombatRobotHelicopterHacked (helicopter)
 
function WatchCombatRobotLanding ()
 
function WatchCombatRobotOwnerDisconnect (player)
 
function WatchCombatRobotShutdown ()
 
function WatchHelicopterDeath (context)
 

Macro Definition Documentation

◆ COMBAT_ROBOT_ADD_X_VELOCITY_MAX

#define COMBAT_ROBOT_ADD_X_VELOCITY_MAX   20

Definition at line 51 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_ADD_X_VELOCITY_MIN

#define COMBAT_ROBOT_ADD_X_VELOCITY_MIN   -20

Definition at line 50 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_ADD_Y_VELOCITY_MAX

#define COMBAT_ROBOT_ADD_Y_VELOCITY_MAX   20

Definition at line 53 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_ADD_Y_VELOCITY_MIN

#define COMBAT_ROBOT_ADD_Y_VELOCITY_MIN   -20

Definition at line 52 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_ADD_Z_VELOCITY_MAX

#define COMBAT_ROBOT_ADD_Z_VELOCITY_MAX   80

Definition at line 55 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_ADD_Z_VELOCITY_MIN

#define COMBAT_ROBOT_ADD_Z_VELOCITY_MIN   60

Definition at line 54 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_DEFEND_ICON

#define COMBAT_ROBOT_DEFEND_ICON   "t7_hud_ks_c54i_drop"

Definition at line 42 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_FORWARD_SPAWN_OFFSET

#define COMBAT_ROBOT_FORWARD_SPAWN_OFFSET   72

Definition at line 40 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_GIVE_UP_ON_ENEMY

#define COMBAT_ROBOT_GIVE_UP_ON_ENEMY   10000

Definition at line 62 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_GUARD_RADIUS

#define COMBAT_ROBOT_GUARD_RADIUS   1000

Definition at line 41 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_IGNORE_UNATTACKABLE_ENEMY

#define COMBAT_ROBOT_IGNORE_UNATTACKABLE_ENEMY   5000

Definition at line 65 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_INFLUENCER

#define COMBAT_ROBOT_INFLUENCER   "small_vehicle"

Definition at line 44 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_KILLCAM_TIME_OFFSET

#define COMBAT_ROBOT_KILLCAM_TIME_OFFSET   ( 750 )

Definition at line 70 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_MARKER_NAME

#define COMBAT_ROBOT_MARKER_NAME   "combat_robot_marker"

Definition at line 45 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_MAX_SHUTDOWN

#define COMBAT_ROBOT_MAX_SHUTDOWN   4.5

Definition at line 59 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_MIN_SHUTDOWN

#define COMBAT_ROBOT_MIN_SHUTDOWN   3.0

Definition at line 58 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_NAME

#define COMBAT_ROBOT_NAME   "combat_robot"

Definition at line 43 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_NAV_MESH_VALID_LOCATION_BOUNDARY

#define COMBAT_ROBOT_NAV_MESH_VALID_LOCATION_BOUNDARY   18

Definition at line 67 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_NAV_MESH_VALID_LOCATION_TOLERANCE

#define COMBAT_ROBOT_NAV_MESH_VALID_LOCATION_TOLERANCE   4

Definition at line 68 of file _combat_robot.gsc.

◆ COMBAT_ROBOT_VELOCITY_SCALAR

#define COMBAT_ROBOT_VELOCITY_SCALAR   ( 1 / 8 )

Definition at line 49 of file _combat_robot.gsc.

◆ INVENTORY_COMBAT_ROBOT_NAME

#define INVENTORY_COMBAT_ROBOT_NAME   "inventory_combat_robot"

Definition at line 46 of file _combat_robot.gsc.

Function Documentation

◆ _CalculateProjectedGuardPosition()

function private _CalculateProjectedGuardPosition ( player  )

Definition at line 98 of file _combat_robot.gsc.

Referenced by _WatchModeSwap().

◆ _CalculateRobotSpawnPosition()

function private _CalculateRobotSpawnPosition ( player  )

Definition at line 104 of file _combat_robot.gsc.

References COMBAT_ROBOT_FORWARD_SPAWN_OFFSET.

◆ _CleanupRobotCorpses()

function private _CleanupRobotCorpses ( )

Definition at line 112 of file _combat_robot.gsc.

Referenced by init().

◆ _ConfigureRobotTeam()

function private _ConfigureRobotTeam ( robot  ,
player  ,
isHacked   
)

◆ _corpseWatcher()

function private _corpseWatcher ( )

Definition at line 727 of file _combat_robot.gsc.

References BURN_SMOLDER, and set().

Referenced by _explodeRobot().

◆ _CreateGuardMarker()

function private _CreateGuardMarker ( robot  ,
position   
)

Definition at line 195 of file _combat_robot.gsc.

References setEntityHeadIcon(), and spawn().

Referenced by _GuardPosition().

◆ _DestroyGuardMarker()

function private _DestroyGuardMarker ( robot  )

Definition at line 205 of file _combat_robot.gsc.

Referenced by _Escort(), _GuardPosition(), and WatchCombatRobotShutdown().

◆ _Escort()

function private _Escort ( robot  )

◆ _explodeRobot()

◆ _GuardPosition()

function private _GuardPosition ( robot  ,
position   
)

◆ _IgnoreUnattackableEnemy()

function private _IgnoreUnattackableEnemy ( robot  ,
enemy   
)

Definition at line 273 of file _combat_robot.gsc.

References COMBAT_ROBOT_IGNORE_UNATTACKABLE_ENEMY.

◆ _Underwater()

function private _Underwater ( robot  )

Definition at line 213 of file _combat_robot.gsc.

References ROBOT_HEIGHT.

Referenced by _ConfigureRobotTeam().

◆ _WatchModeSwap()

function _WatchModeSwap ( robot  ,
player   
)

◆ ActivateCombatRobot()

◆ CleanupThread()

function CleanupThread ( context  )

Definition at line 614 of file _combat_robot.gsc.

References DelDropLocation(), and get().

Referenced by Epilog().

◆ combatRobotDamageOverride()

function combatRobotDamageOverride ( eInflictor  ,
eAttacker  ,
iDamage  ,
iDFlags  ,
sMeansOfDeath  ,
weapon  ,
vPoint  ,
vDir  ,
sHitLoc  ,
psOffsetTime  ,
boneIndex  ,
modelIndex   
)

Definition at line 909 of file _combat_robot.gsc.

References combat_robot_damage(), COMBAT_ROBOT_NAME, get(), and OnDamagePerWeapon().

Referenced by Prolog().

◆ ConfigureTeamPost()

◆ DropKillThread()

function DropKillThread ( )

Definition at line 455 of file _combat_robot.gsc.

References is_clone_touching_crate(), is_touching_crate(), and WAIT_SERVER_FRAME.

Referenced by Epilog().

◆ Epilog()

◆ HackedCallbackPost()

function HackedCallbackPost ( hacker  )

Definition at line 589 of file _combat_robot.gsc.

References SetupCombatRobotHintTrigger().

Referenced by Prolog().

◆ init()

◆ OnCombatRobotTimeout()

◆ Prolog()

◆ respectNotTargetedByRobotPerk()

function respectNotTargetedByRobotPerk ( player  )

Definition at line 560 of file _combat_robot.gsc.

Referenced by Prolog(), and WatchCombatRobotDeath().

◆ SetupCombatRobotHintTrigger()

function SetupCombatRobotHintTrigger ( player  )

Definition at line 694 of file _combat_robot.gsc.

References spawn().

Referenced by HackedCallbackPost(), and WatchCombatRobotLanding().

◆ sndWatchActivate()

function sndWatchActivate ( )

Definition at line 898 of file _combat_robot.gsc.

Referenced by Prolog().

◆ sndWatchCombatRobotVoxNotifies()

function sndWatchCombatRobotVoxNotifies ( )

Definition at line 843 of file _combat_robot.gsc.

Referenced by Prolog().

◆ sndWatchExit()

function sndWatchExit ( )

Definition at line 873 of file _combat_robot.gsc.

Referenced by Prolog().

◆ sndWatchLanding()

function sndWatchLanding ( )

Definition at line 883 of file _combat_robot.gsc.

Referenced by Prolog().

◆ WaitThenSetDeleteAfterDestructionWaitTime()

function WaitThenSetDeleteAfterDestructionWaitTime ( set_wait_time  ,
delete_after_destruction_wait_time   
)

Definition at line 579 of file _combat_robot.gsc.

Referenced by Epilog().

◆ WatchCombatRobotDeath()

◆ WatchCombatRobotHelicopterHacked()

function WatchCombatRobotHelicopterHacked ( helicopter  )

Definition at line 597 of file _combat_robot.gsc.

References get().

Referenced by Prolog().

◆ WatchCombatRobotLanding()

function WatchCombatRobotLanding ( )

Definition at line 658 of file _combat_robot.gsc.

References get(), and SetupCombatRobotHintTrigger().

Referenced by Prolog().

◆ WatchCombatRobotOwnerDisconnect()

function WatchCombatRobotOwnerDisconnect ( player  )

Definition at line 716 of file _combat_robot.gsc.

References waittill_any().

Referenced by _ConfigureRobotTeam().

◆ WatchCombatRobotShutdown()

function WatchCombatRobotShutdown ( )

Definition at line 811 of file _combat_robot.gsc.

References _DestroyGuardMarker(), COMBAT_ROBOT_NAME, get(), and killstreakStop().

Referenced by Prolog().

◆ WatchHelicopterDeath()

function WatchHelicopterDeath ( context  )

Definition at line 469 of file _combat_robot.gsc.

References callback(), and DelDropLocation().

Referenced by Prolog().