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

Go to the source code of this file.

Macros

#define INVENTORY_SENTINEL_NAME   "inventory_sentinel"
 
#define SENTINEL_IN_WATER_TRACE_MASK   ( PHYSICS_TRACE_MASK_WATER )
 
#define SENTINEL_IN_WATER_TRACE_MAXS   ( 2, 2, 2 )
 
#define SENTINEL_IN_WATER_TRACE_MINS   ( -2, -2, -2 )
 
#define SENTINEL_IN_WATER_TRACE_WAIT   ( 0.1 )
 
#define SENTINEL_NAME   "sentinel"
 
#define SENTINEL_SHUTOWN_NOTIFY   "sentinel_shutdown"
 

Functions

function ActivateSentinel (killstreakType)
 
function CalcSpawnOrigin (origin, angles)
 
function ConfigureTeamPost (owner, isHacked)
 
function destroyed_cb (attacker, weapon)
 
function driving_enter (params)
 
function drone_pain (eAttacker, damageType, hitPoint, hitDirection, hitLocationInfo, partName, weapon)
 
function drone_pain_for_time (time, stablizeParam, restoreLookPoint, weapon)
 
function EndSentinelRemoteControl (sentinel, exitRequestedByOwner)
 
function HackedCallbackPost (hacker)
 
function HackedCallbackPre (hacker)
 
function HealthMonitor ()
 
function init ()
 
function InitSentinel ()
 
function low_health_cb (attacker, weapon)
 
function OnTimeout ()
 
function SentinelDamageOverride (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, vDamageOrigin, psOffsetTime, damageFromUnderneath, modelIndex, partName, vSurfaceNormal)
 
function SentinelDistanceFailure ()
 
function StartSentinelRemoteControl (sentinel)
 
function WatchDeath ()
 
function WatchGameEnded ()
 
function WatchShutdown ()
 
function WatchTeamChange ()
 
function WatchWater ()
 

Macro Definition Documentation

◆ INVENTORY_SENTINEL_NAME

#define INVENTORY_SENTINEL_NAME   "inventory_sentinel"

Definition at line 57 of file _sentinel.gsc.

◆ SENTINEL_IN_WATER_TRACE_MASK

#define SENTINEL_IN_WATER_TRACE_MASK   ( PHYSICS_TRACE_MASK_WATER )

Definition at line 547 of file _sentinel.gsc.

◆ SENTINEL_IN_WATER_TRACE_MAXS

#define SENTINEL_IN_WATER_TRACE_MAXS   ( 2, 2, 2 )

Definition at line 546 of file _sentinel.gsc.

◆ SENTINEL_IN_WATER_TRACE_MINS

#define SENTINEL_IN_WATER_TRACE_MINS   ( -2, -2, -2 )

Definition at line 545 of file _sentinel.gsc.

◆ SENTINEL_IN_WATER_TRACE_WAIT

#define SENTINEL_IN_WATER_TRACE_WAIT   ( 0.1 )

Definition at line 548 of file _sentinel.gsc.

◆ SENTINEL_NAME

#define SENTINEL_NAME   "sentinel"

Definition at line 56 of file _sentinel.gsc.

◆ SENTINEL_SHUTOWN_NOTIFY

#define SENTINEL_SHUTOWN_NOTIFY   "sentinel_shutdown"

Definition at line 58 of file _sentinel.gsc.

Function Documentation

◆ ActivateSentinel()

◆ CalcSpawnOrigin()

function CalcSpawnOrigin ( origin  ,
angles   
)

◆ ConfigureTeamPost()

function ConfigureTeamPost ( owner  ,
isHacked   
)

Definition at line 378 of file _sentinel.gsc.

References WatchTeamChange().

Referenced by ActivateSentinel().

◆ destroyed_cb()

function destroyed_cb ( attacker  ,
weapon   
)

Definition at line 202 of file _sentinel.gsc.

Referenced by SentinelDamageOverride().

◆ driving_enter()

function driving_enter ( params  )

Definition at line 127 of file _sentinel.gsc.

References defaultstate_driving_enter().

Referenced by InitSentinel().

◆ drone_pain()

function drone_pain ( eAttacker  ,
damageType  ,
hitPoint  ,
hitDirection  ,
hitLocationInfo  ,
partName  ,
weapon   
)

Definition at line 171 of file _sentinel.gsc.

References drone_pain_for_time(), IS_TRUE, and randomSign().

Referenced by SentinelDamageOverride().

◆ drone_pain_for_time()

function drone_pain_for_time ( time  ,
stablizeParam  ,
restoreLookPoint  ,
weapon   
)

Definition at line 132 of file _sentinel.gsc.

References IS_TRUE, set_static(), and Spawn().

Referenced by drone_pain().

◆ EndSentinelRemoteControl()

function EndSentinelRemoteControl ( sentinel  ,
exitRequestedByOwner   
)

◆ HackedCallbackPost()

function HackedCallbackPost ( hacker  )

◆ HackedCallbackPre()

function HackedCallbackPre ( hacker  )

◆ HealthMonitor()

function HealthMonitor ( )

Definition at line 478 of file _sentinel.gsc.

References SENTINEL_NAME, and WAIT_SERVER_FRAME.

Referenced by ActivateSentinel().

◆ init()

◆ InitSentinel()

◆ low_health_cb()

function low_health_cb ( attacker  ,
weapon   
)

Definition at line 208 of file _sentinel.gsc.

References play_pilot_dialog_on_owner(), and SENTINEL_NAME.

Referenced by SentinelDamageOverride().

◆ OnTimeout()

function OnTimeout ( )

Definition at line 454 of file _sentinel.gsc.

References play_pilot_dialog_on_owner(), SENTINEL_NAME, and SENTINEL_SHUTOWN_NOTIFY.

Referenced by ActivateSentinel().

◆ SentinelDamageOverride()

function SentinelDamageOverride ( eInflictor  ,
eAttacker  ,
iDamage  ,
iDFlags  ,
sMeansOfDeath  ,
weapon  ,
vPoint  ,
vDir  ,
sHitLoc  ,
vDamageOrigin  ,
psOffsetTime  ,
damageFromUnderneath  ,
modelIndex  ,
partName  ,
vSurfaceNormal   
)

◆ SentinelDistanceFailure()

function SentinelDistanceFailure ( )

Definition at line 498 of file _sentinel.gsc.

References SENTINEL_SHUTOWN_NOTIFY.

Referenced by StartSentinelRemoteControl().

◆ StartSentinelRemoteControl()

◆ WatchDeath()

◆ WatchGameEnded()

function WatchGameEnded ( )

Definition at line 384 of file _sentinel.gsc.

References SENTINEL_SHUTOWN_NOTIFY.

Referenced by ActivateSentinel().

◆ WatchShutdown()

function WatchShutdown ( )

◆ WatchTeamChange()

function WatchTeamChange ( )

Definition at line 534 of file _sentinel.gsc.

References SENTINEL_SHUTOWN_NOTIFY, and waittill_any().

Referenced by ConfigureTeamPost().

◆ WatchWater()