![]() |
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 | HELICOPTER_GUNNER_ASSISTANT_NAME "helicopter_gunner_assistant" |
#define | HELICOPTER_GUNNER_NAME "helicopter_gunner" |
#define | HELICOPTER_GUNNER_WEAPON_NAME "helicopter_player_gunner" |
#define | HELICOPTER_LEAVE_DELAY 2.0 |
#define | INVALID_ASSISTANT_SEAT_INDEX -1 |
#define | INVENTORY_HELICOPTER_GUNNER_ASSISTANT_NAME "inventory_helicopter_gunner_assistant" |
#define | REALLY_LONG_TIME_MS 9009009 |
Functions | |
function | ActivateMainGunner (killstreakType) |
function | ActivateSupportGunner (killstreakType) |
function | AllowMainTurretLockon () |
function | DeleteHelicopterCallback () |
function | EnemyIsLocking (heli) |
function | EnemyLockedOn (heli) |
function | EnterHelicopter (isOwner) |
function | GetFirstAvailableSeat (player) |
function | GetOriginOffsets (goalNode) |
function | HackedPostFunction (hacker) |
function | HackedPreFunction (hacker) |
function | helicopteDetonateViaEMP (attacker, weapon) |
function | HelicopterGunner_hacked_health_callback () |
function | HelicopterGunnerDamageOverride (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, vDamageOrigin, psOffsetTime, damageFromUnderneath, modelIndex, partName, vSurfaceNormal) |
function | HelicopterThinkThread (startNode, destNodes) |
function | HideCompassAfterWait (waittime) |
function | init () |
function | InitHelicopterSeat (index, destroyTag) |
function | LeaveHelicopter (player, ownerLeft) |
function | MainTurretDestroyed (helicopter, eAttacker, weapon) |
function | MissileCleanupThread (missile) |
function | OnPlayerConnect () |
function | OnTimeoutCallback () |
function | PerformLeaveHelicopterFromDamage () |
function | PlayLockOnSoundsThread (player, heli) |
function | SetPlayerMovedRecentlyThread () |
function | SpawnHeliGunner () |
function | SupportTurretDestroyed (helicopter, seatIndex) |
function | TravelToNode (goalNode) |
function | update_client_for_driver_and_occupants () |
function | update_client_for_player (player) |
function | UpdateAllKillstreakInventory () |
function | UpdateAreaNodes (areaNodes, forceMove) |
function | UpdateDrivableTimeForAllOccupants (duration_ms, end_time_ms) |
function | UpdateKillstreakInventory (player) |
function | UpdatePlayerState () |
function | vtol_shake () |
function | VTOLDestructibleCallback (brokenNotify, eAttacker, weapon) |
function | wait_for_bda_dialog (killstreakId) |
function | WaitForGameEndThread () |
function | WaitForVTOLShutdownThread () |
function | WatchLocationChangeThread (destNodes) |
function | WatchMissilesThread () |
function | WatchPlayerExitRequestThread (player) |
function | WatchPlayerTeamChangeThread (helicopter) |
function | WatchVisionSwitchThread () |
#define HELICOPTER_GUNNER_ASSISTANT_NAME "helicopter_gunner_assistant" |
Definition at line 49 of file _helicopter_gunner.gsc.
#define HELICOPTER_GUNNER_NAME "helicopter_gunner" |
Definition at line 47 of file _helicopter_gunner.gsc.
#define HELICOPTER_GUNNER_WEAPON_NAME "helicopter_player_gunner" |
Definition at line 48 of file _helicopter_gunner.gsc.
#define HELICOPTER_LEAVE_DELAY 2.0 |
Definition at line 53 of file _helicopter_gunner.gsc.
#define INVALID_ASSISTANT_SEAT_INDEX -1 |
Definition at line 52 of file _helicopter_gunner.gsc.
#define INVENTORY_HELICOPTER_GUNNER_ASSISTANT_NAME "inventory_helicopter_gunner_assistant" |
Definition at line 50 of file _helicopter_gunner.gsc.
#define REALLY_LONG_TIME_MS 9009009 |
Definition at line 55 of file _helicopter_gunner.gsc.
function ActivateMainGunner | ( | killstreakType | ) |
Definition at line 142 of file _helicopter_gunner.gsc.
References freeze_player_controls(), HELICOPTER_GUNNER_NAME, isKillstreakAllowed(), result(), and SpawnHeliGunner().
Referenced by init().
function ActivateSupportGunner | ( | killstreakType | ) |
Definition at line 167 of file _helicopter_gunner.gsc.
References EnterHelicopter(), freeze_player_controls(), and result().
Referenced by init().
function AllowMainTurretLockon | ( | ) |
Definition at line 777 of file _helicopter_gunner.gsc.
References add_to_target_group(), and spawn().
Referenced by VTOLDestructibleCallback().
function DeleteHelicopterCallback | ( | ) |
Definition at line 460 of file _helicopter_gunner.gsc.
Referenced by SpawnHeliGunner().
function EnemyIsLocking | ( | heli | ) |
Definition at line 1168 of file _helicopter_gunner.gsc.
Referenced by PlayLockOnSoundsThread().
function EnemyLockedOn | ( | heli | ) |
Definition at line 1173 of file _helicopter_gunner.gsc.
Referenced by PlayLockOnSoundsThread().
function EnterHelicopter | ( | isOwner | ) |
Definition at line 530 of file _helicopter_gunner.gsc.
References activate(), clear_using_remote(), GetFirstAvailableSeat(), HELICOPTER_GUNNER_ASSISTANT_SEAT_START_INDEX, HELICOPTER_GUNNER_DURATION, HELICOPTER_GUNNER_HIDE_COMPASS_ON_REMOTE_CONTROL, HELICOPTER_GUNNER_NAME, HideCompassAfterWait(), init_ride_killstreak(), INVALID_ASSISTANT_SEAT_INDEX, monitor_damage_as_occupant(), monitor_missiles_locked_on_to_me(), MOTHERSHIP_VISIONSET_ALIAS, play_pilot_dialog_on_owner(), REALLY_LONG_TIME_MS, result(), set(), set_to_player(), set_vehicle_drivable_time(), setUsingRemote(), sndUpdateVehicleContext(), spawn(), update_client_for_player(), UpdateAllKillstreakInventory(), VAL, WatchPlayerExitRequestThread(), WatchPlayerTeamChangeThread(), and WatchVisionSwitchThread().
Referenced by ActivateSupportGunner(), and SpawnHeliGunner().
function GetFirstAvailableSeat | ( | player | ) |
Definition at line 186 of file _helicopter_gunner.gsc.
References HELICOPTER_GUNNER_ASSISTANT_SEAT_COUNT, and INVALID_ASSISTANT_SEAT_INDEX.
Referenced by EnterHelicopter(), and UpdateKillstreakInventory().
function GetOriginOffsets | ( | goalNode | ) |
Definition at line 1459 of file _helicopter_gunner.gsc.
Referenced by TravelToNode().
function HackedPostFunction | ( | hacker | ) |
Definition at line 249 of file _helicopter_gunner.gsc.
References activate(), get_hacked_timeout_duration_ms(), HELICOPTER_GUNNER_NAME, hide_compass(), monitor_damage_as_occupant(), monitor_missiles_locked_on_to_me(), MOTHERSHIP_VISIONSET_ALIAS, set(), set_killstreak_delay_killcam(), set_to_player(), set_vehicle_drivable_time_starting_now(), VAL, WatchPlayerExitRequestThread(), WatchPlayerTeamChangeThread(), and WatchVisionSwitchThread().
Referenced by SpawnHeliGunner().
function HackedPreFunction | ( | hacker | ) |
Definition at line 224 of file _helicopter_gunner.gsc.
References clear_using_remote(), deactivate(), LeaveHelicopter(), MOTHERSHIP_VISIONSET_ALIAS, set(), set_to_player(), stop_monitor_damage_as_occupant(), stop_monitor_missiles_locked_on_to_me(), and unhide_compass().
Referenced by SpawnHeliGunner().
function helicopteDetonateViaEMP | ( | attacker | , |
weapon | |||
) |
Definition at line 1032 of file _helicopter_gunner.gsc.
References MainTurretDestroyed().
Referenced by SpawnHeliGunner().
function HelicopterGunner_hacked_health_callback | ( | ) |
Definition at line 382 of file _helicopter_gunner.gsc.
References get_hacked_health(), and HELICOPTER_GUNNER_NAME.
Referenced by SpawnHeliGunner().
function HelicopterGunnerDamageOverride | ( | eInflictor | , |
eAttacker | , | ||
iDamage | , | ||
iDFlags | , | ||
sMeansOfDeath | , | ||
weapon | , | ||
vPoint | , | ||
vDir | , | ||
sHitLoc | , | ||
vDamageOrigin | , | ||
psOffsetTime | , | ||
damageFromUnderneath | , | ||
modelIndex | , | ||
partName | , | ||
vSurfaceNormal | |||
) |
#iprintln( partName + " health:" + helicopter.health + " damage:" + iDamage );#/
Definition at line 898 of file _helicopter_gunner.gsc.
References HELICOPTER_GUNNER_ASSISTANT_SEAT_COUNT, HELICOPTER_GUNNER_HELICOPTER_MISSILES_TO_DESTROY, HELICOPTER_GUNNER_NAME, IsEnemyPlayer(), MainTurretDestroyed(), OnDamagePerWeapon(), PerformLeaveHelicopterFromDamage(), play_destroyed_dialog_on_owner(), processScoreEvent(), spawn(), SupportTurretDestroyed(), UpdateAllKillstreakInventory(), and vtol_shake().
Referenced by SpawnHeliGunner().
function HelicopterThinkThread | ( | startNode | , |
destNodes | |||
) |
Definition at line 1178 of file _helicopter_gunner.gsc.
References get_hacked_timeout_duration_ms(), HELICOPTER_GUNNER_ANGLE_OFFSET, HELICOPTER_GUNNER_DURATION, HELICOPTER_GUNNER_FORCED_WAIT, HELICOPTER_GUNNER_NAME, HELICOPTER_GUNNER_Z_OFFSET, OnTimeoutCallback(), TravelToNode(), UpdateAreaNodes(), UpdateDrivableTimeForAllOccupants(), and WaitForTimeout().
Referenced by SpawnHeliGunner().
function HideCompassAfterWait | ( | waittime | ) |
Definition at line 633 of file _helicopter_gunner.gsc.
References hide_compass().
Referenced by EnterHelicopter().
function init | ( | ) |
Definition at line 57 of file _helicopter_gunner.gsc.
References ActivateMainGunner(), ActivateSupportGunner(), HELICOPTER_GUNNER_ASSISTANT_NAME, HELICOPTER_GUNNER_NAME, HELICOPTER_GUNNER_WEAPON_NAME, MOTHERSHIP_VISIONSET_ALIAS, on_connect(), on_disconnect(), on_joined_spectate(), on_joined_team(), on_player_killed(), on_spawned(), OnPlayerConnect(), ramp_in_out_thread_per_player_death_shutdown(), register(), register_alt_weapon(), register_dialog(), register_info(), register_strings(), set_team_kill_penalty_scale(), UpdatePlayerState(), VERSION_SHIP, and WaitForGameEndThread().
function InitHelicopterSeat | ( | index | , |
destroyTag | |||
) |
Definition at line 202 of file _helicopter_gunner.gsc.
References add_to_target_group(), and spawn().
Referenced by SpawnHeliGunner().
function LeaveHelicopter | ( | player | , |
ownerLeft | |||
) |
Definition at line 800 of file _helicopter_gunner.gsc.
References clear_using_remote(), deactivate(), flush_killstreak_dialog_on_player(), freeze_player_controls(), heli_leave(), HELICOPTER_GUNNER_NAME, INVENTORY_HELICOPTER_GUNNER_ASSISTANT_NAME, MOTHERSHIP_VISIONSET_ALIAS, set(), set_to_player(), sndUpdateVehicleContext(), stop_monitor_damage_as_occupant(), stop_monitor_missiles_locked_on_to_me(), take(), unhide_compass(), and UpdateAllKillstreakInventory().
Referenced by HackedPreFunction(), OnTimeoutCallback(), PerformLeaveHelicopterFromDamage(), SupportTurretDestroyed(), WaitForGameEndThread(), WaitForVTOLShutdownThread(), WatchPlayerExitRequestThread(), and WatchPlayerTeamChangeThread().
function MainTurretDestroyed | ( | helicopter | , |
eAttacker | , | ||
weapon | |||
) |
Definition at line 643 of file _helicopter_gunner.gsc.
References addFlySwatterStat(), destroyedAircraft(), HELICOPTER_GUNNER_NAME, IsEnemyPlayer(), PerformLeaveHelicopterFromDamage(), play_destroyed_dialog_on_owner(), processScoreEvent(), and UpdateAllKillstreakInventory().
Referenced by helicopteDetonateViaEMP(), HelicopterGunnerDamageOverride(), and VTOLDestructibleCallback().
function MissileCleanupThread | ( | missile | ) |
Definition at line 1037 of file _helicopter_gunner.gsc.
References waittill_any().
Referenced by WatchMissilesThread().
function OnPlayerConnect | ( | ) |
Definition at line 96 of file _helicopter_gunner.gsc.
Referenced by init().
function OnTimeoutCallback | ( | ) |
Definition at line 466 of file _helicopter_gunner.gsc.
References HELICOPTER_GUNNER_ASSISTANT_SEAT_COUNT, HELICOPTER_GUNNER_NAME, LeaveHelicopter(), and play_pilot_dialog().
Referenced by HelicopterThinkThread().
function PerformLeaveHelicopterFromDamage | ( | ) |
Definition at line 1016 of file _helicopter_gunner.gsc.
References do_static_fx(), LeaveHelicopter(), and waittill_any_timeout().
Referenced by HelicopterGunnerDamageOverride(), and MainTurretDestroyed().
function PlayLockOnSoundsThread | ( | player | , |
heli | |||
) |
Definition at line 1128 of file _helicopter_gunner.gsc.
References EnemyIsLocking(), EnemyLockedOn(), and spawn().
Referenced by SpawnHeliGunner().
function SetPlayerMovedRecentlyThread | ( | ) |
Definition at line 1325 of file _helicopter_gunner.gsc.
Referenced by WatchLocationChangeThread().
function SpawnHeliGunner | ( | ) |
Definition at line 282 of file _helicopter_gunner.gsc.
References configure_team(), DeleteHelicopterCallback(), enable_hacking(), ENEMY_VEHICLE_ACTIVE, EnterHelicopter(), get_max_health(), HackedPostFunction(), HackedPreFunction(), heli_fly(), helicopteDetonateViaEMP(), HELICOPTER_GUNNER_ASSISTANT_0_TARGET_TAG, HELICOPTER_GUNNER_ASSISTANT_1_TARGET_TAG, HELICOPTER_GUNNER_HACKER_TOOL_DURATION, HELICOPTER_GUNNER_HACKER_TOOL_RADIUS, HELICOPTER_GUNNER_HELICOPTER_HEALTH, HELICOPTER_GUNNER_NAME, HELICOPTER_GUNNER_VEHICLE_NAME, HELICOPTER_GUNNER_WEAPON_NAME, HelicopterGunner_hacked_health_callback(), HelicopterGunnerDamageOverride(), HelicopterThinkThread(), init_target_group(), InitHelicopterSeat(), INVALID_KILLSTREAK_ID, IS_TRUE, IsOutOfBounds(), isUsingRemote(), killstreakStart(), MissileTarget_ProximityDetonateIncomingMissile(), play_killstreak_start_dialog(), play_pilot_dialog_on_owner(), PlayLockOnSoundsThread(), result(), set(), VTOLDestructibleCallback(), wait_for_bda_dialog(), wait_for_killed(), WaitForVTOLShutdownThread(), WatchLocationChangeThread(), and WatchMissilesThread().
Referenced by ActivateMainGunner().
function SupportTurretDestroyed | ( | helicopter | , |
seatIndex | |||
) |
Definition at line 688 of file _helicopter_gunner.gsc.
References flush_killstreak_dialog_on_player(), HELICOPTER_LEAVE_DELAY, LeaveHelicopter(), play_pilot_dialog(), play_pilot_dialog_on_owner(), remove_from_target_group(), set(), and update_client_for_driver_and_occupants().
Referenced by HelicopterGunnerDamageOverride(), and VTOLDestructibleCallback().
function TravelToNode | ( | goalNode | ) |
Definition at line 1414 of file _helicopter_gunner.gsc.
References GetOriginOffsets(), and HELICOPTER_GUNNER_ANGLE_OFFSET.
Referenced by HelicopterThinkThread(), and WatchLocationChangeThread().
function update_client_for_driver_and_occupants | ( | ) |
Definition at line 728 of file _helicopter_gunner.gsc.
References update_client_for_player().
Referenced by SupportTurretDestroyed().
function update_client_for_player | ( | player | ) |
Definition at line 740 of file _helicopter_gunner.gsc.
References increment_to_player().
Referenced by EnterHelicopter(), and update_client_for_driver_and_occupants().
function UpdateAllKillstreakInventory | ( | ) |
Definition at line 110 of file _helicopter_gunner.gsc.
References UpdateKillstreakInventory().
Referenced by EnterHelicopter(), HelicopterGunnerDamageOverride(), LeaveHelicopter(), MainTurretDestroyed(), and UpdatePlayerState().
function UpdateAreaNodes | ( | areaNodes | , |
forceMove | |||
) |
Definition at line 1348 of file _helicopter_gunner.gsc.
Referenced by HelicopterThinkThread(), and WatchLocationChangeThread().
function UpdateDrivableTimeForAllOccupants | ( | duration_ms | , |
end_time_ms | |||
) |
Definition at line 1252 of file _helicopter_gunner.gsc.
References HELICOPTER_GUNNER_ASSISTANT_SEAT_COUNT, and set_vehicle_drivable_time().
Referenced by HelicopterThinkThread().
function UpdateKillstreakInventory | ( | player | ) |
Definition at line 119 of file _helicopter_gunner.gsc.
References GetFirstAvailableSeat(), give(), has_killstreak(), HELICOPTER_GUNNER_HELICOPTER_MISSILES_TO_DESTROY, INVALID_ASSISTANT_SEAT_INDEX, INVENTORY_HELICOPTER_GUNNER_ASSISTANT_NAME, and take().
Referenced by UpdateAllKillstreakInventory().
function UpdatePlayerState | ( | ) |
Definition at line 104 of file _helicopter_gunner.gsc.
References UpdateAllKillstreakInventory().
Referenced by init().
function vtol_shake | ( | ) |
Definition at line 883 of file _helicopter_gunner.gsc.
Referenced by HelicopterGunnerDamageOverride().
function VTOLDestructibleCallback | ( | brokenNotify | , |
eAttacker | , | ||
weapon | |||
) |
Definition at line 748 of file _helicopter_gunner.gsc.
References AllowMainTurretLockon(), HELICOPTER_GUNNER_ASSISTANT_SEAT_COUNT, MainTurretDestroyed(), and SupportTurretDestroyed().
Referenced by SpawnHeliGunner().
function wait_for_bda_dialog | ( | killstreakId | ) |
Definition at line 670 of file _helicopter_gunner.gsc.
References HELICOPTER_GUNNER_ASSISTANT_SEAT_COUNT, HELICOPTER_GUNNER_NAME, and play_pilot_dialog().
Referenced by SpawnHeliGunner().
function WaitForGameEndThread | ( | ) |
Definition at line 416 of file _helicopter_gunner.gsc.
References LeaveHelicopter().
Referenced by init().
function WaitForVTOLShutdownThread | ( | ) |
Definition at line 423 of file _helicopter_gunner.gsc.
References HELICOPTER_GUNNER_ASSISTANT_SEAT_COUNT, HELICOPTER_GUNNER_NAME, killstreakStop(), and LeaveHelicopter().
Referenced by SpawnHeliGunner().
function WatchLocationChangeThread | ( | destNodes | ) |
Definition at line 1268 of file _helicopter_gunner.gsc.
References HELICOPTER_GUNNER_ANGLE_OFFSET, HELICOPTER_GUNNER_Z_OFFSET, SetPlayerMovedRecentlyThread(), TravelToNode(), UpdateAreaNodes(), and WAIT_SERVER_FRAME.
Referenced by SpawnHeliGunner().
function WatchMissilesThread | ( | ) |
Definition at line 1049 of file _helicopter_gunner.gsc.
References MissileCleanupThread(), Spawn(), and trace().
Referenced by SpawnHeliGunner().
function WatchPlayerExitRequestThread | ( | player | ) |
Definition at line 499 of file _helicopter_gunner.gsc.
References HELICOPTER_GUNNER_NAME, LeaveHelicopter(), play_pilot_dialog_on_owner(), and WAIT_SERVER_FRAME.
Referenced by EnterHelicopter(), and HackedPostFunction().
function WatchPlayerTeamChangeThread | ( | helicopter | ) |
Definition at line 479 of file _helicopter_gunner.gsc.
References LeaveHelicopter(), and waittill_any().
Referenced by EnterHelicopter(), and HackedPostFunction().
function WatchVisionSwitchThread | ( | ) |
Definition at line 1092 of file _helicopter_gunner.gsc.
References set_to_player(), and WAIT_SERVER_FRAME.
Referenced by EnterHelicopter(), and HackedPostFunction().