28 #define BULLETS_PER_SHOT 1
29 #define MAX_MULTIPLE_PROJECTILES 10
36 #define AIRFIGHT_WEAPON_CAN_SHOOT 0
37 #define AIRFIGHT_WEAPON_CAN_NOT_SHOOT_AT_THE_MOMENT -1
38 #define AIRFIGHT_WEAPON_CAN_NEVER_SHOOT -2
40 #define AIRFIGHT_BASE_CAN_T_FIRE -1
Defines all attributes of objects used in the inventory.
A base with all it's data.
int numInterpolationPoints
bool AIRFIGHT_SaveXML(xmlNode_t *parent)
Save callback for savegames in XML Format.
void AIRFIGHT_ActionsAfterAirfight(const struct campaign_s *campaign, aircraft_t *shooter, aircraft_t *aircraft, bool phalanxWon)
#define MAX_MULTIPLE_PROJECTILES
int AIRFIGHT_CheckWeapon(const aircraftSlot_t *slot, float distance)
Check if the selected weapon can shoot.
bool AIRFIGHT_BaseCanTargetUFO(const struct base_s *base, const aircraft_t *ufo)
const objDef_t * aircraftItem
vec3_t oldDrawPos[MAX_MULTIPLE_PROJECTILES]
struct aircraftProjectile_s aircraftProjectile_t
projectile used during fight between two or more aircraft
void AIRFIGHT_RemoveProjectileAimingAircraft(const aircraft_t *aircraft)
Set all projectile aiming a given aircraft to an idle destination.
void AIRFIGHT_InitStartup(void)
aircraft_t * attackingAircraft
vec3_t projectedPos[MAX_MULTIPLE_PROJECTILES]
void AIRFIGHT_CampaignRunBaseDefence(int dt)
Run base defences.
void AIRFIGHT_ExecuteActions(const struct campaign_s *campaign, aircraft_t *air, aircraft_t *ufo)
aircraft_t * aimedAircraft
projectile used during fight between two or more aircraft
An aircraft with all it's data.
vec3_t pos[MAX_MULTIPLE_PROJECTILES]
int AIRFIGHT_ChooseWeapon(const aircraftSlot_t *slot, int maxSlot, const vec2_t pos, const vec2_t targetPos)
Choose the weapon an attacking aircraft will use to fire on a target.
void AIRFIGHT_CampaignRunProjectiles(const struct campaign_s *campaign, int dt)
bool AIRFIGHT_LoadXML(xmlNode_t *parent)
Load callback for savegames in XML Format.