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

Go to the source code of this file.

Macros

#define DEBUG_ON   false
 
#define JUMP_COOLDOWN   7
 
#define SIEGEBOT_ARM_TRACE_CLIP_MASK   PHYSICS_TRACE_MASK_PHYSICS | PHYSICS_TRACE_MASK_CLIP
 
#define SIEGEBOT_BUNDLE   "siegebot"
 
#define SIEGEBOT_LEFT_ARM_TRACE_END   -30
 
#define SIEGEBOT_LEFT_ARM_TRACE_OFFSET   -60
 
#define SIEGEBOT_LEFT_ARM_TRACE_START   40
 
#define SIEGEBOT_LEFT_ARM_TRACE_TAG   "tag_turret"
 
#define SIEGEBOT_MISSILE_COUNT_AFTER_RELOAD   3
 
#define SIEGEBOT_MISSILE_TURRET_INDEX   2
 
#define SIEGEBOT_RIGHT_ARM_TRACE_END   -30
 
#define SIEGEBOT_RIGHT_ARM_TRACE_OFFSET   60
 
#define SIEGEBOT_RIGHT_ARM_TRACE_START   40
 
#define SIEGEBOT_RIGHT_ARM_TRACE_TAG   "tag_turret"
 
#define SIEGEBOT_ROCKET_WALL_BLOCKED_FRAMES   10
 
#define SIEGEBOT_ROCKET_WALL_FORWARD_OFFSET   100
 
#define SIEGEBOT_ROCKET_WALL_RELATIVE_TAG   "tag_turret"
 
#define SIEGEBOT_ROCKET_WALL_RIGHT_OFFSET   40
 
#define SIEGEBOT_ROCKET_WALL_TAG   "tag_turret"
 
#define SIEGEBOT_ROCKET_WALL_TRACE_END   -12
 
#define SIEGEBOT_ROCKET_WALL_TRACE_START   12
 
#define SIEGEBOT_ROCKET_WALL_TRACE_TAG   "tag_gunner_flash2b"
 
#define SIEGEBOT_ROCKET_WALL_Z_OFFSET   500
 

Functions

function __init__ ()
 
function arm_test ()
 
function Attack_Rocket (target)
 
function Attack_Thread_machinegun ()
 
function Attack_Thread_Rocket ()
 
function clean_up_spawned ()
 
function clean_up_spawnedOnDeath (entToWatch)
 
function defaultRole ()
 
function destroy_siegebot ()
 
function disable_missiles ()
 
function does_rocket_shoot_through_wall (use_old_trace)
 
function emped (down_time)
 
function emped_enter (params)
 
function emped_exit (params)
 
function emped_reenter (params)
 
function emped_update (params)
 
function enable_missiles ()
 
function extend_left_arm ()
 
function extend_right_arm ()
 
function face_target (position, targetAngleDiff)
 
function GetNextMovePosition_tactical ()
 
function GetNextMovePosition_unaware ()
 
function initJumpStruct ()
 
function locomotion_start ()
 
function monitor_enter_exit_vehicle ()
 
function Movement_Thread ()
 
function Movement_Thread_Unaware ()
 
function on_player_disconnected ()
 
function pain_toggle (enabled)
 
function pain_update (params)
 
function path_update_interrupt ()
 
function process_siegebot_kill (driver)
 
function reload_rockets (player)
 
function retract_left_arm ()
 
function retract_right_arm ()
 
function Scan ()
 
function set_rocket_count (rocket_count)
 
function siegebot_callback_damage (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, vDamageOrigin, psOffsetTime, damageFromUnderneath, modelIndex, partName, vSurfaceNormal)
 
function siegebot_driving (params)
 
function siegebot_initialize ()
 
function siegebot_kill_on_tilting ()
 
function siegebot_player_aimUpdate ()
 
function siegebot_player_fireupdate ()
 
function siegebot_update_difficulty ()
 
