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

Go to the source code of this file.

Macros

#define RAPS_HELI_POST_DEATH_FX_GHOST_DELAY   0.1
 
#define RAPS_HURT_TRIGGER_IMMUNE_DURATION_MS   5000
 
#define RAPS_IWUS_FORCE_TIMEOUT_TEST   ( false )
 
#define RAPS_IWUS_RAPS_RADIUS   ( 36 )
 
#define RAPS_IWUS_SETTLE_ON_MESH_TIMEOUT   ( RAPS_IWUS_Z_SETTLE_TIMEOUT + 5.0 )
 
#define RAPS_IWUS_WAIT_INTERVAL   ( 0.2 )
 
#define RAPS_IWUS_Z_SETTLE_TIMEOUT   ( 5.0 )
 
#define RAPS_IWUS_Z_SPEED_THRESHOLD   ( 0.1 )
 

Functions

function ActivateRapsKillstreak (hardpointType)
 
function AutoReactivateRapsKillstreak (ownerEntNum, player, hardpointType)
 
function AutoSetVisibleToAll ()
 
function ConfigureChopperTeamPost (owner, isHacked)
 
function ConfigureTeamPost (owner, isHacked)
 
function CreateRapsHelicopterInfluencer ()
 
function CreateRapsInfluencer ()
 
function DestroyAllRaps (entNum, abandoned=false)
 
function DropRaps ()
 
function FinalHeliDeathExplode ()
 
function FirstHeliExplo ()
 
function ForceGetEnemies ()
 
function GetClosestRandomHelicopterPosition (refPoint, pickCount, avoidPoint=RAPS_HEDEPS_UNSPECIFIED_AVOID_POINT, otherAvoidPoint=RAPS_HEDEPS_UNSPECIFIED_AVOID_POINT)
 
function GetInitialHelicopterFlyHeight ()
 
function GetOtherHelicopterPointToAvoid ()
 
function GetRandomHelicopterLeaveOrigin (fly_height, startLocationToLeaveFrom)
 
function GetRandomHelicopterPosition (avoidPoint=RAPS_HEDEPS_UNSPECIFIED_AVOID_POINT, otherAvoidPoint=RAPS_HEDEPS_UNSPECIFIED_AVOID_POINT, avoidRadiusSqr=RAPS_HEDEPS_AVOID_RADIUS_SQR)
 
function GetRandomHelicopterStartOrigin (fly_height, firstDropLocation)
 
function HelicopterLeave ()
 
function HelicopterThink ()
 
function HelicopterThinkDebugVisitAll ()
 
function HeliDeathTrails ()
 
function HeliExtraLowHealthFx ()
 
function HeliLowHealthFx ()
 
function init ()
 
function InitEnemySelection (owner)
 
function InitHelicopterPositions ()
 
function InitialWaitUntilSettled ()
 
function IsTraceSafeForRapsDroneDropFromHelicopter (spaciousPoint, traceHeight, traceBoxHalfWidth)
 
function NoVehicleFaceThread (mapCenter, radius)
 
function OnDeath (attacker, weapon)
 
function OnEMP (attacker, ownerEntNum)
 
function OnExtraLowHealth (attacker, weapon)
 
function OnLowHealth (attacker, weapon)
 
function OnPlayerConnect ()
 
function OnRapsTimeout ()
 
function OnTeamChanged (entNum, event)
 
function PickNextDropLocation (heli, drop_index, firstDropReferencePoint, assigned_fly_height, lastDropLocation)
 
function RapsHelicopterDynamicAvoidance ()
 
function RapsHelicopterDynamicAvoidanceUpdate (index_to_update)
 
function SelfDestruct (attacker)
 
function SpawnRaps (origin, angles)
 
function SpawnRapsHelicopter (killstreakId)
 
function Spin ()
 
function StopHelicopter ()
 
function TryAddPointForHelicopterPosition (spaciousPoint, minFlyHeight)
 
function UpdateHelicopterSpeed (driveMode)
 
function UpdateKillstreakOnHelicopterDeath (helicopter, ownerEntEnum)
 
