23 #define CS_FLAG_USED (1<<0) // this structure is in use
24 #define CS_FLAG_COUNTER (1<<1) // counterrotate this guy
50 #define MAX_CORKSCREW_MISSILES 200
75 int weapon_info_index;
124 cscrewp = &Corkscrew_missiles[
i];
130 if ( i >= MAX_CORKSCREW_MISSILES ) {
131 nprintf((
"Warning",
"No more corkscrew missiles are available\n"));
173 memset(&Corkscrew_missiles[i], 0,
sizeof(
cscrew_info));
270 dc_printf(
"Helix (cscrew_helix): OFF\n");
273 dc_printf(
"Counterrotate (cscrew_counter): ON\n");
275 dc_printf(
"Counterrotate (cscrew_counter): OFF\n");
278 dc_printf(
"Shrink (cscrew_shrink): ON\n");
280 dc_printf(
"Shrink (cscrew_shrink): OFF\n");
284 dc_printf(
"Corkscrew down first : ON\n");
286 dc_printf(
"Corkscrew down first : OFF\n");
290 DCF(cscrew,
"Listing of corkscrew missile debug console functions")
295 DCF(cscrew_delay,
"Change the delay between corkscrew firing")
301 DCF(cscrew_count,
"Change the # of corkscrew missiles fired")
307 DCF(cscrew_radius,
"Change the radius of corkscrew missiles")
313 DCF(cscrew_twist,
"Change the rate of the corkscrew twist")
319 DCF(cscrew_helix,
"Attempt to orient missile nicely along the corkscrew")
326 DCF(cscrew_counter,
"Counterrotate every other missile")
333 DCF(cscrew_shrink,
"Shrink the radius of every other missile")
340 DCF(cscrew_shrinkval,
"Change the rate at which the radii shrink")
346 DCF(cscrew_down,
"Cause the missile to spiral down first")
void cscrew_delete(int i)
int timestamp(int delta_ms)
weapon Weapons[MAX_WEAPONS]
struct cscrew_info cscrew_info
float frand_range(float min, float max)
Return a floating point number in the range min..max.
weapon_info Weapon_info[MAX_WEAPON_TYPES]
int Corkscrew_num_missiles_fired
int trail_stamp_elapsed(trail *trailp)
int corkscrew_missile_bank
void cscrew_process_post(object *objp)
void vm_vec_scale_add2(vec3d *dest, const vec3d *src, float k)
int ship_fire_secondary(object *obj, int allow_swarm)
float Corkscrew_shrink_val
#define MAX_CORKSCREW_MISSILES
ubyte num_corkscrew_to_fire
matrix * vm_vector_2_matrix(matrix *m, const vec3d *fvec, const vec3d *uvec, const vec3d *rvec)
void vm_vec_add2(vec3d *dest, const vec3d *src)
struct matrix::@228::@230 vec
int Corkscrew_missile_delay
void vm_rot_point_around_line(vec3d *out, const vec3d *in, float angle, const vec3d *line_point, const vec3d *line_dir)
int secondary_bank_weapons[MAX_SHIP_SECONDARY_BANKS]
object Objects[MAX_OBJECTS]
void trail_add_segment(trail *trailp, vec3d *pos)
void dc_stuff_float(float *f)
Stuffs a float to the given variable.
float Corkscrew_radius_cur
void dc_stuff_int(int *i)
Stuffs an int to the given variable. Supports binary (0b), hexadecimal (0x), and octal (0o) formats...
void vm_vec_sub(vec3d *dest, const vec3d *src0, const vec3d *src1)
int cscrew_create(object *obj)
DCF(cscrew,"Listing of corkscrew missile debug console functions")
void trail_set_stamp(trail *trailp)
void cscrew_process_pre(object *objp)
An overhauled/updated debug console to allow monitoring, testing, and general debugging of new featur...
#define timestamp_elapsed(stamp)
void cscrew_display_dcf()
GLsizei GLsizei GLuint * obj
void trail_set_segment(trail *trailp, vec3d *pos)
cscrew_info Corkscrew_missiles[MAX_CORKSCREW_MISSILES]
void dc_printf(const char *format,...)
Prints the given char string to the debug console.
void cscrew_maybe_fire_missile(int shipnum)
int Corkscrew_counterrotate
float vm_vec_normalize(vec3d *v)