00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _P_CRIT_H
00013 #define _P_CRIT_H
00014
00015
00016 void correct_speed(MECH * mech);
00017 void explode_unit(MECH * wounded, MECH * attacker);
00018 int handleWeaponCrit(MECH * attacker, MECH * wounded, int hitloc,
00019 int critHit, int critType, int LOS);
00020 void HandleVTOLCrit(MECH * wounded, MECH * attacker, int LOS, int hitloc,
00021 int num);
00022 void DestroyMainWeapon(MECH * mech);
00023 void JamMainWeapon(MECH * mech);
00024 void pickRandomWeapon(MECH * objMech, int wLoc, int *critNum,
00025 int wIgnoreJams);
00026 void limitSpeedToCruise(MECH * objMech);
00027 void DoVehicleStablizerCrit(MECH * objMech, int wLoc);
00028 void DoTurretJamCrit(MECH * objMech);
00029 void DoWeaponJamCrit(MECH * objMech, int wLoc);
00030 void DoTurretLockCrit(MECH * objMech);
00031 void DoWeaponDestroyedCrit(MECH * objAttacker, MECH * objMech, int wLoc,
00032 int LOS);
00033 void DoTurretBlownOffCrit(MECH * objMech, MECH * objAttacker, int LOS);
00034 void DoAmmunitionCrit(MECH * objMech, MECH * objAttacker, int wLoc,
00035 int LOS);
00036 void DoCargoInfantryCrit(MECH * objMech, int wLoc);
00037 void DoVehicleEngineHit(MECH * objMech, MECH * objAttacker);
00038 void DoVehicleFuelTankCrit(MECH * objMech, MECH * objAttacker);
00039 void DoVehicleCrewStunnedCrit(MECH * objMech);
00040 void DoVehicleDriverCrit(MECH * objMech);
00041 void DoVehicleSensorCrit(MECH * objMech);
00042 void DoVehicleCommanderHit(MECH * objMech);
00043 void DoVehicleCrewKilledCrit(MECH * objMech, MECH * objAttacker);
00044 void DoVTOLCoPilotCrit(MECH * objMech);
00045 void DoVTOLPilotHit(MECH * objMech);
00046 void DoVTOLRotorDamagedCrit(MECH * objMech);
00047 void DoVTOLTailRotorDamagedCrit(MECH * objMech);
00048 void DoVTOLRotorDestroyedCrit(MECH * objMech, MECH * objAttacker, int LOS);
00049 void StartVTOLCrash(MECH * objMech);
00050 void HandleAdvFasaVehicleCrit(MECH * wounded, MECH * attacker, int LOS,
00051 int hitloc, int num);
00052 void HandleFasaVehicleCrit(MECH * wounded, MECH * attacker, int LOS,
00053 int hitloc, int num);
00054 void HandleVehicleCrit(MECH * wounded, MECH * attacker, int LOS,
00055 int hitloc, int num);
00056 int HandleMechCrit(MECH * wounded, MECH * attacker, int LOS, int hitloc,
00057 int critHit, int critType, int critData);
00058 void HandleCritical(MECH * wounded, MECH * attacker, int LOS, int hitloc,
00059 int num);
00060 void NormalizeArmActuatorCrits(MECH * objMech, int wLoc, int wCritType);
00061 void NormalizeLegActuatorCrits(MECH * objMech, int wLoc, int wCritType);
00062 void NormalizeLocActuatorCrits(MECH * objMech, int wLoc);
00063 void NormalizeAllActuatorCrits(MECH * objMech);
00064
00065 #endif