function WaitForHelicopterShutdown ()
 
function WaitForStoppingMoveToExpire ()
 
function WatchGameEnded ()
 
function WatchOwnerDisconnect (owner)
 
function WatchRapsDeath (originalOwner)
 
function WatchRapsKills (originalOwner)
 
function WatchRapsKillstreakEnd (killstreakId, ownerEntNum, team)
 
function WatchRapsTippedOver (owner)
 

Macro Definition Documentation

◆ RAPS_HELI_POST_DEATH_FX_GHOST_DELAY

#define RAPS_HELI_POST_DEATH_FX_GHOST_DELAY   0.1

Definition at line 36 of file _raps.gsc.

◆ RAPS_HURT_TRIGGER_IMMUNE_DURATION_MS

#define RAPS_HURT_TRIGGER_IMMUNE_DURATION_MS   5000

Definition at line 35 of file _raps.gsc.

◆ RAPS_IWUS_FORCE_TIMEOUT_TEST

#define RAPS_IWUS_FORCE_TIMEOUT_TEST   ( false )

Definition at line 1421 of file _raps.gsc.

◆ RAPS_IWUS_RAPS_RADIUS

#define RAPS_IWUS_RAPS_RADIUS   ( 36 )

Definition at line 1422 of file _raps.gsc.

◆ RAPS_IWUS_SETTLE_ON_MESH_TIMEOUT

#define RAPS_IWUS_SETTLE_ON_MESH_TIMEOUT   ( RAPS_IWUS_Z_SETTLE_TIMEOUT + 5.0 )

Definition at line 1420 of file _raps.gsc.

◆ RAPS_IWUS_WAIT_INTERVAL

#define RAPS_IWUS_WAIT_INTERVAL   ( 0.2 )

Definition at line 1417 of file _raps.gsc.

◆ RAPS_IWUS_Z_SETTLE_TIMEOUT

#define RAPS_IWUS_Z_SETTLE_TIMEOUT   ( 5.0 )

Definition at line 1419 of file _raps.gsc.

◆ RAPS_IWUS_Z_SPEED_THRESHOLD

#define RAPS_IWUS_Z_SPEED_THRESHOLD   ( 0.1 )

Definition at line 1418 of file _raps.gsc.

Function Documentation

◆ ActivateRapsKillstreak()

◆ AutoReactivateRapsKillstreak()

function AutoReactivateRapsKillstreak ( ownerEntNum  ,
player  ,
hardpointType   
)

Definition at line 362 of file _raps.gsc.

References ActivateRapsKillstreak().

Referenced by ActivateRapsKillstreak().

◆ AutoSetVisibleToAll()

function AutoSetVisibleToAll ( )

Definition at line 1276 of file _raps.gsc.

References WAIT_SERVER_FRAME.

Referenced by SpawnRaps().

◆ ConfigureChopperTeamPost()

function ConfigureChopperTeamPost ( owner  ,
isHacked   
)

Definition at line 705 of file _raps.gsc.

References CreateRapsHelicopterInfluencer(), and WatchOwnerDisconnect().

Referenced by SpawnRapsHelicopter().

◆ ConfigureTeamPost()

function ConfigureTeamPost ( owner  ,
isHacked   
)

Definition at line 1266 of file _raps.gsc.

References CreateRapsInfluencer(), InitEnemySelection(), and WatchRapsTippedOver().

Referenced by SpawnRaps().

◆ CreateRapsHelicopterInfluencer()

function CreateRapsHelicopterInfluencer ( )

Definition at line 1477 of file _raps.gsc.

References create_entity_influencer(), get_enemy_team_mask(), and spawn().

Referenced by ConfigureChopperTeamPost().

◆ CreateRapsInfluencer()

function CreateRapsInfluencer ( )

Definition at line 1509 of file _raps.gsc.

References create_entity_influencer(), get_enemy_team_mask(), and RAPS_NAME.

Referenced by ConfigureTeamPost().

◆ DestroyAllRaps()

function DestroyAllRaps ( entNum  ,
abandoned  = false 
)

Definition at line 1451 of file _raps.gsc.

