FS2_Open
Open source remastering of the Freespace 2 engine
|
#include "ai/aibig.h"
#include "ai/aigoals.h"
#include "freespace2/freespace.h"
#include "globalincs/linklist.h"
#include "iff_defs/iff_defs.h"
#include "io/timer.h"
#include "math/staticrand.h"
#include "mission/missionparse.h"
#include "object/object.h"
#include "ship/afterburner.h"
#include "ship/ship.h"
#include "weapon/weapon.h"
Go to the source code of this file.
Macros | |
#define | SCAN_FIGHTERS_INTERVAL 2000 |
#define | ENTER_STRAFE_THREAT_DIST_SQUARED 360000 |
#define | MIN_DOT_TO_ATTACK_SUBSYS 0.7f |
#define | MIN_DOT_TO_ATTACK_MOVING_SUBSYS 0.97f |
#define | STRAFE_RETREAT_COLLIDE_TIME 2.0 |
#define | STRAFE_RETREAT_COLLIDE_DIST 100 |
#define | STRAFE_RETREAT_BOX_DIST 300 |
#define | STRAFE_MAX_UNHIT_TIME 20 |
#define | EVADE_BOX_BASE_DISTANCE 300 |
#define | EVADE_BOX_MIN_DISTANCE 200 |
#define | ATTACK_STOP_DISTANCE 150 |
#define | ATTACK_COLLIDE_BASE_DIST 300 |
#define | ATTACK_COLLIDE_AVOID_DIST 60 |
#define | ATTACK_COLLIDE_AVOID_TIME 1.0 |
#define | ATTACK_COLLIDE_SLOW_DIST 150 |
#define | ATTACK_COLLIDE_SLOW_TIME 1.5 |
#define | GLIDE_STRAFE_DISTANCE 50.0f |
#define | GLIDE_STRAFE_MIN_TIME 2 |
#define | GLIDE_STRAFE_MAX_TIME 15 |
Definition at line 7700 of file aicode.cpp.
void ai_select_secondary_weapon | ( | object * | objp, |
ship_weapon * | swp, | ||
int | priority1 = -1 , |
||
int | priority2 = -1 |
||
) |
void big_ship_collide_recover_start | ( | object * | objp, |
object * | big_objp, | ||
vec3d * | collide_pos, | ||
vec3d * | collision_normal | ||
) |
Definition at line 14843 of file aicode.cpp.
Set desired right vector for ships flying towards another ship. Since this is governed only by vector to target, it causes ships to align bank and look less chaotic.
Definition at line 6995 of file aicode.cpp.
int maybe_avoid_big_ship | ( | object * | objp, |
object * | ignore_objp, | ||
ai_info * | aip, | ||
vec3d * | goal_point, | ||
float | delta_time | ||
) |
Return true if a large ship is being ignored.
Definition at line 6955 of file aicode.cpp.
Definition at line 15575 of file aicode.cpp.
int model_which_octant_distant_many | ( | vec3d * | pnt, |
int | model_num, | ||
matrix * | model_orient, | ||
vec3d * | model_pos, | ||
polymodel ** | pm, | ||
int * | octs | ||
) |
Definition at line 390 of file modeloctant.cpp.
float set_secondary_fire_delay | ( | ai_info * | aip, |
ship * | shipp, | ||
weapon_info * | swip, | ||
bool | burst | ||
) |
Return time, in seconds, at which this ship can next fire its current secondary weapon.
Definition at line 7785 of file aicode.cpp.