function state_combat_exit (params)
 
function state_combat_update (params)
 
function state_death_update (params)
 
function state_jump_can_enter (from_state, to_state, connection)
 
function state_jump_enter (params)
 
function state_jump_exit (params)
 
function state_jump_update (params)
 
function state_unaware_update (params)
 
function stopMovementAndSetBrake ()
 
function update_client_ammo (ammo_count, driver_only_update=false)
 
function update_emped_driver_visuals ()
 
function update_emped_visuals (driver, emped)
 
function vehicle_occupied (player)
 
function vehicle_unoccupied (player)
 
function wait_then_hide (wait_time)
 
function watch_death ()
 
function watch_emped ()
 
function watch_game_ended ()
 
function watch_left_arm ()
 
function watch_right_arm ()
 
function watch_rockets (player)
 
function weapon_doors_state (isOpen, waittime=0)
 

Macro Definition Documentation

◆ DEBUG_ON

#define DEBUG_ON   false

Definition at line 40 of file _siegebot.gsc.

◆ JUMP_COOLDOWN

#define JUMP_COOLDOWN   7

Definition at line 39 of file _siegebot.gsc.

◆ SIEGEBOT_ARM_TRACE_CLIP_MASK

#define SIEGEBOT_ARM_TRACE_CLIP_MASK   PHYSICS_TRACE_MASK_PHYSICS | PHYSICS_TRACE_MASK_CLIP

Definition at line 56 of file _siegebot.gsc.

◆ SIEGEBOT_BUNDLE

#define SIEGEBOT_BUNDLE   "siegebot"

Definition at line 42 of file _siegebot.gsc.

◆ SIEGEBOT_LEFT_ARM_TRACE_END

#define SIEGEBOT_LEFT_ARM_TRACE_END   -30

Definition at line 54 of file _siegebot.gsc.

◆ SIEGEBOT_LEFT_ARM_TRACE_OFFSET

#define SIEGEBOT_LEFT_ARM_TRACE_OFFSET   -60

Definition at line 52 of file _siegebot.gsc.

◆ SIEGEBOT_LEFT_ARM_TRACE_START

#define SIEGEBOT_LEFT_ARM_TRACE_START   40

Definition at line 53 of file _siegebot.gsc.

◆ SIEGEBOT_LEFT_ARM_TRACE_TAG

#define SIEGEBOT_LEFT_ARM_TRACE_TAG   "tag_turret"

Definition at line 51 of file _siegebot.gsc.

◆ SIEGEBOT_MISSILE_COUNT_AFTER_RELOAD

#define SIEGEBOT_MISSILE_COUNT_AFTER_RELOAD   3

Definition at line 44 of file _siegebot.gsc.

◆ SIEGEBOT_MISSILE_TURRET_INDEX

#define SIEGEBOT_MISSILE_TURRET_INDEX   2

Definition at line 43 of file _siegebot.gsc.

◆ SIEGEBOT_RIGHT_ARM_TRACE_END

#define SIEGEBOT_RIGHT_ARM_TRACE_END   -30

Definition at line 49 of file _siegebot.gsc.

◆ SIEGEBOT_RIGHT_ARM_TRACE_OFFSET

#define SIEGEBOT_RIGHT_ARM_TRACE_OFFSET   60

Definition at line 47 of file _siegebot.gsc.

◆ SIEGEBOT_RIGHT_ARM_TRACE_START

#define SIEGEBOT_RIGHT_ARM_TRACE_START   40

Definition at line 48 of file _siegebot.gsc.

◆ SIEGEBOT_RIGHT_ARM_TRACE_TAG

#define SIEGEBOT_RIGHT_ARM_TRACE_TAG   "tag_turret"

Definition at line 46 of file _siegebot.gsc.

◆ SIEGEBOT_ROCKET_WALL_BLOCKED_FRAMES

#define SIEGEBOT_ROCKET_WALL_BLOCKED_FRAMES   10