References detonate().

Referenced by OnEMP(), and OnTeamChanged().

◆ DropRaps()

function DropRaps ( )

Definition at line 1089 of file _raps.gsc.

References RAPS_HELICOPTER_DROP_INTERVAL, and SpawnRaps().

Referenced by HelicopterThink(), and HelicopterThinkDebugVisitAll().

◆ FinalHeliDeathExplode()

function FinalHeliDeathExplode ( )

Definition at line 1163 of file _raps.gsc.

References RAPS_HELI_DEATH_FX, and RAPS_HELI_DEATH_FX_TAG.

Referenced by WaitForHelicopterShutdown().

◆ FirstHeliExplo()

function FirstHeliExplo ( )

Definition at line 1142 of file _raps.gsc.

References RAPS_HELI_FIRST_EXPLO_FX, and RAPS_HELI_FIRST_EXPLO_FX_TAG.

Referenced by WaitForHelicopterShutdown().

◆ ForceGetEnemies()

function ForceGetEnemies ( )

Definition at line 1465 of file _raps.gsc.

References IsEnemyPlayer(), and IsInSmokeGrenade().

Referenced by init().

◆ GetClosestRandomHelicopterPosition()

function GetClosestRandomHelicopterPosition ( refPoint  ,
pickCount  ,
avoidPoint  = RAPS_HEDEPS_UNSPECIFIED_AVOID_POINT,
otherAvoidPoint  = RAPS_HEDEPS_UNSPECIFIED_AVOID_POINT 
)

◆ GetInitialHelicopterFlyHeight()

function GetInitialHelicopterFlyHeight ( )

◆ GetOtherHelicopterPointToAvoid()

function GetOtherHelicopterPointToAvoid ( )

Definition at line 948 of file _raps.gsc.

Referenced by PickNextDropLocation().

◆ GetRandomHelicopterLeaveOrigin()

function GetRandomHelicopterLeaveOrigin ( fly_height  ,
startLocationToLeaveFrom   
)

Definition at line 678 of file _raps.gsc.

References getValidRandomLeaveNode().

Referenced by HelicopterLeave(), and RapsHelicopterDynamicAvoidanceUpdate().

◆ GetRandomHelicopterPosition()

◆ GetRandomHelicopterStartOrigin()

function GetRandomHelicopterStartOrigin ( fly_height  ,
firstDropLocation   
)

Definition at line 672 of file _raps.gsc.

References getValidRandomStartNode().

Referenced by HelicopterThinkDebugVisitAll(), and SpawnRapsHelicopter().

◆ HelicopterLeave()

◆ HelicopterThink()

◆ HelicopterThinkDebugVisitAll()

◆ HeliDeathTrails()

function HeliDeathTrails ( )

Definition at line 1158 of file _raps.gsc.

References RAPS_HELI_DEATH_TRAIL_FX, and RAPS_HELI_DEATH_TRAIL_FX_TAG_A.

Referenced by WaitForHelicopterShutdown().

◆ HeliExtraLowHealthFx()

function HeliExtraLowHealthFx ( )

Definition at line 1153 of file _raps.gsc.

References set().

Referenced by OnExtraLowHealth().

◆ HeliLowHealthFx()

function HeliLowHealthFx ( )

Definition at line 1148 of file _raps.gsc.

References set().

Referenced by OnLowHealth().

◆ init()

◆ InitEnemySelection()

function InitEnemySelection ( owner  )

◆ InitHelicopterPositions()

◆ InitialWaitUntilSettled()

◆ IsTraceSafeForRapsDroneDropFromHelicopter()

function IsTraceSafeForRapsDroneDropFromHelicopter ( spaciousPoint  ,
traceHeight  ,
traceBoxHalfWidth   
)

◆ NoVehicleFaceThread()

function NoVehicleFaceThread ( mapCenter  ,
radius   
)

Definition at line 413 of file _raps.gsc.

Referenced by InitHelicopterPositions().

◆ OnDeath()

function OnDeath ( attacker  ,
weapon   
)

◆ OnEMP()

