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

Go to the source code of this file.

Macros

#define WASP_ENEMY_TOO_CLOSE_DIST   250
 
#define WASP_GROUP_RADIUS   140
 
#define WASP_GROUP_SIZE   3
 
#define WASP_GUARD_ACQUIRE_ENEMY_DIST   1000
 
#define WASP_GUARD_KEEP_ENEMY_DIST   300
 
#define WASP_GUARD_LOSE_ENEMY_DIST   1200
 
#define WASP_HOVER_RADIUS   50
 
#define WASP_MOVE_DIST_MAX   500
 
#define WASP_MOVE_DIST_MIN   80
 
#define WASP_NEARGOAL_DIST   40
 

Functions

function __init__ ()
 
function defaultRole ()
 
function drone_AllowFriendlyFireDamage (eInflictor, eAttacker, sMeansOfDeath, weapon)
 
function drone_callback_damage (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, vDamageOrigin, psOffsetTime, damageFromUnderneath, modelIndex, partName, vSurfaceNormal)
 
function drop_leader ()
 
function fall_and_bounce (killOnImpact_speed, killOnImpact_time)
 
function get_guard_points (owner)
 
function GetNextMovePosition_tactical ()
 
function GetNextMovePosition_wander ()
 
function guard_points_debug ()
 
function init_guard_points ()
 
function path_update_interrupt ()
 
function should_fly_forward (distanceToGoalSq)
 
function state_combat_enter (params)
 
function state_combat_update (params)
 
function state_death_update (params)
 
function state_emped_update (params)
 
function state_guard_can_enter (from_state, to_state, connection)
 
function state_guard_enter (params)
 
function state_guard_exit (params)
 
function state_guard_update (params)
 
function test_get_back_point (point)
 
function test_get_back_queryresult (queryResult)
 
function turretFireUpdate ()
 
function update_leader ()
 
function update_main_guard ()
 
function wait_till_something_happens (timeout)
 
function wasp_driving (params)
 
function wasp_initialize ()
 
function wasp_manage_camera_swaps ()
 

Macro Definition Documentation

◆ WASP_ENEMY_TOO_CLOSE_DIST

#define WASP_ENEMY_TOO_CLOSE_DIST   250

Definition at line 24 of file _wasp.gsc.

◆ WASP_GROUP_RADIUS

#define WASP_GROUP_RADIUS   140

Definition at line 26 of file _wasp.gsc.

◆ WASP_GROUP_SIZE

#define WASP_GROUP_SIZE   3

Definition at line 27 of file _wasp.gsc.

◆ WASP_GUARD_ACQUIRE_ENEMY_DIST

#define WASP_GUARD_ACQUIRE_ENEMY_DIST   1000

Definition at line 29 of file _wasp.gsc.

◆ WASP_GUARD_KEEP_ENEMY_DIST

#define WASP_GUARD_KEEP_ENEMY_DIST   300

Definition at line 31 of file _wasp.gsc.

◆ WASP_GUARD_LOSE_ENEMY_DIST

#define WASP_GUARD_LOSE_ENEMY_DIST   1200

Definition at line 30 of file _wasp.gsc.

◆ WASP_HOVER_RADIUS

#define WASP_HOVER_RADIUS   50

Definition at line 33 of file _wasp.gsc.

◆ WASP_MOVE_DIST_MAX

#define WASP_MOVE_DIST_MAX   500

Definition at line 22 of file _wasp.gsc.

◆ WASP_MOVE_DIST_MIN

#define WASP_MOVE_DIST_MIN   80

Definition at line 21 of file _wasp.gsc.

◆ WASP_NEARGOAL_DIST

#define WASP_NEARGOAL_DIST   40

Definition at line 35 of file _wasp.gsc.

Function Documentation

◆ __init__()

function __init__ ( )

Definition at line 43 of file _wasp.gsc.

References register(), VERSION_SHIP, and wasp_initialize().

◆ defaultRole()

◆ drone_AllowFriendlyFireDamage()

function drone_AllowFriendlyFireDamage ( eInflictor  ,
eAttacker  ,
sMeansOfDeath  ,
weapon   
)

Definition at line 1513 of file _wasp.gsc.

References ARCHETYPE_WASP.

Referenced by wasp_initialize().

◆ drone_callback_damage()

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

Definition at line 1506 of file _wasp.gsc.

