23 #define FIREBALL_MEDIUM_EXPLOSION 0
24 #define FIREBALL_LARGE_EXPLOSION 1
25 #define FIREBALL_WARP_EFFECT 2
28 #define FIREBALL_EXPLOSION_MEDIUM 0 // Used for the 4 little explosions before a ship explodes
29 #define FIREBALL_WARP 1 // Used for the warp in / warp out effect
30 #define FIREBALL_KNOSSOS 2 // Used for the KNOSSOS warp in / warp out effect
31 #define FIREBALL_ASTEROID 3
32 #define FIREBALL_EXPLOSION_LARGE1 4 // Used for the big explosion when a ship breaks into pieces
33 #define FIREBALL_EXPLOSION_LARGE2 5 // Used for the big explosion when a ship breaks into pieces
35 #define MAX_FIREBALL_TYPES 32 // The maximum number of fireballs that can be defined
36 #define NUM_DEFAULT_FIREBALLS 6
38 #define FIREBALL_NUM_LARGE_EXPLOSIONS 2
58 #define FBF_WARP_CLOSE_SOUND_PLAYED (1<<0)
59 #define FBF_WARP_CAPITAL_SIZE (1<<1)
60 #define FBF_WARP_CRUISER_SIZE (1<<2)
61 #define FBF_WARP_3D (1<<3) // Goober5000
62 #define FBF_WARP_VIA_SEXP (1<<4) // Goober5000
88 int fireball_create(
vec3d *
pos,
int fireball_type,
int render_type,
int parent_obj,
float size,
int reversed=0,
vec3d *velocity=NULL,
float warp_lifetime=0.0
f,
int ship_class=-1,
matrix *
orient=NULL,
int low_res=0,
int extra_flags=0,
int warp_open_sound=-1,
int warp_close_sound=-1);
float fireball_wormhole_intensity(object *obj)
float fireball_lifeleft_percent(object *obj)
int warp_open_sound_index
#define MAX_FIREBALL_TYPES
char filename[MAX_FILENAME_LEN]
int warp_close_sound_index
int fireball_is_warp(object *obj)
int fireball_asteroid_explosion_type(asteroid_info *aip)
int fireball_is_perishable(object *obj)
void fireball_render(object *obj, draw_list *scene)
void warpin_render(object *obj, matrix *orient, vec3d *pos, int texture_bitmap_num, float radius, float life_percent, float max_radius, int warp_3d=0)
void warpin_queue_render(draw_list *scene, object *obj, matrix *orient, vec3d *pos, int texture_bitmap_num, float radius, float life_percent, float max_radius, int warp_3d)
void fireball_delete(object *obj)
int Knossos_warp_ani_used
struct fireball_info fireball_info
int fireball_ship_explosion_type(ship_info *sip)
int fireball_used[MAX_FIREBALL_TYPES]
void fireball_get_color(int idx, float *red, float *green, float *blue)
struct fireball_lod fireball_lod
GLsizei GLsizei GLuint * obj
float fireball_lifeleft(object *obj)
void fireball_render_DEPRECATED(object *obj)
void fireball_process_post(object *obj, float frame_time)
void fireball_render_plane(int plane)
int fireball_create(vec3d *pos, int fireball_type, int render_type, int parent_obj, float size, int reversed=0, vec3d *velocity=NULL, float warp_lifetime=0.0f, int ship_class=-1, matrix *orient=NULL, int low_res=0, int extra_flags=0, int warp_open_sound=-1, int warp_close_sound=-1)