|
Wing Commander II
Reconstructed Win32 source (1996)
|
Space objects: creation, weapons, movement and damage. More...
#include "game.h"Go to the source code of this file.
Macros | |
| #define | SHIP_C |
Functions | |
| short | CountShipProjectiles (short ship) |
| short | ShipHasCloakingDevice (short ship) |
| short | CanShipWeaponDamageTarget (short ship, short target) |
| short | IsCapitalShipObject (short obj) |
| short | HasShipCockpitGunDisplay (short ship) |
| short | ShipHasTorpedo (short ship) |
| short | GetAdaptiveTurnRate (void) |
| void | IncreaseAdaptiveDifficulty (void) |
| void | DecreaseAdaptiveDifficulty (void) |
| short | initialize_object (short obj, short type, short owner, short matchLoadedType) |
| short | borrow_dust (void) |
| short | new_object (short type, short owner) |
| short | initialize_ship (short type, short owner, short matchLoadedType) |
| short | any_selected (unsigned char *loadout, short objectClass) |
| void | remove_weapon (short obj, short weapon) |
| void | InitializeShipWeaponTypeIndices (short obj) |
| void | set_objects_data (short obj, short type, short owner, short matchResourceType) |
| unsigned int | match_rotation_goal (short *rotation, short *goal, short totalError, short rate) |
| void | rotate_object_to_goal (short obj) |
| void | check_for_lost_control (short obj) |
| void | celerate (short ship, int delta) |
| unsigned int | approach_speed (short ship, int targetSpeed) |
| void | steady_object (short ship) |
| short | real_velocity (short obj) |
| unsigned int | fix_velocity (short obj) |
| void | SortViableTargetsByDistance (void) |
| void | send_appropriate_message (short attacker, short victim) |
| short | inflict_damage (short attacker, short victim, short damage, const FixedVector *impactDirection) |
| short | pilot_hit (short obj) |
| short | onboard_explosion (short obj) |
| void | call_enemy (short obj) |
| short | RandomBelow (short n) |
| short | internal_damage (short attacker, short owner, short victim, short damage, short quadrant) |
| void | revise_shields (short obj) |
| void | check_computer_damage (void) |
| short | IsOnlyShipGun (short ship, short weapon) |
| short | your_internal_damage (short attacker, short owner, short damage, short quadrant) |
| short | ReportComponentRepaired (short component, short minimumDamage) |
| void | repair_internal_damage (void) |
| void | AddFixedVectors (const FixedVector *left, const FixedVector *right, FixedVector *sum) |
| void | Create_ship_hit_debris (short obj, short count) |
| void | check_next_wave (void) |
| void | ProcessEnemyWaveCompletion (void) |
| void | Create_explosion_debris (short obj) |
| void | affect_mission_score (short pilot, int event, short amount) |
| void | score_for_kill (short pilot, short victim) |
| void | analyze_kill (short attacker, short victim) |
| void | explosion_shock_wave (short obj, short blastDamage) |
| short | ShipExplosion (short obj) |
| short | Explosion (short obj) |
| short | explode (short attacker, short victim) |
| short | ResolveObjectDestruction (short attacker, short victim) |
| short | SpawnFlakBurst (short obj, short range, FixedVector *hardpoint, short burstMode) |
| void | fire_flack (short owner, short explosion, short range, FixedVector *aim, short burstMode) |
| short | hemisphere (FixedVector *target, FixedVector *parent, FixedVector *hardpoint) |
| int | send_at_point (short obj, FixedVector *point, short speed) |
| short | find_child_object (short parent, short objectClass) |
| short | find_child_ship (short parent, short objectClass, short target) |
| int | launch_object (short parent, short child, FixedVector direction, short speed) |
| void | fire (short obj, short target) |
| short | RandomSign (short v) |
| int | RandomFixedAimComponent (short radius, short speed, short maximum) |
| short | HasShipActiveMissile (short obj) |
| short | fire_turrets (short obj) |
| void | ScaleFixedVector (FixedVector *vector, int scale, FixedVector *result) |
| void | copy_frame (short source, short destination) |
| short | fire_weapon (short obj, short weapon) |
| short | find_weapon (short obj, short weaponType) |
| short | fire_missile (short ship) |
| void | fire_fixed_projectile_weapon (short obj) |
| void | fire_afterburner (short obj, short time) |
| void | fire_super_brake (short ship) |
| short | flip_angle (short ship, short angle) |
| void | place_exhaust_on_ships (void) |
| void | reposition_fixed_child_objects (void) |
| void | housekeep_power_plant_and_fuel (short ship) |
| void | replenish_shields (short ship) |
| void | replenish_weapon_energy_bank (short ship) |
| void | accelerate (short amount) |
| void | your_afterburner (void) |
Variables | |
| short | g_bAiMissileFiringEnabled = 1 |
| short | g_bFriendlyFireWarningIssued = 0 |
| short | g_nLastAdaptiveDifficultyChangeFrame = 0 |
| short | g_nObjectType62Index = -1 |
| short | g_nObjectType63Index = -1 |
| short | g_nLastFriendlyFireObjectFrame = 0x0ee4 |
| short | g_aasPlayerDamageSystemTable [5][10] |
| static short | g_aaeExplosionDebris [4][7] |
| short | g_aeShipHitDebrisTypes [4] |
| short | g_bExplosionTraversalIdle = 1 |
| signed char | g_acGunRefireDelay [4] = {5, 9, 3, 4} |
| int | g_6_nPendingAfterburnerSfxFrame |
| short | g_asWingmanDamageCredit [10] |
| short | g_nAdaptiveDifficulty |
| short | g_7_asShipBurstStageCountdown [10] |
| int | g_3_bAfterburnerSfxActive |
| signed char | g_10_abExplosionEntityDoneBytes [SPACE_OBJECT_COUNT] |
| short | g_asPlayerHitsCreditValues [10] |
| short | g_asMissileProximityFuseValues [16] |
| short | g_1_asObjectCreationFrameTable [SPACE_OBJECT_COUNT] |
Space objects: creation, weapons, movement and damage.
Definition in file ship.c.
| void accelerate | ( | short | amount | ) |
Definition at line 3017 of file ship.c.
References accelerate(), celerate(), g_nSpaceFrame, malf(), and PlaySfxWaveFileByNumber().
Referenced by accelerate(), DrawTextAt(), HandleSpaceFlightControls(), and player_input().
| void AddFixedVectors | ( | const FixedVector * | left, |
| const FixedVector * | right, | ||
| FixedVector * | sum ) |
| void affect_mission_score | ( | short | pilot, |
| int | event, | ||
| short | amount ) |
Definition at line 1621 of file ship.c.
References affect_mission_score(), g_stCurrentPilotProfile, and PilotProfile::missionScore.
Referenced by affect_mission_score(), cleanup_objectives(), DrawTextAt(), and score_for_kill().
| void analyze_kill | ( | short | attacker, |
| short | victim ) |
Definition at line 1705 of file ship.c.
References analyze_kill(), g_13_stMissionHeaderBlock, g_36_cPilotKillCountValue, g_4_acInitialShipKillNumber, g_asShipMissionIndex, g_asShipSide, new_space_music_changes(), and score_for_kill().
Referenced by analyze_kill(), DrawTextAt(), and ResolveObjectDestruction().
| short any_selected | ( | unsigned char * | loadout, |
| short | objectClass ) |
Definition at line 264 of file ship.c.
References any_selected(), and g_aObjectTypeData.
Referenced by any_selected(), DrawTextAt(), and remove_weapon().
| unsigned int approach_speed | ( | short | ship, |
| int | targetSpeed ) |
Definition at line 682 of file ship.c.
References alert_flag(), approach_speed(), celerate(), g_anShipSpeed, GetShipAccelerationRate(), MultiplyFixed(), and SignFixed().
Referenced by approach_cruise_speed(), approach_full_speed(), approach_half_speed(), approach_min_speed(), approach_ship_speed(), approach_speed(), approach_zero_speed(), capital_ship_strike_mission(), chase_location(), chase_speed(), control_speed(), DrawTextAt(), and Msit_n_spin().
| short borrow_dust | ( | void | ) |
Definition at line 190 of file ship.c.
References borrow_dust(), g_acObjectOwner, g_aeObjectClass, g_asObjectScreenX, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_DEBRIS, OBJECT_CLASS_DUST, OBJECT_CLASS_MINE, and OBJECT_CLASS_PROJECTILE.
Referenced by borrow_dust(), DrawTextAt(), and new_object().
| void call_enemy | ( | short | obj | ) |
Definition at line 1056 of file ship.c.
References call_enemy(), g_acShipTarget, g_aeObjectClass, g_aeSpecialManeuver, g_asShipSide, OBJECT_CLASS_SHIP, RandomBelow(), and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by call_enemy(), DrawTextAt(), and internal_damage().
| short CanShipWeaponDamageTarget | ( | short | ship, |
| short | target ) |
Definition at line 87 of file ship.c.
References CanShipWeaponDamageTarget(), g_aasShipShield, g_aeObjectClass, and OBJECT_CLASS_SHIP.
Referenced by CanShipWeaponDamageTarget(), DrawTextAt(), fire(), inflict_damage(), request(), target_locking(), and target_valid().
| void celerate | ( | short | ship, |
| int | delta ) |
Definition at line 668 of file ship.c.
References celerate(), g_anShipSpeed, and g_asShipMaximumVelocity.
Referenced by accelerate(), approach_speed(), celerate(), control_speed(), DrawTextAt(), and recalc_max_velocity().
Definition at line 1239 of file ship.c.
References check_computer_damage(), and damage_your_component().
Referenced by check_computer_damage(), DrawTextAt(), and your_internal_damage().
| void check_for_lost_control | ( | short | obj | ) |
Definition at line 629 of file ship.c.
References check_for_lost_control(), g_acObjectType, g_aeObjectClass, g_aeSpecialManeuver, g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_aObjectTypeData, g_asObjectCounter, g_asShipSide, GetAdaptiveTurnRate(), MaxShort(), MinShort(), OBJECT_CLASS_SHIP, RandomBelowOrEqual(), set_special(), skill_check(), SPECIAL_MANEUVER_BLOWING_UP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by apply_force_to_object(), check_for_lost_control(), DrawTextAt(), and rotational_acceleration().
Definition at line 1491 of file ship.c.
References check_next_wave(), flag_objective(), g_aeObjectClass, g_aMissionObjectives, g_asShipSide, g_cMissionObjectiveCount, g_nCurrentNavPoint, g_nEscapedEnemyCount, MissionObjective::index, OBJECT_CLASS_SHIP, SIDE_KILRATHI, and MissionObjective::type.
Referenced by check_next_wave(), DrawTextAt(), and ProcessEnemyWaveCompletion().
| short CountShipProjectiles | ( | short | ship | ) |
Definition at line 57 of file ship.c.
References CountShipProjectiles(), g_acObjectOwner, g_aeObjectClass, OBJECT_CLASS_PROJECTILE, and SPACE_OBJECT_COUNT.
Referenced by CountShipProjectiles(), DrawTextAt(), and fire().
| void Create_explosion_debris | ( | short | obj | ) |
Definition at line 1557 of file ship.c.
References AddFixedVectors(), Create_explosion_debris(), divide_vector(), ObjectResourceSlot::field_12, FillFixedVectorWithRandomComponents(), find_vacant_3d_object(), g_aaeExplosionDebris, g_acObjectType, g_aeObjectClass, g_aObjectResourceSlots, g_aObjectTypeData, g_apObjectShape, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, g_asObjectScreenAngle, g_asObjectType, OBJECT_CLASS_DUST, OBJECT_DATA_DEBRIS_DUST, OBJECT_DATA_SHIP_WING, ProcessEnemyWaveCompletion(), RandomBelowOrEqual(), RecordCannedSceneObjectEvent(), remove_object(), and set_objects_data().
Referenced by Create_explosion_debris(), DrawTextAt(), and house_keep_objects().
| void Create_ship_hit_debris | ( | short | obj, |
| short | count ) |
Definition at line 1467 of file ship.c.
References AddFixedVectors(), Create_ship_hit_debris(), FillFixedVectorWithRandomComponents(), find_vacant_3d_object(), g_aeShipHitDebrisTypes, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, RandomBelowOrEqual(), RecordCannedSceneObjectEvent(), and set_objects_data().
Referenced by Create_ship_hit_debris(), DrawTextAt(), and inflict_damage().
Definition at line 165 of file ship.c.
References DecreaseAdaptiveDifficulty(), g_nAdaptiveDifficulty, g_nLastAdaptiveDifficultyChangeFrame, and g_nSpaceFrame.
Referenced by DecreaseAdaptiveDifficulty(), DrawTextAt(), inflict_damage(), and your_internal_damage().
| short explode | ( | short | attacker, |
| short | victim ) |
Definition at line 1915 of file ship.c.
References explode(), g_10_abExplosionEntityDoneBytes, g_anShipCloakState, g_bExplosionTraversalIdle, ResolveObjectDestruction(), and SPACE_OBJECT_COUNT.
Referenced by abandoned(), chaff_intelligence(), DrawTextAt(), explode(), fire_weapon(), HandleSpaceFlightControls(), heat_seeking_missile_intelligence(), hit_asteroid(), house_keep_objects(), inflict_damage(), internal_damage(), mine_intelligence(), object_collision(), set_up_action_sphere(), and your_internal_damage().
| short Explosion | ( | short | obj | ) |
Definition at line 1826 of file ship.c.
References Explosion(), explosion_shock_wave(), find_ship_index(), g_13_stMissionHeaderBlock, g_7_asShipBurstStageCountdown, g_9_nScreenMessageTimeNumber, g_acMissionShipStatusFlagsBytes, g_acObjectOwner, g_acObjectType, g_aeObjectClass, g_aMissionShips, g_aObjectTypeData, g_asObjectCounter, g_asObjectScale, g_asObjectScreenX, g_asObjectType, g_asPilotLevel, g_asShipMissionIndex, g_asShipMissionParameter, g_asShipSide, g_nYourWingman, MissionHeader::initialMissionShips, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, OBJECT_DATA_EXPLOSION_LARGE, OBJECT_DATA_EXPLOSION_SMALL, OBJECT_DATA_TORPEDO, onboard_explosion(), PlaySfxWaveFileByNumber(), RandomBelow(), RecordCannedSceneObjectEvent(), send_message(), set_objects_data(), set_special(), ShipExplosion(), SPECIAL_MANEUVER_UNKNOWN_9, and MissionShipRecord::state.
Referenced by death_sequence(), DrawTextAt(), Explosion(), and ResolveObjectDestruction().
| void explosion_shock_wave | ( | short | obj, |
| short | blastDamage ) |
Definition at line 1729 of file ship.c.
References apply_force_to_objects_center(), ComputeVectorDelta(), explosion_shock_wave(), find_ratio(), FixedToShortSaturating(), g_aeObjectClass, g_aShipPosition, g_asMissileProximityFuseValues, g_asObjectCollisionRadius, g_asObjectType, g_asShipTactic, inflict_damage(), MaxShort(), MinShort(), NormalizeFixedVector(), OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_DATA_TORPEDO, ScaleFixedVector(), and Vector_magnitude().
Referenced by BeginShipDestructionSequence(), DrawTextAt(), Explosion(), explosion_shock_wave(), house_keep_objects(), and SpawnFlakBurst().
| short find_child_object | ( | short | parent, |
| short | objectClass ) |
Definition at line 2017 of file ship.c.
References find_child_object(), g_acObjectOwner, g_aeObjectClass, and SPACE_OBJECT_COUNT.
Referenced by DrawTextAt(), and find_child_object().
| short find_child_ship | ( | short | parent, |
| short | objectClass, | ||
| short | target ) |
Definition at line 2030 of file ship.c.
References find_child_ship(), g_acObjectOwner, g_acShipTarget, and g_aeObjectClass.
Referenced by DrawTextAt(), find_child_ship(), and fire().
| short find_weapon | ( | short | obj, |
| short | weaponType ) |
Definition at line 2666 of file ship.c.
References find_weapon(), and g_aShipWeapons.
Referenced by DrawTextAt(), find_weapon(), and perform_maneuver().
| void fire | ( | short | obj, |
| short | target ) |
Definition at line 2059 of file ship.c.
References CanShipWeaponDamageTarget(), ComputeVectorDelta(), CountShipProjectiles(), find_child_ship(), fire(), fire_weapon(), g_aeObjectClass, g_anShipCloakState, g_aObjectTypeData, g_aShipPosition, g_aShipWeapons, g_asObjectCounter, g_asShipFriendlyFireCooldown, g_asShipSide, g_bAiMissileFiringEnabled, g_nAdaptiveDifficulty, g_nFacingToTarget, g_nTargetFacing, g_nTargetRange, g_nYourWingman, get_facing_range_from_object(), IsCapitalShipObject(), launch_object(), ObjectTypeData::lifetime, ObjectTypeData::maximumVelocity, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, ObjectTypeData::objectClass, RandomBelowOrEqual(), RandomInRange(), real_velocity(), ResetShipCloakState(), and SIDE_KILRATHI.
Referenced by DrawTextAt(), fire(), Mkill_missile(), Msit_n_fire(), Msit_n_spin(), Mstrafe_enemy(), Mtail_fire(), process_maneuver_node(), and tanker_intelligence().
| void fire_afterburner | ( | short | obj, |
| short | time ) |
Definition at line 2733 of file ship.c.
References fire_afterburner(), g_aeSpecialManeuver, g_aShipVelocity, g_asObjectType, g_asShipAfterburnerTimer, get_ship_max_velocity(), set_special(), SPECIAL_MANEUVER_AFTERBURNER, and Vector_magnitude().
Referenced by chase_speed(), cruise_home(), DrawTextAt(), fire_afterburner(), general_zig(), goto_formation(), imperial_formation(), Mburnout(), Mbuzz_debris(), Mfish_hook(), Mget_distance(), Mkickit(), Msplit_left(), Msplit_right(), Mstrafe_enemy(), Msuicide_run(), Mtarget_missile(), Mtry2tail(), Mturn_n_kick(), Mveer_away(), Mwabble(), Mzip_past(), prepare_for_jump(), prevent_collision(), process_maneuver_node(), run_away(), ShipAiState45(), ShipAiState46(), streak_toward(), and your_afterburner().
| void fire_fixed_projectile_weapon | ( | short | obj | ) |
Definition at line 2714 of file ship.c.
References ShipWeaponSlot::disabled, fire_fixed_projectile_weapon(), fire_weapon(), g_aObjectTypeData, g_aShipWeapons, OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, ShipWeaponSlot::type, and ShipWeaponSlot::weaponType.
Referenced by DrawTextAt(), fire_fixed_projectile_weapon(), and fire_players_lasers().
| void fire_flack | ( | short | owner, |
| short | explosion, | ||
| short | range, | ||
| FixedVector * | aim, | ||
| short | burstMode ) |
Definition at line 2234 of file ship.c.
References fire_flack(), g_aObjectTypeData, g_asObjectCounter, ObjectTypeData::maximumVelocity, MaxShort(), MinShort(), RandomBelowOrEqual(), RecordCannedSceneObjectEvent(), send_at_point(), and set_objects_data().
Referenced by DrawTextAt(), fire_flack(), and SpawnFlakBurst().
| short fire_missile | ( | short | ship | ) |
Definition at line 2681 of file ship.c.
References ShipWeaponSlot::disabled, fire_missile(), fire_weapon(), g_acShipTarget, g_aObjectTypeData, g_aShipWeapons, g_cYellowColour, g_nTargetLockCountdown, get_mode(), IsCapitalShipObject(), OBJECT_CLASS_MISSILE, ObjectTypeData::objectClass, ShowComponentHitHudMessage(), ShipWeaponSlot::type, and ShipWeaponSlot::weaponType.
Referenced by DrawTextAt(), fire_missile(), HandleSpaceFlightControls(), and Mram_missile().
| void fire_super_brake | ( | short | ship | ) |
Definition at line 2750 of file ship.c.
References fire_super_brake(), g_asShipAfterburnerTimer, set_special(), and SPECIAL_MANEUVER_SUPER_BRAKE.
Referenced by DrawTextAt(), fire_super_brake(), Mfish_hook(), and Mhard_break().
| short fire_turrets | ( | short | obj | ) |
Definition at line 2352 of file ship.c.
References build_target_list(), distance_from_object(), fire_turrets(), fire_weapon(), g_acShipList, g_acShipTarget, g_aeObjectClass, g_aShipPosition, g_aShipWeapons, g_asMissileProximityFuseValues, g_asObjectCounter, g_asObjectType, g_asShipListRange, g_asShipSide, GetAdaptiveTurnRate(), HasShipActiveMissile(), hemisphere(), IsCapitalShipObject(), OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, position_child(), RandomBelowOrEqual(), RandomInRange(), SIDE_IMPERIAL, SIDE_KILRATHI, SpawnFlakBurst(), and ShipWeaponSlot::type.
Referenced by capital_ship_intelligence(), capital_ship_strike_mission(), cruise_to_destination(), destroyer_intelligence(), DrawTextAt(), fire_turrets(), and stationary_intelligence().
| short fire_weapon | ( | short | obj, |
| short | weapon ) |
Definition at line 2465 of file ship.c.
References AddFixedVectors(), ObjectTypeData::animationDelay, child_object(), ComputeVectorDelta(), copy_frame(), ObjectTypeData::damageCapacity, distance_from_object(), explode(), fire_weapon(), g_abShipEjectionSequenceEnabled, g_acGunRefireDelay, g_acObjectCollisionGraceTicks, g_acObjectOwner, g_acObjectType, g_acShipTarget, g_aeObjectClass, g_aeSpecialManeuver, g_anShipSpeed, g_aObjectTypeData, g_aShipForwardVector, g_aShipPosition, g_aShipUpVector, g_aShipVelocity, g_aShipWeapons, g_asMissileProximityFuseValues, g_asObjectCounter, g_asObjectDamage, g_asObjectType, g_asPilotLevel, g_asShipManeuver, g_asShipTactic, g_asShipWeaponEnergy, g_bMissileLockAcquired, g_bTargetLockActive, g_nAdaptiveDifficulty, g_nCurrentView, g_nSavedPlayerTarget, g_nYourWingman, get_ship_max_velocity(), get_ship_slot(), initialize_ship(), ObjectTypeData::lifetime, ObjectTypeData::maximumVelocity, new_object(), OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, PlaySfxWaveFileByNumber(), point_at(), RandomInRange(), RecordCannedSceneObjectEvent(), remove_weapon(), RemovePlayerReleaseWeapon(), ScaleFixedVector(), steady_object(), SubtractFixedVectors(), vector_component_in_dir(), and Vector_magnitude().
Referenced by DrawTextAt(), fire(), fire_fixed_projectile_weapon(), fire_missile(), fire_turrets(), fire_weapon(), and perform_maneuver().
| unsigned int fix_velocity | ( | short | obj | ) |
Definition at line 712 of file ship.c.
References fix_velocity(), g_anShipSpeed, g_aShipForwardVector, g_aShipVelocity, and ScaleFixedVector().
Referenced by arrive_from_warp(), DrawTextAt(), fix_velocity(), and set_speed().
| short flip_angle | ( | short | ship, |
| short | angle ) |
Definition at line 2757 of file ship.c.
References flip_angle(), g_asObjectFlip, and g_asObjectScreenAngle.
Referenced by DrawTextAt(), flip_angle(), and place_exhaust_on_ships().
| short GetAdaptiveTurnRate | ( | void | ) |
Definition at line 137 of file ship.c.
References g_asDifficultyLevels, g_nAdaptiveDifficulty, g_nCurrentLevel, g_nCurSeries, and GetAdaptiveTurnRate().
Referenced by CanSetNewShipTurnGoal(), check_for_lost_control(), DrawTextAt(), fire_turrets(), get_ship_max_velocity(), GetAdaptiveTurnRate(), GetShipAccelerationRate(), intelligence_events(), object_collision(), process_maneuver_node(), regulate_turn(), and rotate_object_to_goal().
| short HasShipActiveMissile | ( | short | obj | ) |
Definition at line 2339 of file ship.c.
References g_acObjectOwner, g_aeObjectClass, HasShipActiveMissile(), and OBJECT_CLASS_MISSILE.
Referenced by DrawTextAt(), fire_turrets(), and HasShipActiveMissile().
| short HasShipCockpitGunDisplay | ( | short | ship | ) |
Definition at line 106 of file ship.c.
References g_aShipWeapons, and HasShipCockpitGunDisplay().
Referenced by ApplyAlternateShipType(), DrawTextAt(), HasShipCockpitGunDisplay(), InitializeCockpitResources(), new_view(), replenish_weapon_energy_bank(), and set_objects_data().
| short hemisphere | ( | FixedVector * | target, |
| FixedVector * | parent, | ||
| FixedVector * | hardpoint ) |
Definition at line 2222 of file ship.c.
References ComputeVectorDelta(), hemisphere(), and vector_angle().
Referenced by DrawTextAt(), fire_turrets(), and hemisphere().
| void housekeep_power_plant_and_fuel | ( | short | ship | ) |
Definition at line 2939 of file ship.c.
References drain_fuel(), g_anShipSpeed, and housekeep_power_plant_and_fuel().
Referenced by DrawTextAt(), housekeep_power_plant_and_fuel(), and update_objects_in_space().
Definition at line 152 of file ship.c.
References g_nAdaptiveDifficulty, g_nLastAdaptiveDifficultyChangeFrame, g_nSpaceFrame, and IncreaseAdaptiveDifficulty().
Referenced by DrawTextAt(), IncreaseAdaptiveDifficulty(), inflict_damage(), and internal_damage().
| short inflict_damage | ( | short | attacker, |
| short | victim, | ||
| short | damage, | ||
| const FixedVector * | impactDirection ) |
Definition at line 804 of file ship.c.
References CanShipWeaponDamageTarget(), Create_ship_hit_debris(), DecreaseAdaptiveDifficulty(), dot_product(), explode(), g_1_asObjectCreationFrameTable, g_aasShipArmor, g_aasShipShield, g_acObjectOwner, g_acObjectType, g_acShipTarget, g_aeObjectClass, g_aeShipObjective, g_aeSpecialManeuver, g_anShipCloakState, g_aObjectTypeData, g_aShipForwardVector, g_aShipRightVector, g_asObjectDamage, g_asObjectScreenX, g_asObjectType, g_asPlayerHitsCreditValues, g_asShipFriendlyFireCooldown, g_asShipMissionIndex, g_asShipMissionParameter, g_asShipMissionType, g_asShipSide, g_asShipTactic, g_asWingmanDamageCredit, g_bApplyingCollisionDamage, g_bFriendlyFireWarningIssued, g_bPlayerDamageEnabled, g_nLastFriendlyFireObjectFrame, g_nYourWingman, IncreaseAdaptiveDifficulty(), inflict_damage(), internal_damage(), kilrathi_near(), MISSION_TYPE_NONE, MISSION_TYPE_STRIKE, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, OBJECTIVE_DESTROY_SHIP, PlaySfxWaveFileByNumber(), RandomBelowOrEqual(), send_appropriate_message(), send_message(), SIDE_IMPERIAL, SIDE_KILRATHI, SPECIAL_MANEUVER_UNKNOWN_9, TACTIC_SELF_DEFENSE, and TriggerPlayerHitPaletteFlash().
Referenced by DrawTextAt(), explosion_shock_wave(), inflict_damage(), and object_collision().
| short initialize_object | ( | short | obj, |
| short | type, | ||
| short | owner, | ||
| short | matchLoadedType ) |
Definition at line 178 of file ship.c.
References g_aShipPosition, g_aShipVelocity, initialize_object(), set_objects_data(), and zero_vector().
Referenced by DrawTextAt(), initialize_object(), initialize_ship(), and new_object().
| short initialize_ship | ( | short | type, |
| short | owner, | ||
| short | matchLoadedType ) |
Definition at line 251 of file ship.c.
References g_asShipSide, get_ship_slot(), initialize_object(), initialize_ship(), and SIDE_NEUTRAL.
Referenced by DrawTextAt(), fire_weapon(), init_ship(), initialize_ship(), and launch_carrier_fighter().
| void InitializeShipWeaponTypeIndices | ( | short | obj | ) |
Definition at line 328 of file ship.c.
References g_acObjectType, g_aObjectTypeData, g_aShipWeapons, InitializeShipWeaponTypeIndices(), and ObjectTypeData::weaponLoadout.
Referenced by ApplyAlternateShipType(), DrawTextAt(), InitializeShipWeaponTypeIndices(), and set_objects_data().
| short internal_damage | ( | short | attacker, |
| short | owner, | ||
| short | victim, | ||
| short | damage, | ||
| short | quadrant ) |
Definition at line 1077 of file ship.c.
References any_enemy(), call_enemy(), damage_ion_drive(), ObjectTypeData::damageCapacity, drain_fuel(), explode(), g_aasShipMaximumShield, g_aasShipShield, g_acObjectType, g_acShipCommunicator, g_acShipComputerDamage, g_acShipDamage, g_acShipPortrait, g_aeObjectClass, g_anShipFuel, g_aObjectTypeData, g_asCapitalHitDamageStepTable, g_aShipWeapons, g_asObjectDamage, g_asObjectType, g_asPilotLevel, g_asShipSide, IncreaseAdaptiveDifficulty(), internal_damage(), MaxShort(), MinShort(), OBJECT_CLASS_CAPITAL_SHIP, onboard_explosion(), pilot_hit(), RandomBelowOrEqual(), RandomInRange(), remove_weapon(), send_message(), SIDE_KILRATHI, and your_internal_damage().
Referenced by DrawTextAt(), inflict_damage(), and internal_damage().
| short IsCapitalShipObject | ( | short | obj | ) |
Definition at line 98 of file ship.c.
References g_aeObjectClass, IsCapitalShipObject(), and OBJECT_CLASS_CAPITAL_SHIP.
Referenced by DrawTextAt(), fire(), fire_missile(), fire_turrets(), IsCapitalShipObject(), and target_locking().
| short IsOnlyShipGun | ( | short | ship, |
| short | weapon ) |
Definition at line 1245 of file ship.c.
References g_aObjectTypeData, g_aShipWeapons, IsOnlyShipGun(), and OBJECT_CLASS_PROJECTILE.
Referenced by DrawTextAt(), IsOnlyShipGun(), and your_internal_damage().
| int launch_object | ( | short | parent, |
| short | child, | ||
| FixedVector | direction, | ||
| short | speed ) |
Definition at line 2046 of file ship.c.
References AddFixedVectors(), g_aShipVelocity, launch_object(), NormalizeFixedVector(), ScaleFixedVector(), and vector_component_in_dir().
Referenced by DrawTextAt(), fire(), and launch_object().
| unsigned int match_rotation_goal | ( | short * | rotation, |
| short * | goal, | ||
| short | totalError, | ||
| short | rate ) |
Definition at line 538 of file ship.c.
References match_rotation_goal(), MaxShort(), and MinShort().
Referenced by DrawTextAt(), match_rotation_goal(), rotate_eye_to_goal(), and rotate_object_to_goal().
| short new_object | ( | short | type, |
| short | owner ) |
Definition at line 240 of file ship.c.
References borrow_dust(), find_vacant_3d_object(), initialize_object(), and new_object().
Referenced by capital_ship_strike_mission(), DrawTextAt(), fire_weapon(), FireTargetCameraGuns(), new_object(), SpawnCapitalFlakProjectile(), SpawnFlakBurst(), and UpdateShipTurretGuns().
| short onboard_explosion | ( | short | obj | ) |
Definition at line 1031 of file ship.c.
References AddFixedVectors(), find_vacant_3d_object(), g_aShipPosition, g_aShipVelocity, g_asObjectCollisionRadius, g_asObjectCounter, g_asObjectScale, MakeRandomVectorFixed(), onboard_explosion(), RecordCannedSceneObjectEvent(), set_objects_data(), and void().
Referenced by DrawTextAt(), Explosion(), house_keep_objects(), internal_damage(), and onboard_explosion().
| short pilot_hit | ( | short | obj | ) |
Definition at line 1010 of file ship.c.
References g_acPilotHitPoints, g_asObjectCounter, g_bDeathSequenceActive, g_bPlayerDamageEnabled, g_nArcadeState, pilot_hit(), RandomBelowOrEqual(), set_special(), skill_check(), and SPECIAL_MANEUVER_BLOWING_UP.
Referenced by DrawTextAt(), internal_damage(), pilot_hit(), and your_internal_damage().
Definition at line 2771 of file ship.c.
References find_vacant_3d_object(), flip_angle(), g_acShipExhaustHeat, g_aeObjectClass, g_aeSpecialManeuver, g_anShipCloakState, g_anShipSpeed, g_apObjectExhaustShape, g_asLoadedShipViewFrame, g_asObjectDistance, g_asObjectFlip, g_asObjectScale, g_asObjectScreenAngle, g_asObjectScreenX, g_asObjectScreenY, g_asObjectType, g_asObjectViewFrame, g_bExpandedShipGraphicsEnabled, g_bJumpSequenceActive, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, place_exhaust_on_ships(), RandomInRange(), set_objects_data(), SPECIAL_MANEUVER_AFTERBURNER, SPECIAL_MANEUVER_KILL_ENGINES, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by DrawSpaceSceneFrame(), DrawTextAt(), and place_exhaust_on_ships().
Definition at line 1514 of file ship.c.
References check_next_wave(), ejection_sequence(), g_aeObjectClass, g_asShipSide, g_bEjectionTriggerImmediately, g_bEjectionWaitForEnemyWave, g_bMissionDeathSequencePending, g_bMissionEjectionPodSpawned, g_nEjectionSequenceState, g_nPendingEjectionSequenceCount, g_stCurrentPilotProfile, g_ucPendingEjectionTransition, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, PilotProfile::playerShipType, ProcessEnemyWaveCompletion(), set_up_next_wave(), and SIDE_KILRATHI.
Referenced by Create_explosion_debris(), DrawTextAt(), ProcessEnemyWaveCompletion(), and report_kilrathi_rout().
| short RandomBelow | ( | short | n | ) |
Definition at line 12 of file eventmgr.c.
| int RandomFixedAimComponent | ( | short | radius, |
| short | speed, | ||
| short | maximum ) |
Definition at line 2266 of file ship.c.
References MinShort(), RandomBelowOrEqual(), RandomFixedAimComponent(), and RandomSign().
Referenced by DrawTextAt(), RandomFixedAimComponent(), and SpawnFlakBurst().
| short RandomSign | ( | short | v | ) |
Definition at line 2257 of file ship.c.
References RandomBelowOrEqual(), and RandomSign().
Referenced by DrawTextAt(), RandomFixedAimComponent(), and RandomSign().
| short real_velocity | ( | short | obj | ) |
Definition at line 705 of file ship.c.
References FixedToShortSaturating(), g_aShipVelocity, real_velocity(), and Vector_magnitude().
Referenced by DrawTextAt(), fire(), imperial_formation(), make_shard(), manage_hazard(), Mfish_hook(), normal_speed(), real_velocity(), SpawnFlakBurst(), and update_hazards().
| void remove_weapon | ( | short | obj, |
| short | weapon ) |
Definition at line 283 of file ship.c.
References any_selected(), g_116_aWeaponDisplayPositions, g_aObjectTypeData, g_aShipWeapons, g_nSelectedReleaseWeaponIndex, get_mode(), InvalidateVduMode(), OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, remove_weapon(), select_new_gun(), and select_new_release_weapon().
Referenced by DrawTextAt(), fire_weapon(), internal_damage(), remove_weapon(), RemovePlayerReleaseWeapon(), and your_internal_damage().
Definition at line 1439 of file ship.c.
References damage_ion_drive(), g_acObjectType, g_acPlayerComponentDamage, g_acShipDamage, g_aObjectTypeData, RandomBelowOrEqual(), repair_internal_damage(), and ReportComponentRepaired().
Referenced by DrawTextAt(), repair_internal_damage(), and update_cockpit().
| void replenish_shields | ( | short | ship | ) |
Definition at line 2949 of file ship.c.
References g_aasShipMaximumShield, g_aasShipShield, g_acObjectType, g_acPlayerComponentDamage, g_aObjectTypeData, g_nSpaceFrame, and replenish_shields().
Referenced by DrawTextAt(), replenish_shields(), and update_objects_in_space().
| void replenish_weapon_energy_bank | ( | short | ship | ) |
Definition at line 2973 of file ship.c.
References g_1_nGunShowEnergyPercent, g_aasShipMaximumShield, g_aasShipShield, g_acPlayerComponentDamage, g_asShipWeaponEnergy, g_nAimCameraMode, g_nSpaceFrame, g_nTargetCameraZoom, HasShipCockpitGunDisplay(), MinShort(), RandomInRange(), and replenish_weapon_energy_bank().
Referenced by DrawTextAt(), replenish_weapon_energy_bank(), and update_objects_in_space().
| short ReportComponentRepaired | ( | short | component, |
| short | minimumDamage ) |
Definition at line 1421 of file ship.c.
References g_acPlayerComponentDamage, g_apszComponentNames, g_cRedColour, ReportComponentRepaired(), and ShowComponentHitHudMessage().
Referenced by DrawTextAt(), repair_internal_damage(), and ReportComponentRepaired().
Definition at line 2863 of file ship.c.
References CosFixed(), g_acObjectOwner, g_aeObjectClass, g_asObjectDistance, g_asObjectFlip, g_asObjectScale, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectScreenX, g_asObjectScreenY, g_asObjectType, MultiplyFixed(), OBJECT_CLASS_FIXED_OBJECT, reposition_fixed_child_objects(), SinFixed(), and SPACE_LAST_MOVING_OBJECT.
Referenced by DrawSpaceSceneFrame(), DrawTextAt(), and reposition_fixed_child_objects().
| short ResolveObjectDestruction | ( | short | attacker, |
| short | victim ) |
Definition at line 1937 of file ship.c.
References analyze_kill(), BeginShipDestructionSequence(), Explosion(), MissionObjective::field_8, g_8_bUserDestroyedFlag, g_abPilotEjectionAttempted, g_abShipEjectionSequenceEnabled, g_acObjectOwner, g_acShipDamage, g_acShipStress, g_aeObjectClass, g_aeSpecialManeuver, g_aMissionObjectives, g_asPilotLevel, g_asShipMissionIndex, g_asShipSide, g_bDeathSequenceActive, g_bPlayerDamageEnabled, g_nArcadeState, g_nExternalViewShip, MANEUVER_OUTA_HERE, MISSION_OBJECTIVE_COUNT, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, RandomBelowOrEqual(), reset_maneuver(), ResolveObjectDestruction(), send_message(), SIDE_IMPERIAL, SIDE_KILRATHI, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by DrawTextAt(), explode(), and ResolveObjectDestruction().
| void revise_shields | ( | short | obj | ) |
Definition at line 1226 of file ship.c.
References g_aasShipMaximumShield, g_acObjectType, g_aObjectTypeData, MaxShort(), and revise_shields().
Referenced by DrawTextAt(), revise_shields(), and your_internal_damage().
| void rotate_object_to_goal | ( | short | obj | ) |
Definition at line 576 of file ship.c.
References alert_flag(), g_acObjectType, g_aeObjectClass, g_aeSpecialManeuver, g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_anPitchGoal, g_anRollGoal, g_anYawGoal, g_aObjectTypeData, g_asObjectCounter, g_asShipSide, GetAdaptiveTurnRate(), match_rotation_goal(), MaxShort(), MinShort(), OBJECT_CLASS_SHIP, ObjectTypeData::pitchRate, ObjectTypeData::rollRate, rotate_object_to_goal(), set_special(), skill_check(), SPECIAL_MANEUVER_BLOWING_UP, SPECIAL_MANEUVER_NONE, and ObjectTypeData::yawRate.
Referenced by DrawTextAt(), rotate_object_to_goal(), and update_objects_in_space().
| void ScaleFixedVector | ( | FixedVector * | vector, |
| int | scale, | ||
| FixedVector * | result ) |
| void score_for_kill | ( | short | pilot, |
| short | victim ) |
Definition at line 1664 of file ship.c.
References affect_mission_score(), g_aeObjectClass, g_asObjectType, g_asShipSide, OBJECT_CLASS_BASE, score_for_kill(), and SIDE_KILRATHI.
Referenced by analyze_kill(), DrawTextAt(), and score_for_kill().
| void send_appropriate_message | ( | short | attacker, |
| short | victim ) |
Definition at line 750 of file ship.c.
References g_acObjectOwner, g_aeObjectClass, g_aeSpecialManeuver, g_asPlayerHitsCreditValues, g_asShipSide, g_asWingmanDamageCredit, g_nYourWingman, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, RandomBelowOrEqual(), send_appropriate_message(), send_message(), SIDE_IMPERIAL, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by DrawTextAt(), inflict_damage(), and send_appropriate_message().
| int send_at_point | ( | short | obj, |
| FixedVector * | point, | ||
| short | speed ) |
Definition at line 2008 of file ship.c.
References ComputeVectorDelta(), g_aShipPosition, g_aShipVelocity, send_at_point(), and SetVectorFixedPoint().
Referenced by capital_ship_strike_mission(), DrawTextAt(), fire_flack(), send_at_point(), and SpawnCapitalFlakProjectile().
| void set_objects_data | ( | short | obj, |
| short | type, | ||
| short | owner, | ||
| short | matchResourceType ) |
Definition at line 347 of file ship.c.
References animate_shape(), ObjectTypeData::animation, ObjectTypeData::armorFront, ObjectTypeData::armorLeft, ObjectTypeData::armorRear, ObjectTypeData::armorRight, ObjectTypeData::collisionRadius, ObjectTypeData::field_18, g_1_asObjectCreationFrameTable, g_aasShipArmor, g_aasShipMaximumShield, g_aasShipShield, g_abProjectileCollisionBonus, g_acLastCollisionObject, g_acObjectAnimationDelay, g_acObjectOwner, g_acObjectType, g_acPilotHitPoints, g_acShipDamage, g_acShipIonDriveDamage, g_acShipLastAttacker, g_acShipTarget, g_aeObjectClass, g_anShipFuel, g_aObjectTypeData, g_apObjectExhaustShape, g_apObjectShape, g_aShipWeapons, g_asObjectAnimationIndex, g_asObjectCollisionRadius, g_asObjectDamage, g_asObjectFlip, g_asObjectScale, g_asObjectScreenAngle, g_asObjectType, g_asObjectViewFrame, g_asShipSide, g_asShipTurretFireEnabled, g_asShipWeaponEnergy, g_nObjectType62Index, g_nObjectType63Index, g_nSelectedGunType, g_nSelectedReleaseWeaponIndex, g_nSpaceFrame, g_pGenericMissileExhaustShape, g_pGenericMissileShape, HasShipCockpitGunDisplay(), init_ijk(), InitializeShipWeaponTypeIndices(), ObjectTypeData::lifetime, OBJECT_CLASS_DUST, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, OBJECT_DATA_ASTEROID1, OBJECT_DATA_ASTEROID2, OBJECT_DATA_ASTEROID3, OBJECT_DATA_ASTEROID4, OBJECT_DATA_ASTEROID5, OBJECT_DATA_ASTEROID6, OBJECT_DATA_CHAFF_POD, OBJECT_DATA_EXPLOSION_LARGE, OBJECT_DATA_EXPLOSION_MEDIUM, OBJECT_DATA_EXPLOSION_SMALL, OBJECT_DATA_GIRDER_CHUNK, OBJECT_DATA_METAL_SHEET, OBJECT_DATA_PIPE, OBJECT_DATA_ROCK_CHUNK, OBJECT_DATA_SHIP_WING, OBJECT_DATA_SPACE_DUST, ObjectTypeData::objectClass, recalc_max_velocity(), ObjectTypeData::scale, set_objects_data(), ObjectTypeData::shapeSet, ObjectTypeData::shieldAft, ObjectTypeData::shieldFore, SIDE_KILRATHI, ObjectTypeData::weaponLoadout, and ObjectTypeData::yawRate.
Referenced by animate_object(), ApplyCannedSceneObjectEventRecord(), Create_explosion_debris(), Create_ship_hit_debris(), DrawTextAt(), Explosion(), fire_flack(), house_keep_objects(), init_hazard(), initialize_object(), make_shard(), object_collision(), onboard_explosion(), place_exhaust_on_ships(), prepare_mission(), set_objects_data(), ShipExplosion(), SpawnMissionEjectionPod(), start_dust(), ToggleTargetCameraTracking(), unwarp(), update_star_field(), and warp().
| short ShipExplosion | ( | short | obj | ) |
Definition at line 1786 of file ship.c.
References copy_frame(), find_vacant_3d_object(), FreePacketAndClear(), g_acObjectOwner, g_aeObjectClass, g_apObjectShape, g_aShipPosition, g_aShipVelocity, g_asLoadedShipViewFrame, g_asObjectScale, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_DATA_EXPLOSION_LARGE, OBJECT_DATA_EXPLOSION_MEDIUM, PlaySfxWaveFileByNumber(), RecordCannedSceneObjectEvent(), set_objects_data(), and ShipExplosion().
Referenced by BeginShipDestructionSequence(), DrawTextAt(), Explosion(), house_keep_objects(), and ShipExplosion().
| short ShipHasCloakingDevice | ( | short | ship | ) |
Definition at line 72 of file ship.c.
References g_aShipWeapons, and ShipHasCloakingDevice().
Referenced by DrawTextAt(), Set_up_ship_info(), and ShipHasCloakingDevice().
| short ShipHasTorpedo | ( | short | ship | ) |
Definition at line 122 of file ship.c.
References g_aShipWeapons, and ShipHasTorpedo().
Referenced by DrawTextAt(), request(), ShipHasTorpedo(), and target_valid().
Definition at line 720 of file ship.c.
References g_acViableTarget, g_asViableTargetDistance, g_cViableTargetCount, and SortViableTargetsByDistance().
Referenced by build_your_target_list(), DrawTextAt(), FF_missile_intelligence(), heat_seeking_missile_intelligence(), and SortViableTargetsByDistance().
| short SpawnFlakBurst | ( | short | obj, |
| short | range, | ||
| FixedVector * | hardpoint, | ||
| short | burstMode ) |
Definition at line 2276 of file ship.c.
References AddFixedVectors(), explosion_shock_wave(), fire_flack(), g_acShipTarget, g_aObjectTypeData, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, g_asObjectType, MaxShort(), new_object(), RandomBelow(), RandomBelowOrEqual(), RandomFixedAimComponent(), real_velocity(), ScaleFixedVector(), SpawnFlakBurst(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by DrawTextAt(), fire_turrets(), and SpawnFlakBurst().
| void steady_object | ( | short | ship | ) |
Definition at line 698 of file ship.c.
References g_anPitchGoal, g_anRollGoal, g_anYawGoal, and steady_object().
Referenced by alter_objective(), chase_location(), DrawTextAt(), fire_weapon(), formation_break(), goto_formation(), init_formation_burst(), Msit_n_spin(), reset_objective(), start_collision_alert(), steady_object(), and try2reset_maneuver().
Definition at line 3028 of file ship.c.
References fire_afterburner(), g_6_nPendingAfterburnerSfxFrame, g_aeSpecialManeuver, g_anShipFuel, g_asShipAfterburnerTimer, g_nSpaceFrame, malf(), PlaySfxWaveFileByNumber(), SPECIAL_MANEUVER_AFTERBURNER, and your_afterburner().
Referenced by DrawTextAt(), HandleSpaceFlightControls(), and your_afterburner().
| short your_internal_damage | ( | short | attacker, |
| short | owner, | ||
| short | damage, | ||
| short | quadrant ) |
Definition at line 1273 of file ship.c.
References check_computer_damage(), damage_ion_drive(), damage_your_component(), DecreaseAdaptiveDifficulty(), drain_fuel(), explode(), g_aasPlayerDamageSystemTable, g_acObjectType, g_acPlayerComponentDamage, g_acShipCommunicator, g_acShipComputerDamage, g_acShipDamage, g_aeObjectClass, g_anShipFuel, g_aObjectTypeData, g_aShipWeapons, g_asObjectDamage, g_cRedColour, IsOnlyShipGun(), MaxShort(), OBJECT_CLASS_ASTEROID, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, pilot_hit(), place_damage_on_cockpit(), RandomBelowOrEqual(), remove_weapon(), revise_shields(), ShowComponentHitHudMessage(), and your_internal_damage().
Referenced by DrawTextAt(), internal_damage(), and your_internal_damage().
| signed char g_10_abExplosionEntityDoneBytes[ SPACE_OBJECT_COUNT] |
| short g_1_asObjectCreationFrameTable[SPACE_OBJECT_COUNT] |
Definition at line 3069 of file ship.c.
Referenced by inflict_damage(), and set_objects_data().
| int g_3_bAfterburnerSfxActive |
Definition at line 3064 of file ship.c.
Referenced by ResetSoundState().
| int g_6_nPendingAfterburnerSfxFrame |
Definition at line 3060 of file ship.c.
Referenced by init_3Space_objects(), and your_afterburner().
| short g_7_asShipBurstStageCountdown[10] |
Definition at line 3063 of file ship.c.
Referenced by BeginShipDestructionSequence(), Explosion(), house_keep_objects(), and vid_transmit().
|
static |
Definition at line 22 of file ship.c.
Referenced by Create_explosion_debris().
| short g_aasPlayerDamageSystemTable[5][10] |
Definition at line 15 of file ship.c.
Referenced by your_internal_damage().
| signed char g_acGunRefireDelay[4] = {5, 9, 3, 4} |
Definition at line 54 of file ship.c.
Referenced by fire_weapon(), and FireTargetCameraGuns().
| short g_aeShipHitDebrisTypes[4] |
Definition at line 48 of file ship.c.
Referenced by Create_ship_hit_debris().
| short g_asMissileProximityFuseValues[16] |
Definition at line 3068 of file ship.c.
Referenced by explosion_shock_wave(), fire_turrets(), fire_weapon(), and house_keep_objects().
| short g_asPlayerHitsCreditValues[10] |
Definition at line 3067 of file ship.c.
Referenced by house_keep_objects(), inflict_damage(), send_appropriate_message(), and Set_up_ship_info().
| short g_asWingmanDamageCredit[10] |
Definition at line 3061 of file ship.c.
Referenced by inflict_damage(), send_appropriate_message(), and Set_up_ship_info().
| short g_bAiMissileFiringEnabled = 1 |
Definition at line 9 of file ship.c.
Referenced by fire(), and perform_maneuver().
| short g_bFriendlyFireWarningIssued = 0 |
Definition at line 10 of file ship.c.
Referenced by inflict_damage(), init_mission(), and RunCampaignGameLoop().
| short g_nAdaptiveDifficulty |
Definition at line 3062 of file ship.c.
Referenced by DecreaseAdaptiveDifficulty(), fire(), fire_weapon(), GetAdaptiveTurnRate(), IncreaseAdaptiveDifficulty(), and init_mission().
| short g_nLastAdaptiveDifficultyChangeFrame = 0 |
Definition at line 11 of file ship.c.
Referenced by DecreaseAdaptiveDifficulty(), IncreaseAdaptiveDifficulty(), and init_mission().
| short g_nLastFriendlyFireObjectFrame = 0x0ee4 |
Definition at line 14 of file ship.c.
Referenced by inflict_damage().
| short g_nObjectType62Index = -1 |
Definition at line 12 of file ship.c.
Referenced by free_cockpit(), InitializeCockpitResources(), overlay_head_up_display(), set_objects_data(), and ToggleTargetCameraTracking().
| short g_nObjectType63Index = -1 |
Definition at line 13 of file ship.c.
Referenced by free_cockpit(), InitializeCockpitResources(), set_objects_data(), and ToggleTargetCameraTracking().