function OnEMP ( attacker  ,
ownerEntNum   
)

Definition at line 408 of file _raps.gsc.

References DestroyAllRaps().

◆ OnExtraLowHealth()

function OnExtraLowHealth ( attacker  ,
weapon   
)

Definition at line 866 of file _raps.gsc.

References HeliExtraLowHealthFx().

Referenced by SpawnRapsHelicopter().

◆ OnLowHealth()

function OnLowHealth ( attacker  ,
weapon   
)

Definition at line 857 of file _raps.gsc.

References HeliLowHealthFx(), play_pilot_dialog_on_owner(), and RAPS_NAME.

Referenced by SpawnRapsHelicopter().

◆ OnPlayerConnect()

function OnPlayerConnect ( )

Definition at line 81 of file _raps.gsc.

References INVALID_KILLSTREAK_ID.

Referenced by init().

◆ OnRapsTimeout()

function OnRapsTimeout ( )

Definition at line 1288 of file _raps.gsc.

References SelfDestruct().

Referenced by SpawnRaps().

◆ OnTeamChanged()

function OnTeamChanged ( entNum  ,
event   
)

Definition at line 402 of file _raps.gsc.

References DestroyAllRaps().

Referenced by ActivateRapsKillstreak().

◆ PickNextDropLocation()

function PickNextDropLocation ( heli  ,
drop_index  ,
firstDropReferencePoint  ,
assigned_fly_height  ,
lastDropLocation   
)

◆ RapsHelicopterDynamicAvoidance()

function RapsHelicopterDynamicAvoidance ( )

◆ RapsHelicopterDynamicAvoidanceUpdate()

◆ SelfDestruct()

function SelfDestruct ( attacker  )

Definition at line 1293 of file _raps.gsc.

References detonate().

Referenced by InitEnemySelection(), and OnRapsTimeout().

◆ SpawnRaps()

◆ SpawnRapsHelicopter()

◆ Spin()

function Spin ( )

Definition at line 1125 of file _raps.gsc.

Referenced by WaitForHelicopterShutdown().

◆ StopHelicopter()

function StopHelicopter ( )

Definition at line 1219 of file _raps.gsc.

References RAPS_HELAV_FULL_STOP_MODE_DECEL.

Referenced by RapsHelicopterDynamicAvoidanceUpdate().

◆ TryAddPointForHelicopterPosition()

function TryAddPointForHelicopterPosition ( spaciousPoint  ,
minFlyHeight   
)

◆ UpdateHelicopterSpeed()

◆ UpdateKillstreakOnHelicopterDeath()

function UpdateKillstreakOnHelicopterDeath ( helicopter  ,
ownerEntEnum   
)

Definition at line 395 of file _raps.gsc.

Referenced by ActivateRapsKillstreak().

◆ WaitForHelicopterShutdown()

function WaitForHelicopterShutdown ( )

◆ WaitForStoppingMoveToExpire()

function WaitForStoppingMoveToExpire ( )

◆ WatchGameEnded()

function WatchGameEnded ( )

Definition at line 824 of file _raps.gsc.

Referenced by SpawnRapsHelicopter().

◆ WatchOwnerDisconnect()

function WatchOwnerDisconnect ( owner  )

Definition at line 813 of file _raps.gsc.

References waittill_any().

Referenced by ConfigureChopperTeamPost().

◆ WatchRapsDeath()

function WatchRapsDeath ( originalOwner  )

◆ WatchRapsKills()

function WatchRapsKills ( originalOwner  )

Definition at line 1299 of file _raps.gsc.

References detonate().

Referenced by SpawnRaps().

◆ WatchRapsKillstreakEnd()

function WatchRapsKillstreakEnd ( killstreakId  ,
ownerEntNum  ,
team   
)

Definition at line 379 of file _raps.gsc.

References killstreakStop(), and RAPS_NAME.

Referenced by ActivateRapsKillstreak().

◆ WatchRapsTippedOver()

function WatchRapsTippedOver ( owner  )

Definition at line 1329 of file _raps.gsc.

References detonate().

Referenced by ConfigureTeamPost().