Definition at line 67 of file _siegebot.gsc.

◆ SIEGEBOT_ROCKET_WALL_FORWARD_OFFSET

#define SIEGEBOT_ROCKET_WALL_FORWARD_OFFSET   100

Definition at line 64 of file _siegebot.gsc.

◆ SIEGEBOT_ROCKET_WALL_RELATIVE_TAG

#define SIEGEBOT_ROCKET_WALL_RELATIVE_TAG   "tag_turret"

Definition at line 61 of file _siegebot.gsc.

◆ SIEGEBOT_ROCKET_WALL_RIGHT_OFFSET

#define SIEGEBOT_ROCKET_WALL_RIGHT_OFFSET   40

Definition at line 65 of file _siegebot.gsc.

◆ SIEGEBOT_ROCKET_WALL_TAG

#define SIEGEBOT_ROCKET_WALL_TAG   "tag_turret"

Definition at line 63 of file _siegebot.gsc.

◆ SIEGEBOT_ROCKET_WALL_TRACE_END

#define SIEGEBOT_ROCKET_WALL_TRACE_END   -12

Definition at line 60 of file _siegebot.gsc.

◆ SIEGEBOT_ROCKET_WALL_TRACE_START

#define SIEGEBOT_ROCKET_WALL_TRACE_START   12

Definition at line 59 of file _siegebot.gsc.

◆ SIEGEBOT_ROCKET_WALL_TRACE_TAG

#define SIEGEBOT_ROCKET_WALL_TRACE_TAG   "tag_gunner_flash2b"

Definition at line 58 of file _siegebot.gsc.

◆ SIEGEBOT_ROCKET_WALL_Z_OFFSET

#define SIEGEBOT_ROCKET_WALL_Z_OFFSET   500

Definition at line 66 of file _siegebot.gsc.

Function Documentation

◆ __init__()

function __init__ ( )

◆ arm_test()

function arm_test ( )

◆ Attack_Rocket()

function Attack_Rocket ( target  )

Definition at line 1170 of file _siegebot.gsc.

References waittill_any_timeout().

Referenced by Attack_Thread_Rocket().

◆ Attack_Thread_machinegun()

function Attack_Thread_machinegun ( )

Definition at line 1118 of file _siegebot.gsc.

References fire_for_time().

Referenced by state_combat_update().

◆ Attack_Thread_Rocket()

function Attack_Thread_Rocket ( )

Definition at line 1182 of file _siegebot.gsc.

References Attack_Rocket(), Cooldown(), IsCooldownReady(), and weapon_doors_state().

◆ clean_up_spawned()

function clean_up_spawned ( )

Definition at line 580 of file _siegebot.gsc.

Referenced by state_death_update().

◆ clean_up_spawnedOnDeath()

function clean_up_spawnedOnDeath ( entToWatch  )

Definition at line 587 of file _siegebot.gsc.

Referenced by initJumpStruct().

◆ defaultRole()

◆ destroy_siegebot()

function destroy_siegebot ( )

Definition at line 1403 of file _siegebot.gsc.

Referenced by watch_game_ended().

◆ disable_missiles()

function disable_missiles ( )

Definition at line 1514 of file _siegebot.gsc.

References SIEGEBOT_MISSILE_TURRET_INDEX.

Referenced by reload_rockets().

◆ does_rocket_shoot_through_wall()

◆ emped()

◆ emped_enter()

function emped_enter ( params  )

Definition at line 391 of file _siegebot.gsc.

References toggle_emp_fx().

Referenced by defaultRole().

◆ emped_exit()

function emped_exit ( params  )

Definition at line 426 of file _siegebot.gsc.

Referenced by defaultRole().

◆ emped_reenter()

function emped_reenter ( params  )

Definition at line 430 of file _siegebot.gsc.

Referenced by defaultRole().

◆ emped_update()

function emped_update ( params  )

