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

Go to the source code of this file.

Macros

#define DAMAGE_STATE_THRESHOLD_PCT_1   0.75
 
#define DAMAGE_STATE_THRESHOLD_PCT_2   0.5
 
#define DAMAGE_STATE_THRESHOLD_PCT_3   0.25
 
#define DAMAGE_STATE_THRESHOLD_PCT_4   0.1
 
#define DEFAULT_WEAK_SPOT_DAMAGE_LIMIT   600
 
#define FAR_POINTS_DIST   2500
 
#define MELEE_INNER_RADIUS_DAMAGE   200
 
#define MELEE_OUTER_RADIUS_DAMAGE   150
 
#define MELEE_RADIUS   270
 
#define NEAR_POINTS_DIST   1000
 
#define NUM_DAMAGE_STATES   4
 
#define SCAN_HEIGHT_OFFSET   40
 

Functions

function __init__ ()
 
function aim_at_best_shoot_location ()
 
function bootup ()
 
function canSeeEnemyFromPosition (position, enemy)
 
function check_melee ()
 
function cleanup_fx_ents ()
 
function croc_blink_lights ()
 
function croc_crash_movement (attacker)
 
function croc_death ()
 
function croc_emped ()
 
function croc_exit_vehicle ()
 
function croc_find_new_position ()
 
function croc_find_next_patrol_node ()
 
function croc_main ()
 
function croc_movementupdate ()
 
function croc_off ()
 
function croc_on ()
 
function croc_player_bullet_shake (player)
 
function croc_player_rocket_recoil (player)
 
function croc_requestASMState (statename)
 
function croc_scripted ()
 
function croc_set_swim_depth (swimDepth)
 
function croc_set_team (team)
 
function croc_start_ai (state)
 
function croc_stop_ai ()
 
function croc_testBuoyancy ()
 
function croc_think ()
 
function croc_update_damage_fx ()
 
function crocCallback_VehicleDamage (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, psOffsetTime, damageFromUnderneath, modelIndex, partName)
 
function death_fx ()
 
function get_damage_fx_ent ()
 
function goal_flag_monitor ()
 
function isInWater ()
 
function isOnLand ()
 
function main ()
 
function path_update_interrupt ()
 
function show_weak_spots (show)
 
function waittill_pathing_done ()
 

Macro Definition Documentation

◆ DAMAGE_STATE_THRESHOLD_PCT_1

#define DAMAGE_STATE_THRESHOLD_PCT_1   0.75

Definition at line 24 of file _croc.gsc.

◆ DAMAGE_STATE_THRESHOLD_PCT_2

#define DAMAGE_STATE_THRESHOLD_PCT_2   0.5

Definition at line 25 of file _croc.gsc.

◆ DAMAGE_STATE_THRESHOLD_PCT_3

#define DAMAGE_STATE_THRESHOLD_PCT_3   0.25

Definition at line 26 of file _croc.gsc.

◆ DAMAGE_STATE_THRESHOLD_PCT_4

#define DAMAGE_STATE_THRESHOLD_PCT_4   0.1

Definition at line 27 of file _croc.gsc.

◆ DEFAULT_WEAK_SPOT_DAMAGE_LIMIT

#define DEFAULT_WEAK_SPOT_DAMAGE_LIMIT   600

Definition at line 31 of file _croc.gsc.

◆ FAR_POINTS_DIST

#define FAR_POINTS_DIST   2500

Definition at line 38 of file _croc.gsc.

◆ MELEE_INNER_RADIUS_DAMAGE

#define MELEE_INNER_RADIUS_DAMAGE   200

Definition at line 34 of file _croc.gsc.

◆ MELEE_OUTER_RADIUS_DAMAGE

#define MELEE_OUTER_RADIUS_DAMAGE   150

Definition at line 35 of file _croc.gsc.

◆ MELEE_RADIUS

#define MELEE_RADIUS   270

Definition at line 33 of file _croc.gsc.

◆ NEAR_POINTS_DIST

#define NEAR_POINTS_DIST   1000

Definition at line 37 of file _croc.gsc.

◆ NUM_DAMAGE_STATES

#define NUM_DAMAGE_STATES   4

Definition at line 23 of file _croc.gsc.

◆ SCAN_HEIGHT_OFFSET

#define SCAN_HEIGHT_OFFSET   40

Definition at line 29 of file _croc.gsc.

Function Documentation

◆ __init__()

function __init__ ( )

Definition at line 46 of file _croc.gsc.

References main().

◆ aim_at_best_shoot_location()

function aim_at_best_shoot_location ( )

Definition at line 236 of file _croc.gsc.

References end().

◆ bootup()

function bootup ( )

Definition at line 191 of file _croc.gsc.

References lights_off(), and lights_on().

Referenced by croc_on().

◆ canSeeEnemyFromPosition()

function canSeeEnemyFromPosition ( position  ,
enemy   
)

Definition at line 568 of file _croc.gsc.

Referenced by croc_find_new_position(), and path_update_interrupt().

◆ check_melee()

function check_melee ( )

◆ cleanup_fx_ents()

function cleanup_fx_ents ( )

Definition at line 821 of file _croc.gsc.

Referenced by croc_death().

◆ croc_blink_lights()