References shared_callback_damage().

Referenced by wasp_initialize().

◆ drop_leader()

function drop_leader ( )

Definition at line 1021 of file _wasp.gsc.

Referenced by wait_till_something_happens().

◆ fall_and_bounce()

function fall_and_bounce ( killOnImpact_speed  ,
killOnImpact_time   
)

Definition at line 339 of file _wasp.gsc.

References collision_fx(), kill(), SQR, and TimeSince().

Referenced by state_emped_update().

◆ get_guard_points()

function get_guard_points ( owner  )

Definition at line 465 of file _wasp.gsc.

References ARRAY_ADD.

Referenced by state_guard_update().

◆ GetNextMovePosition_tactical()

◆ GetNextMovePosition_wander()

function GetNextMovePosition_wander ( )

◆ guard_points_debug()

function guard_points_debug ( )

Definition at line 438 of file _wasp.gsc.

References GREEN, RED, and WAIT_SERVER_FRAME.

◆ init_guard_points()

function init_guard_points ( )

Definition at line 427 of file _wasp.gsc.

References ARRAY_ADD.

Referenced by InitSentinel(), and wasp_initialize().

◆ path_update_interrupt()

function path_update_interrupt ( )

Definition at line 898 of file _wasp.gsc.

References SQR, and WASP_ENEMY_TOO_CLOSE_DIST.

Referenced by state_combat_update(), and state_guard_update().

◆ should_fly_forward()

function should_fly_forward ( distanceToGoalSq  )

Definition at line 1091 of file _wasp.gsc.

References SQR.

Referenced by state_combat_update().

◆ state_combat_enter()

function state_combat_enter ( params  )

Definition at line 792 of file _wasp.gsc.

References turretFireUpdate().

Referenced by defaultRole().

◆ state_combat_update()

◆ state_death_update()

function state_death_update ( params  )

◆ state_emped_update()

◆ state_guard_can_enter()

function state_guard_can_enter ( from_state  ,
to_state  ,
connection   
)

Definition at line 503 of file _wasp.gsc.

References SQR, WASP_GUARD_KEEP_ENEMY_DIST, and WASP_GUARD_LOSE_ENEMY_DIST.

Referenced by defaultRole(), and InitSentinel().

◆ state_guard_enter()

function state_guard_enter ( params  )

Definition at line 530 of file _wasp.gsc.

References update_main_guard().

Referenced by defaultRole(), and InitSentinel().

◆ state_guard_exit()

function state_guard_exit ( params  )

Definition at line 548 of file _wasp.gsc.

Referenced by defaultRole(), and InitSentinel().

◆ state_guard_update()

◆ test_get_back_point()

function test_get_back_point ( point  )

Definition at line 556 of file _wasp.gsc.

Referenced by state_guard_update(), and test_get_back_queryresult().

◆ test_get_back_queryresult()

function test_get_back_queryresult ( queryResult  )

Definition at line 571 of file _wasp.gsc.

References test_get_back_point(), and WAIT_SERVER_FRAME.

Referenced by state_guard_update().

◆ turretFireUpdate()

function turretFireUpdate ( )

Definition at line 806 of file _wasp.gsc.

References DEFAULT, fire_for_time(), GetTargetEyeOffset(), SQR, and TimeSince().

Referenced by state_combat_enter().

◆ update_leader()

function update_leader ( )

Definition at line 1030 of file _wasp.gsc.

References SQR, and WASP_GROUP_SIZE.

Referenced by state_combat_update().

◆ update_main_guard()

function update_main_guard ( )

Definition at line 540 of file _wasp.gsc.

Referenced by state_guard_enter(), and state_guard_update().

◆ wait_till_something_happens()

function wait_till_something_happens ( timeout  )

Definition at line 947 of file _wasp.gsc.

References cointoss(), drop_leader(), SQR, timeout(), WASP_ENEMY_TOO_CLOSE_DIST, and WASP_GROUP_RADIUS.

Referenced by state_combat_update().

◆ wasp_driving()

function wasp_driving ( params  )

Definition at line 1528 of file _wasp.gsc.

References set(), and wasp_manage_camera_swaps().

Referenced by defaultRole().

◆ wasp_initialize()

◆ wasp_manage_camera_swaps()

function wasp_manage_camera_swaps ( )

Definition at line 1546 of file _wasp.gsc.

Referenced by wasp_driving().