![]() |
Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
|
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) |
#define RAPS_IWUS_SETTLE_ON_MESH_TIMEOUT ( RAPS_IWUS_Z_SETTLE_TIMEOUT + 5.0 ) |
function ActivateRapsKillstreak | ( | hardpointType | ) |
Definition at line 312 of file _raps.gsc.
References ARRAY_ADD, AutoReactivateRapsKillstreak(), INVALID_KILLSTREAK_ID, isKillstreakAllowed(), killstreakStart(), OnTeamChanged(), play_killstreak_start_dialog(), play_pilot_dialog_on_owner(), RAPS_HELICOPTER_DEBUG_AUTO_REACTIVATE, RAPS_NAME, SpawnRapsHelicopter(), UpdateKillstreakOnHelicopterDeath(), WaitUntilTeamChange(), and WatchRapsKillstreakEnd().
Referenced by AutoReactivateRapsKillstreak(), and init().
function AutoReactivateRapsKillstreak | ( | ownerEntNum | , |
player | , | ||
hardpointType | |||
) |
Definition at line 362 of file _raps.gsc.
References ActivateRapsKillstreak().
Referenced by ActivateRapsKillstreak().
function AutoSetVisibleToAll | ( | ) |
function ConfigureChopperTeamPost | ( | owner | , |
isHacked | |||
) |
Definition at line 705 of file _raps.gsc.
References CreateRapsHelicopterInfluencer(), and WatchOwnerDisconnect().
Referenced by SpawnRapsHelicopter().
function ConfigureTeamPost | ( | owner | , |
isHacked | |||
) |
Definition at line 1266 of file _raps.gsc.
References CreateRapsInfluencer(), InitEnemySelection(), and WatchRapsTippedOver().
Referenced by SpawnRaps().
function CreateRapsHelicopterInfluencer | ( | ) |
Definition at line 1477 of file _raps.gsc.
References create_entity_influencer(), get_enemy_team_mask(), and spawn().
Referenced by ConfigureChopperTeamPost().
function CreateRapsInfluencer | ( | ) |
Definition at line 1509 of file _raps.gsc.
References create_entity_influencer(), get_enemy_team_mask(), and RAPS_NAME.
Referenced by ConfigureTeamPost().
function DestroyAllRaps | ( | entNum | , |
abandoned | = false |
||
) |
Definition at line 1451 of file _raps.gsc.
References detonate().
Referenced by OnEMP(), and OnTeamChanged().
function DropRaps | ( | ) |
Definition at line 1089 of file _raps.gsc.
References RAPS_HELICOPTER_DROP_INTERVAL, and SpawnRaps().
Referenced by HelicopterThink(), and HelicopterThinkDebugVisitAll().
function FinalHeliDeathExplode | ( | ) |
Definition at line 1163 of file _raps.gsc.
References RAPS_HELI_DEATH_FX, and RAPS_HELI_DEATH_FX_TAG.
Referenced by WaitForHelicopterShutdown().
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().
function ForceGetEnemies | ( | ) |
Definition at line 1465 of file _raps.gsc.
References IsEnemyPlayer(), and IsInSmokeGrenade().
Referenced by init().
function GetClosestRandomHelicopterPosition | ( | refPoint | , |
pickCount | , | ||
avoidPoint | = RAPS_HEDEPS_UNSPECIFIED_AVOID_POINT , |
||
otherAvoidPoint | = RAPS_HEDEPS_UNSPECIFIED_AVOID_POINT |
||
) |
Definition at line 919 of file _raps.gsc.
References GetRandomHelicopterPosition().
Referenced by PickNextDropLocation(), and RapsHelicopterDynamicAvoidanceUpdate().
function GetInitialHelicopterFlyHeight | ( | ) |
Definition at line 684 of file _raps.gsc.
References getMinimumFlyHeight(), RAPS_HELICOPTER_FLY_HEIGHT, and RAPS_HELICOPTER_Z_OFFSET_PER_HELI.
Referenced by SpawnRapsHelicopter().
function GetOtherHelicopterPointToAvoid | ( | ) |
Definition at line 948 of file _raps.gsc.
Referenced by PickNextDropLocation().
function GetRandomHelicopterLeaveOrigin | ( | fly_height | , |
startLocationToLeaveFrom | |||
) |
Definition at line 678 of file _raps.gsc.
References getValidRandomLeaveNode().
Referenced by HelicopterLeave(), and RapsHelicopterDynamicAvoidanceUpdate().
function GetRandomHelicopterPosition | ( | avoidPoint | = RAPS_HEDEPS_UNSPECIFIED_AVOID_POINT , |
otherAvoidPoint | = RAPS_HEDEPS_UNSPECIFIED_AVOID_POINT , |
||
avoidRadiusSqr | = RAPS_HEDEPS_AVOID_RADIUS_SQR |
||
) |
Definition at line 872 of file _raps.gsc.
References RAPS_HEDEPS_AVOID_RADIUS, RAPS_HEDEPS_DEBUG, RAPS_HEDEPS_REDUCE_RADIUS_RETRIES, RAPS_HELICOPTER_FLY_HEIGHT, and SERVER_FRAME.
Referenced by GetClosestRandomHelicopterPosition(), PickNextDropLocation(), and RapsHelicopterDynamicAvoidanceUpdate().
function GetRandomHelicopterStartOrigin | ( | fly_height | , |
firstDropLocation | |||
) |
Definition at line 672 of file _raps.gsc.
References getValidRandomStartNode().
Referenced by HelicopterThinkDebugVisitAll(), and SpawnRapsHelicopter().
function HelicopterLeave | ( | ) |
Definition at line 1169 of file _raps.gsc.
References GetRandomHelicopterLeaveOrigin(), play_pilot_dialog_on_owner(), play_taacom_dialog_response_on_owner(), RAPS_HELICOPTER_LEAVE_LOCATION_REACHED_SQR, RAPS_NAME, and UpdateHelicopterSpeed().
Referenced by WaitForHelicopterShutdown().
function HelicopterThink | ( | ) |
Definition at line 989 of file _raps.gsc.
References DropRaps(), get_closest_player_enemy(), mpdialog_value(), PickNextDropLocation(), play_killstreak_threat(), play_pilot_dialog_on_owner(), RAPS_HELICOPTER_DROP_DURATION, RAPS_HELICOPTER_DROP_DURATION_DELTA, RAPS_HELICOPTER_DROP_DURATION_LAST, RAPS_HELICOPTER_DROP_DURATION_LAST_DELTA, RAPS_HELICOPTER_DROP_LOCATION_COUNT, RAPS_HELICOPTER_DROP_LOCATION_TOLERANCE_SQR, RAPS_HELICOPTER_NAV_DEBUG_VISIT_ALL, RAPS_NAME, UpdateHelicopterSpeed(), and WaitForStoppingMoveToExpire().
Referenced by SpawnRapsHelicopter().
function HelicopterThinkDebugVisitAll | ( | ) |
Definition at line 1041 of file _raps.gsc.
References DropRaps(), GetRandomHelicopterStartOrigin(), RAPS_HELICOPTER_DROP_LOCATION_TOLERANCE_SQR, RAPS_HELICOPTER_NAV_DEBUG_VISIT_ALL, RAPS_HELICOPTER_NAV_DEBUG_VISIT_ALL_FAKE_LEAVE, UpdateHelicopterSpeed(), and WaitForStoppingMoveToExpire().
Referenced by SpawnRapsHelicopter().
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().
function HeliExtraLowHealthFx | ( | ) |
function HeliLowHealthFx | ( | ) |
function init | ( | ) |
Definition at line 49 of file _raps.gsc.
References ActivateRapsKillstreak(), allow_assists(), ForceGetEnemies(), InitHelicopterPositions(), on_connect(), OnPlayerConnect(), RAPS_DRONE_NAME, RAPS_NAME, register(), register_dialog(), register_killstreak_bundle(), register_strings(), and VERSION_SHIP.
function InitEnemySelection | ( | owner | ) |
Definition at line 1377 of file _raps.gsc.
References InitialWaitUntilSettled(), RAPS_SLEEP_DURATION, SelfDestruct(), set(), set_state(), toggle_sounds(), and wait_network_frame().
Referenced by ConfigureTeamPost().
function InitHelicopterPositions | ( | ) |
Definition at line 423 of file _raps.gsc.
References GetMapCenter(), GetMaxMapWidth(), NoVehicleFaceThread(), omit_locations, PHYSICS_TRACE_MASK_WATER, PositionQuery_PointArray(), RAPS_HELICOPTER_FLY_HEIGHT, RAPS_HELICOPTER_NAV_MAP_CENTER_MAX_OFFSET, RAPS_HELICOPTER_NAV_POINT_SPACING, RAPS_HELICOPTER_NAV_POINT_TRACE_DEBUG, RAPS_HELICOPTER_NAV_RADIUS_MIN, RAPS_HELICOPTER_NAV_SPACIOUS_POINT_BOUNDARY, RAPS_HELICOPTER_NAV_TRACE_BOX_WIDTH, trace(), and TryAddPointForHelicopterPosition().
Referenced by init().
function InitialWaitUntilSettled | ( | ) |
Definition at line 1424 of file _raps.gsc.
References RAPS_IWUS_FORCE_TIMEOUT_TEST, RAPS_IWUS_RAPS_RADIUS, RAPS_IWUS_SETTLE_ON_MESH_TIMEOUT, RAPS_IWUS_WAIT_INTERVAL, RAPS_IWUS_Z_SETTLE_TIMEOUT, and RAPS_IWUS_Z_SPEED_THRESHOLD.
Referenced by InitEnemySelection().
function IsTraceSafeForRapsDroneDropFromHelicopter | ( | spaciousPoint | , |
traceHeight | , | ||
traceBoxHalfWidth | |||
) |
Definition at line 645 of file _raps.gsc.
References end(), PHYSICS_TRACE_MASK_PHYSICS, RAPS_HELICOPTER_NAV_END_POINT_TRACE_OFFSET, RAPS_HELICOPTER_NAV_POINT_TRACE_DEBUG, and trace().
Referenced by TryAddPointForHelicopterPosition().
function NoVehicleFaceThread | ( | mapCenter | , |
radius | |||
) |
Definition at line 413 of file _raps.gsc.
Referenced by InitHelicopterPositions().
function OnDeath | ( | attacker | , |
weapon | |||
) |
Definition at line 833 of file _raps.gsc.
References addFlySwatterStat(), destroyedAircraft(), IsEnemyPlayer(), play_destroyed_dialog_on_owner(), play_pilot_dialog_on_owner(), and RAPS_NAME.
Referenced by SpawnRapsHelicopter().
function OnEMP | ( | attacker | , |
ownerEntNum | |||
) |
Definition at line 408 of file _raps.gsc.
References DestroyAllRaps().
function OnExtraLowHealth | ( | attacker | , |
weapon | |||
) |
Definition at line 866 of file _raps.gsc.
References HeliExtraLowHealthFx().
Referenced by SpawnRapsHelicopter().
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().
function OnPlayerConnect | ( | ) |
function OnRapsTimeout | ( | ) |
function OnTeamChanged | ( | entNum | , |
event | |||
) |
Definition at line 402 of file _raps.gsc.
References DestroyAllRaps().
Referenced by ActivateRapsKillstreak().
function PickNextDropLocation | ( | heli | , |
drop_index | , | ||
firstDropReferencePoint | , | ||
assigned_fly_height | , | ||
lastDropLocation | |||
) |
Definition at line 966 of file _raps.gsc.
References GetClosestRandomHelicopterPosition(), GetOtherHelicopterPointToAvoid(), GetRandomHelicopterPosition(), and RAPS_HEDEPS_FIRST_POINT_PERCENT_OF_TOTAL.
Referenced by HelicopterThink(), and SpawnRapsHelicopter().
function RapsHelicopterDynamicAvoidance | ( | ) |
Definition at line 114 of file _raps.gsc.
References RAPS_HELAV_TIME_BETWEEN_UPDATES, and RapsHelicopterDynamicAvoidanceUpdate().
function RapsHelicopterDynamicAvoidanceUpdate | ( | index_to_update | ) |
Definition at line 132 of file _raps.gsc.
References GetClosestRandomHelicopterPosition(), GetRandomHelicopterLeaveOrigin(), GetRandomHelicopterPosition(), RAPS_HELAV_ALWAYS_PICK_NEW_GOAL_POST_BACK_OFF, RAPS_HELAV_BACK_OFF_FACTOR_MAX, RAPS_HELAV_BACK_OFF_FACTOR_MIN, RAPS_HELAV_DEBUG, RAPS_HELAV_DRIVE_MODE_CAUTIOUS, RAPS_HELAV_DRIVE_MODE_EXPEDIENT, RAPS_HELAV_DRIVE_MODE_MORE_CAUTIOUS, RAPS_HELAV_FORWARD_OFFSET, RAPS_HELAV_FULL_STOP_DISTANCE, RAPS_HELAV_FULL_STOP_DISTANCE_SQR, RAPS_HELAV_IN_FRONT_DOT, RAPS_HELAV_MIN_PICK_NEW_GOAL_TIME_MS, RAPS_HELAV_MIN_TIME_BETWEEN_FULL_STOPS_MS, RAPS_HELAV_NEED_NEW_GOAL_DISTANCE, RAPS_HELAV_NEED_NEW_GOAL_DISTANCE_SQR, RAPS_HELAV_OTHER_FORWARD_OFFSET, RAPS_HELAV_SLOW_DOWN_DISTANCE, RAPS_HELAV_SLOW_DOWN_DISTANCE_SQR, RAPS_HELAV_TIME_BETWEEN_UPDATES, SERVER_FRAME, StopHelicopter(), and UpdateHelicopterSpeed().
Referenced by RapsHelicopterDynamicAvoidance().
function SelfDestruct | ( | attacker | ) |
Definition at line 1293 of file _raps.gsc.
References detonate().
Referenced by InitEnemySelection(), and OnRapsTimeout().
function SpawnRaps | ( | origin | , |
angles | |||
) |
Definition at line 1229 of file _raps.gsc.
References ARRAY_ADD, AutoSetVisibleToAll(), configure_team(), ConfigureTeamPost(), enable_hacking(), ENEMY_VEHICLE_ACTIVE, OnRapsTimeout(), RAPS_HURT_TRIGGER_IMMUNE_DURATION_MS, RAPS_NAME, RAPS_VEHICLE, set(), toggle_sounds(), VAL, WaitForTimeout(), WatchRapsDeath(), and WatchRapsKills().
Referenced by DropRaps().
function SpawnRapsHelicopter | ( | killstreakId | ) |
Definition at line 712 of file _raps.gsc.
References configure_team(), ConfigureChopperTeamPost(), detonate_damage_monitored(), enable_hacking(), ENEMY_VEHICLE_ACTIVE, get_low_health(), get_max_health(), GetInitialHelicopterFlyHeight(), GetRandomHelicopterStartOrigin(), HelicopterThink(), HelicopterThinkDebugVisitAll(), MonitorDamage(), OnDeath(), OnExtraLowHealth(), OnLowHealth(), PickNextDropLocation(), RAPS_HEDEPS_UNSPECIFIED_AVOID_POINT, RAPS_HELAV_EXPEDIENT_MODE_ACCEL, RAPS_HELAV_EXPEDIENT_MODE_DECEL, RAPS_HELICOPTER_FLY_HEIGHT, RAPS_HELICOPTER_HACKS_TO_DESTROY, RAPS_HELICOPTER_INFO, RAPS_HELICOPTER_MISSILES_TO_DESTROY, RAPS_HELICOPTER_MODEL, RAPS_HELICOPTER_REMOTE_MISSILES_TO_DESTROY, RAPS_NAME, set(), WaitForHelicopterShutdown(), and WatchGameEnded().
Referenced by ActivateRapsKillstreak().
function Spin | ( | ) |
Definition at line 1125 of file _raps.gsc.
Referenced by WaitForHelicopterShutdown().
function StopHelicopter | ( | ) |
Definition at line 1219 of file _raps.gsc.
References RAPS_HELAV_FULL_STOP_MODE_DECEL.
Referenced by RapsHelicopterDynamicAvoidanceUpdate().
function TryAddPointForHelicopterPosition | ( | spaciousPoint | , |
minFlyHeight | |||
) |
Definition at line 631 of file _raps.gsc.
References ARRAY_ADD, IsTraceSafeForRapsDroneDropFromHelicopter(), RAPS_HELICOPTER_NAV_ADDITIONAL_TRACE_HEIGHT, and RAPS_HELICOPTER_NAV_TRACE_BOX_WIDTH.
Referenced by InitHelicopterPositions().
function UpdateHelicopterSpeed | ( | driveMode | ) |
Definition at line 1185 of file _raps.gsc.
References MPH_TO_INCHES_PER_SEC, RAPS_HELAV_CAUTIOUS_MODE_ACCEL, RAPS_HELAV_CAUTIOUS_MODE_DECEL, RAPS_HELAV_DRIVE_MODE_CAUTIOUS, RAPS_HELAV_DRIVE_MODE_EXPEDIENT, RAPS_HELAV_DRIVE_MODE_MORE_CAUTIOUS, RAPS_HELAV_EXPEDIENT_MODE_ACCEL, RAPS_HELAV_EXPEDIENT_MODE_DECEL, RAPS_HELAV_SLOW_DOWN_MORE_SCALE_FACTOR, and RAPS_HELAV_SLOW_DOWN_SPEED_SCALE_FACTOR.
Referenced by HelicopterLeave(), HelicopterThink(), HelicopterThinkDebugVisitAll(), and RapsHelicopterDynamicAvoidanceUpdate().
function UpdateKillstreakOnHelicopterDeath | ( | helicopter | , |
ownerEntEnum | |||
) |
Definition at line 395 of file _raps.gsc.
Referenced by ActivateRapsKillstreak().
function WaitForHelicopterShutdown | ( | ) |
Definition at line 765 of file _raps.gsc.
References FinalHeliDeathExplode(), FirstHeliExplo(), HelicopterLeave(), HeliDeathTrails(), RAPS_HELI_POST_DEATH_FX_GHOST_DELAY, and Spin().
Referenced by SpawnRapsHelicopter().
function WaitForStoppingMoveToExpire | ( | ) |
Definition at line 939 of file _raps.gsc.
References RAPS_HELAV_STOP_WAIT_BEFORE_NEXT_DROP_POINT_MS.
Referenced by HelicopterThink(), and HelicopterThinkDebugVisitAll().
function WatchGameEnded | ( | ) |
Definition at line 824 of file _raps.gsc.
Referenced by SpawnRapsHelicopter().
function WatchOwnerDisconnect | ( | owner | ) |
Definition at line 813 of file _raps.gsc.
References waittill_any().
Referenced by ConfigureChopperTeamPost().
function WatchRapsDeath | ( | originalOwner | ) |
Definition at line 1346 of file _raps.gsc.
References destroyNonAirScoreStreak_PostStatsLock(), destroyScoreStreak(), and processScoreEvent().
Referenced by SpawnRaps().
function WatchRapsKills | ( | originalOwner | ) |
function WatchRapsKillstreakEnd | ( | killstreakId | , |
ownerEntNum | , | ||
team | |||
) |
Definition at line 379 of file _raps.gsc.
References killstreakStop(), and RAPS_NAME.
Referenced by ActivateRapsKillstreak().
function WatchRapsTippedOver | ( | owner | ) |
Definition at line 1329 of file _raps.gsc.
References detonate().
Referenced by ConfigureTeamPost().