int check_ok_to_fire(int objnum, int target_objnum, weapon_info *wip)
int num_turrets_attacking(object *turret_parent, int target_objnum)
int num_nearby_fighters(int enemy_team_mask, vec3d *pos, float threshold)
void ai_fire_from_turret(ship *shipp, ship_subsys *ss, int parent_objnum)
int object_is_targetable(object *target, ship *viewer)
bool is_object_stealth_ship(object *objp)