Definition at line 405 of file _siegebot.gsc.

References evaluate_connections(), stopMovementAndSetBrake(), and waittill_asm_complete().

Referenced by defaultRole().

◆ enable_missiles()

function enable_missiles ( )

Definition at line 1508 of file _siegebot.gsc.

References SIEGEBOT_MISSILE_TURRET_INDEX.

Referenced by reload_rockets(), and watch_rockets().

◆ extend_left_arm()

function extend_left_arm ( )

Definition at line 1602 of file _siegebot.gsc.

References DEFAULT, and set().

Referenced by arm_test(), and watch_left_arm().

◆ extend_right_arm()

function extend_right_arm ( )

Definition at line 1636 of file _siegebot.gsc.

References DEFAULT, and set().

Referenced by arm_test(), and watch_right_arm().

◆ face_target()

function face_target ( position  ,
targetAngleDiff   
)

Definition at line 1048 of file _siegebot.gsc.

References FLAT_ORIGIN, locomotion_start(), TimeSince(), and WAIT_SERVER_FRAME.

Referenced by Movement_Thread(), Scan(), and state_jump_update().

◆ GetNextMovePosition_tactical()

◆ GetNextMovePosition_unaware()

function GetNextMovePosition_unaware ( )

◆ initJumpStruct()

function initJumpStruct ( )

Definition at line 595 of file _siegebot.gsc.

References clean_up_spawnedOnDeath(), get_array(), and Spawn().

Referenced by siegebot_initialize().

◆ locomotion_start()

function locomotion_start ( )

Definition at line 820 of file _siegebot.gsc.

Referenced by face_target(), Movement_Thread(), and Movement_Thread_Unaware().

◆ monitor_enter_exit_vehicle()

function monitor_enter_exit_vehicle ( )

Definition at line 1226 of file _siegebot.gsc.

References vehicle_occupied(), and vehicle_unoccupied().

Referenced by siegebot_initialize().

◆ Movement_Thread()

◆ Movement_Thread_Unaware()

function Movement_Thread_Unaware ( )

◆ on_player_disconnected()

function on_player_disconnected ( )

Definition at line 1773 of file _siegebot.gsc.

Referenced by __init__().

◆ pain_toggle()

function pain_toggle ( enabled  )

Definition at line 439 of file _siegebot.gsc.

Referenced by state_jump_enter().

◆ pain_update()

function pain_update ( params  )

Definition at line 444 of file _siegebot.gsc.

References evaluate_connections(), stopMovementAndSetBrake(), and waittill_asm_complete().

Referenced by defaultRole().

◆ path_update_interrupt()

function path_update_interrupt ( )

Definition at line 881 of file _siegebot.gsc.

References SQR, and TimeSince().

Referenced by Movement_Thread(), and Movement_Thread_Unaware().

◆ process_siegebot_kill()

function process_siegebot_kill ( driver  )

Definition at line 1445 of file _siegebot.gsc.

References processScoreEvent().

Referenced by watch_death().

◆ reload_rockets()

function reload_rockets ( player  )

◆ retract_left_arm()

function retract_left_arm ( )

Definition at line 1588 of file _siegebot.gsc.

References DEFAULT, and set().

Referenced by arm_test(), and watch_left_arm().

◆ retract_right_arm()

function retract_right_arm ( )

Definition at line 1622 of file _siegebot.gsc.

References DEFAULT, and set().

Referenced by arm_test(), and watch_right_arm().

◆ Scan()

function Scan ( )

Definition at line 1082 of file _siegebot.gsc.

References face_target(), and waittill_any_timeout().

Referenced by Movement_Thread_Unaware().

◆ set_rocket_count()

function set_rocket_count ( rocket_count  )

Definition at line 1502 of file _siegebot.gsc.

References update_client_ammo().

Referenced by reload_rockets(), and watch_rockets().

◆ siegebot_callback_damage()

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