function croc_blink_lights ( )

Definition at line 1048 of file _croc.gsc.

References lights_off(), and lights_on().

Referenced by croc_set_team().

◆ croc_crash_movement()

function croc_crash_movement ( attacker  )

Definition at line 907 of file _croc.gsc.

References death_radius_damage(), do_death_fx(), and set_death_model().

Referenced by croc_death().

◆ croc_death()

◆ croc_emped()

function croc_emped ( )

Definition at line 930 of file _croc.gsc.

References croc_off(), croc_on(), DEFAULT_WEAK_SPOT_DAMAGE_LIMIT, emped(), and Spawn().

Referenced by crocCallback_VehicleDamage().

◆ croc_exit_vehicle()

function croc_exit_vehicle ( )

Definition at line 725 of file _croc.gsc.

Referenced by croc_scripted().

◆ croc_find_new_position()

function croc_find_new_position ( )

Definition at line 615 of file _croc.gsc.

References canSeeEnemyFromPosition(), clamp(), and FLAT_ORIGIN.

◆ croc_find_next_patrol_node()

function croc_find_next_patrol_node ( )

Definition at line 574 of file _croc.gsc.

Referenced by croc_movementupdate().

◆ croc_main()

function croc_main ( )

Definition at line 328 of file _croc.gsc.

References croc_movementupdate(), and emped().

Referenced by croc_think().

◆ croc_movementupdate()

◆ croc_off()

function croc_off ( )

Definition at line 155 of file _croc.gsc.

References emped(), lights_off(), set_state(), toggle_exhaust_fx(), toggle_sounds(), and toggle_tread_fx().

Referenced by croc_emped(), and croc_think().

◆ croc_on()

function croc_on ( )

Definition at line 179 of file _croc.gsc.

References bootup(), croc_start_ai(), lights_on(), toggle_exhaust_fx(), toggle_sounds(), and toggle_tread_fx().

Referenced by croc_emped().

◆ croc_player_bullet_shake()

function croc_player_bullet_shake ( player  )

Definition at line 1061 of file _croc.gsc.

◆ croc_player_rocket_recoil()

function croc_player_rocket_recoil ( player  )

Definition at line 1076 of file _croc.gsc.

◆ croc_requestASMState()

function croc_requestASMState ( statename  )

Definition at line 80 of file _croc.gsc.

References isInWater(), and isOnLand().

Referenced by croc_death(), and croc_movementupdate().

◆ croc_scripted()

function croc_scripted ( )

Definition at line 735 of file _croc.gsc.

References croc_exit_vehicle(), and croc_set_team().

Referenced by croc_think().

◆ croc_set_swim_depth()

function croc_set_swim_depth ( swimDepth  )

Definition at line 454 of file _croc.gsc.

Referenced by croc_testBuoyancy().

◆ croc_set_team()

function croc_set_team ( team  )

Definition at line 1038 of file _croc.gsc.

References croc_blink_lights().

Referenced by croc_scripted(), and croc_think().

◆ croc_start_ai()

function croc_start_ai ( state  )

Definition at line 313 of file _croc.gsc.

References set_state().

Referenced by croc_on(), and croc_think().

◆ croc_stop_ai()

function croc_stop_ai ( )

Definition at line 323 of file _croc.gsc.

References set_state().

◆ croc_testBuoyancy()

function croc_testBuoyancy ( )

Definition at line 459 of file _croc.gsc.

References croc_set_swim_depth().

◆ croc_think()

◆ croc_update_damage_fx()

function croc_update_damage_fx ( )

◆ crocCallback_VehicleDamage()

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

Definition at line 964 of file _croc.gsc.

References croc_emped(), and croc_update_damage_fx().

Referenced by main().

◆ death_fx()

function death_fx ( )

Definition at line 901 of file _croc.gsc.

References do_death_fx().

◆ get_damage_fx_ent()

function get_damage_fx_ent ( )

Definition at line 807 of file _croc.gsc.

References Spawn().

Referenced by croc_death().

◆ goal_flag_monitor()

function goal_flag_monitor ( )

Definition at line 444 of file _croc.gsc.

References clear(), set(), and waittill_any().

Referenced by waittill_pathing_done().

◆ isInWater()

function isInWater ( )

Definition at line 70 of file _croc.gsc.

Referenced by croc_requestASMState(), and isOnLand().

◆ isOnLand()

function isOnLand ( )

Definition at line 75 of file _croc.gsc.

References isInWater().

Referenced by croc_requestASMState().

◆ main()

function main ( )

Definition at line 63 of file _croc.gsc.

References croc_think(), and crocCallback_VehicleDamage().

Referenced by __init__().

◆ path_update_interrupt()

function path_update_interrupt ( )

Definition at line 376 of file _croc.gsc.

References canSeeEnemyFromPosition(), and check_melee().

Referenced by croc_movementupdate().

◆ show_weak_spots()

function show_weak_spots ( show  )

Definition at line 214 of file _croc.gsc.

References toggle_exhaust_fx().

◆ waittill_pathing_done()

function waittill_pathing_done ( )

Definition at line 432 of file _croc.gsc.

References goal_flag_monitor(), and wait_till().

Referenced by croc_movementupdate().