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

Go to the source code of this file.

Macros

#define DECOY_SPAWN_DISTANCE   240
 
#define DECOY_SPAWN_LIFETIME   15
 
#define DECOY_SPAWN_RADIUS   240
 
#define SENSOR_GRENADE_LASER_DISTANCE_SQ   750 * 750
 
#define SENSOR_GRENADE_TRACK_TIME   10000
 

Functions

function checkForTracking (origin)
 
function createSensorGrenadeWatcher ()
 
function get_decoy_spawn_loc ()
 
function init_shared ()
 
function isPlayerTracked (player, time)
 
function onSpawnSensorGrenade (watcher, player)
 
function sensorGrenadeDestroyed (attacker, weapon, target)
 
function trackSensorGrenadeVictim (victim)
 
function watch_decoy (sensor_grenade)
 
function watch_for_decoys (owner)
 
function watchForExplode (owner)
 
function watchForStationary (owner)
 
function watchSensorGrenadeDamage (watcher)
 

Macro Definition Documentation

◆ DECOY_SPAWN_DISTANCE

#define DECOY_SPAWN_DISTANCE   240

Definition at line 258 of file _sensor_grenade.gsc.

◆ DECOY_SPAWN_LIFETIME

#define DECOY_SPAWN_LIFETIME   15

Definition at line 259 of file _sensor_grenade.gsc.

◆ DECOY_SPAWN_RADIUS

#define DECOY_SPAWN_RADIUS   240

Definition at line 256 of file _sensor_grenade.gsc.

◆ SENSOR_GRENADE_LASER_DISTANCE_SQ

#define SENSOR_GRENADE_LASER_DISTANCE_SQ   750 * 750

Definition at line 17 of file _sensor_grenade.gsc.

◆ SENSOR_GRENADE_TRACK_TIME

#define SENSOR_GRENADE_TRACK_TIME   10000

Definition at line 18 of file _sensor_grenade.gsc.

Function Documentation

◆ checkForTracking()

function checkForTracking ( origin  )

◆ createSensorGrenadeWatcher()

function createSensorGrenadeWatcher ( )

◆ get_decoy_spawn_loc()

function get_decoy_spawn_loc ( )

Definition at line 282 of file _sensor_grenade.gsc.

References DECOY_SPAWN_DISTANCE.

Referenced by watch_decoy().

◆ init_shared()

function init_shared ( )

Definition at line 22 of file _sensor_grenade.gsc.

References add_weapon_watcher(), createSensorGrenadeWatcher(), and isPlayerTracked().

Referenced by __init__().

◆ isPlayerTracked()

function isPlayerTracked ( player  ,
time   
)

Definition at line 135 of file _sensor_grenade.gsc.

References SENSOR_GRENADE_TRACK_TIME.

Referenced by init_shared().

◆ onSpawnSensorGrenade()

function onSpawnSensorGrenade ( watcher  ,
player   
)

◆ sensorGrenadeDestroyed()

function sensorGrenadeDestroyed ( attacker  ,
weapon  ,
target   
)

◆ trackSensorGrenadeVictim()

function trackSensorGrenadeVictim ( victim  )

Definition at line 122 of file _sensor_grenade.gsc.

Referenced by checkForTracking().

◆ watch_decoy()

function watch_decoy ( sensor_grenade  )

◆ watch_for_decoys()

function watch_for_decoys ( owner  )

Definition at line 261 of file _sensor_grenade.gsc.

References DECOY_SPAWN_RADIUS, IsEnemyPlayer(), and watch_decoy().

Referenced by onSpawnSensorGrenade().

◆ watchForExplode()

function watchForExplode ( owner  )

Definition at line 84 of file _sensor_grenade.gsc.

References checkForTracking().

Referenced by onSpawnSensorGrenade().

◆ watchForStationary()

function watchForStationary ( owner  )

Definition at line 71 of file _sensor_grenade.gsc.

References checkForTracking().

Referenced by onSpawnSensorGrenade().

◆ watchSensorGrenadeDamage()

function watchSensorGrenadeDamage ( watcher  )