◆ siegebot_driving()

function siegebot_driving ( params  )

Definition at line 280 of file _siegebot.gsc.

References siegebot_kill_on_tilting(), and siegebot_player_fireupdate().

Referenced by defaultRole().

◆ siegebot_initialize()

◆ siegebot_kill_on_tilting()

function siegebot_kill_on_tilting ( )

Definition at line 290 of file _siegebot.gsc.

References WAIT_SERVER_FRAME.

Referenced by siegebot_driving().

◆ siegebot_player_aimUpdate()

◆ siegebot_player_fireupdate()

function siegebot_player_fireupdate ( )

◆ siegebot_update_difficulty()

function siegebot_update_difficulty ( )

Definition at line 175 of file _siegebot.gsc.

References get_general_difficulty_level().

Referenced by siegebot_initialize().

◆ state_combat_exit()

function state_combat_exit ( params  )

Definition at line 814 of file _siegebot.gsc.

Referenced by defaultRole().

◆ state_combat_update()

function state_combat_update ( params  )

Definition at line 804 of file _siegebot.gsc.

References Attack_Thread_machinegun(), Attack_Thread_rocket(), and Movement_Thread().

Referenced by defaultRole().

◆ state_death_update()

◆ state_jump_can_enter()

function state_jump_can_enter ( from_state  ,
to_state  ,
connection   
)

Definition at line 615 of file _siegebot.gsc.

References IS_TRUE.

Referenced by defaultRole().

◆ state_jump_enter()

function state_jump_enter ( params  )

Definition at line 623 of file _siegebot.gsc.

References DEBUG_ON, pain_toggle(), PHYSICS_TRACE_MASK_VEHICLE, stopMovementAndSetBrake(), and trace().

Referenced by defaultRole().

◆ state_jump_exit()

function state_jump_exit ( params  )

Definition at line 797 of file _siegebot.gsc.

Referenced by defaultRole().

◆ state_jump_update()

function state_jump_update ( params  )

◆ state_unaware_update()

function state_unaware_update ( params  )

Definition at line 477 of file _siegebot.gsc.

References evaluate_connections(), and Movement_Thread_Unaware().

Referenced by defaultRole().

◆ stopMovementAndSetBrake()

function stopMovementAndSetBrake ( )

◆ update_client_ammo()

function update_client_ammo ( ammo_count  ,
driver_only_update  = false 
)

Definition at line 1552 of file _siegebot.gsc.

References increment_to_player(), and set().

Referenced by set_rocket_count(), and watch_rockets().

◆ update_emped_driver_visuals()

function update_emped_driver_visuals ( )

Definition at line 1377 of file _siegebot.gsc.

References emped(), and update_emped_visuals().

Referenced by emped(), and vehicle_occupied().

◆ update_emped_visuals()

function update_emped_visuals ( driver  ,
emped   
)

Definition at line 1382 of file _siegebot.gsc.

References emped(), set_to_player(), and VAL.

Referenced by update_emped_driver_visuals(), and vehicle_unoccupied().

◆ vehicle_occupied()

◆ vehicle_unoccupied()

function vehicle_unoccupied ( player  )

◆ wait_then_hide()

function wait_then_hide ( wait_time  )

Definition at line 1408 of file _siegebot.gsc.

Referenced by watch_game_ended().

◆ watch_death()

◆ watch_emped()

function watch_emped ( )

Definition at line 1347 of file _siegebot.gsc.

References emped().

Referenced by siegebot_initialize().

◆ watch_game_ended()

function watch_game_ended ( )

Definition at line 1393 of file _siegebot.gsc.

References destroy_siegebot(), and wait_then_hide().

Referenced by siegebot_initialize().

◆ watch_left_arm()

◆ watch_right_arm()

◆ watch_rockets()

function watch_rockets ( player  )

◆ weapon_doors_state()

function weapon_doors_state ( isOpen  ,
waittime  = 0 
)