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

Go to the source code of this file.

Macros

#define DEFAULT_HACKABLE_ANGLEDOT   GetDvarFloat("scr_hacker_default_angledot")
 
#define DEFAULT_HACKABLE_COST_MULT   1.0
 
#define DEFAULT_HACKABLE_DISTANCE   GetDvarFloat("scr_hacker_default_distance")
 
#define DEFAULT_HACKABLE_HACK_TIME   GetDvarFloat("scr_hacker_default_hack_time")
 
#define DEFAULT_HACKABLE_PROMPT   &"WEAPON_HACKING"
 
#define DEFAULT_HACKABLE_TIMEOUT   GetDvarFloat("scr_hacker_default_timeout")
 
#define DEFAULT_HACKING_BASE_SPEED   GetDvarFloat("scr_hacker_default_base_speed")
 

Functions

function add_hackable_object (obj, test_callback, start_callback, fail_callback, complete_callback)
 
function cleanup_hackable_objects ()
 
function complete_hacking_object (obj)
 
function continue_hacking_object (obj)
 
function fail_hacking_object (obj)
 
function filter_deleted (val)
 
function find_hackable_object ()
 
function init ()
 
function is_object_hackable (obj, origin, forward)
 
function remove_hackable_object (obj)
 
function start_hacking_object (obj)
 
function watch_timeout (obj, time)
 

Macro Definition Documentation

◆ DEFAULT_HACKABLE_ANGLEDOT

#define DEFAULT_HACKABLE_ANGLEDOT   GetDvarFloat("scr_hacker_default_angledot")

Definition at line 16 of file hackable.gsc.

◆ DEFAULT_HACKABLE_COST_MULT

#define DEFAULT_HACKABLE_COST_MULT   1.0

Definition at line 18 of file hackable.gsc.

◆ DEFAULT_HACKABLE_DISTANCE

#define DEFAULT_HACKABLE_DISTANCE   GetDvarFloat("scr_hacker_default_distance")

Definition at line 15 of file hackable.gsc.

◆ DEFAULT_HACKABLE_HACK_TIME

#define DEFAULT_HACKABLE_HACK_TIME   GetDvarFloat("scr_hacker_default_hack_time")

Definition at line 14 of file hackable.gsc.

◆ DEFAULT_HACKABLE_PROMPT

#define DEFAULT_HACKABLE_PROMPT   &"WEAPON_HACKING"

Definition at line 19 of file hackable.gsc.

◆ DEFAULT_HACKABLE_TIMEOUT

#define DEFAULT_HACKABLE_TIMEOUT   GetDvarFloat("scr_hacker_default_timeout")

Definition at line 17 of file hackable.gsc.

◆ DEFAULT_HACKING_BASE_SPEED

#define DEFAULT_HACKING_BASE_SPEED   GetDvarFloat("scr_hacker_default_base_speed")

Definition at line 21 of file hackable.gsc.

Function Documentation

◆ add_hackable_object()

function add_hackable_object ( obj  ,
test_callback  ,
start_callback  ,
fail_callback  ,
complete_callback   
)

◆ cleanup_hackable_objects()

function cleanup_hackable_objects ( )

Definition at line 52 of file hackable.gsc.

References filter_deleted().

Referenced by add_hackable_object(), find_hackable_object(), and remove_hackable_object().

◆ complete_hacking_object()

function complete_hacking_object ( obj  )

Definition at line 133 of file hackable.gsc.

Referenced by continue_hacking_object().

◆ continue_hacking_object()

function continue_hacking_object ( obj  )

◆ fail_hacking_object()

function fail_hacking_object ( obj  )

Definition at line 122 of file hackable.gsc.

Referenced by watch_timeout().

◆ filter_deleted()

function filter_deleted ( val  )

Definition at line 57 of file hackable.gsc.

Referenced by cleanup_hackable_objects().

◆ find_hackable_object()

function find_hackable_object ( )

Definition at line 63 of file hackable.gsc.

References ARRAY_ADD, cleanup_hackable_objects(), and is_object_hackable().

Referenced by hack_things().

◆ init()

function init ( )

Definition at line 24 of file hackable.gsc.

References DEFAULT.

◆ is_object_hackable()

function is_object_hackable ( obj  ,
origin  ,
forward   
)

Definition at line 83 of file hackable.gsc.

Referenced by continue_hacking_object(), and find_hackable_object().

◆ remove_hackable_object()

function remove_hackable_object ( obj  )

Definition at line 46 of file hackable.gsc.

References cleanup_hackable_objects().

◆ start_hacking_object()

function start_hacking_object ( obj  )

Definition at line 112 of file hackable.gsc.

Referenced by continue_hacking_object().

◆ watch_timeout()

function watch_timeout ( obj  ,
time   
)

Definition at line 144 of file hackable.gsc.

References fail_hacking_object().

Referenced by continue_hacking_object().