FS2_Open
Open source remastering of the Freespace 2 engine
corkscrew.cpp File Reference
#include "debugconsole/console.h"
#include "freespace2/freespace.h"
#include "io/timer.h"
#include "object/object.h"
#include "ship/ship.h"
#include "weapon/corkscrew.h"
#include "weapon/weapon.h"

Go to the source code of this file.

Classes

struct  cscrew_info
 

Macros

#define CS_FLAG_USED   (1<<0)
 
#define CS_FLAG_COUNTER   (1<<1)
 
#define MAX_CORKSCREW_MISSILES   200
 

Typedefs

typedef struct cscrew_info cscrew_info
 

Functions

void cscrew_level_init ()
 
void cscrew_maybe_fire_missile (int shipnum)
 
int cscrew_create (object *obj)
 
void cscrew_delete (int i)
 
void cscrew_process_pre (object *objp)
 
void cscrew_process_post (object *objp)
 
void cscrew_display_dcf ()
 
 DCF (cscrew,"Listing of corkscrew missile debug console functions")
 
 DCF (cscrew_delay,"Change the delay between corkscrew firing")
 
 DCF (cscrew_count,"Change the # of corkscrew missiles fired")
 
 DCF (cscrew_radius,"Change the radius of corkscrew missiles")
 
 DCF (cscrew_twist,"Change the rate of the corkscrew twist")
 
 DCF (cscrew_helix,"Attempt to orient missile nicely along the corkscrew")
 
 DCF (cscrew_counter,"Counterrotate every other missile")
 
 DCF (cscrew_shrink,"Shrink the radius of every other missile")
 
 DCF (cscrew_shrinkval,"Change the rate at which the radii shrink")
 
 DCF (cscrew_down,"Cause the missile to spiral down first")
 

Variables

int Corkscrew_missile_delay = 30
 
int Corkscrew_num_missiles_fired = 4
 
float Corkscrew_radius = 1.25f
 
float Corkscrew_twist = 5.0f
 
int Corkscrew_helix = 1
 
int Corkscrew_counterrotate = 1
 
int Corkscrew_shrink = 0
 
float Corkscrew_shrink_val = 0.3f
 
int Corkscrew_down_first = 1
 
float Corkscrew_radius_cur = Corkscrew_radius
 
cscrew_info Corkscrew_missiles [MAX_CORKSCREW_MISSILES]
 

Macro Definition Documentation

#define CS_FLAG_COUNTER   (1<<1)

Definition at line 24 of file corkscrew.cpp.

#define CS_FLAG_USED   (1<<0)

Definition at line 23 of file corkscrew.cpp.

#define MAX_CORKSCREW_MISSILES   200

Definition at line 50 of file corkscrew.cpp.

Typedef Documentation

typedef struct cscrew_info cscrew_info

Function Documentation

int cscrew_create ( object obj)

Definition at line 115 of file corkscrew.cpp.

void cscrew_delete ( int  i)

Definition at line 167 of file corkscrew.cpp.

void cscrew_display_dcf ( )

Definition at line 260 of file corkscrew.cpp.

void cscrew_level_init ( )

Definition at line 58 of file corkscrew.cpp.

void cscrew_maybe_fire_missile ( int  shipnum)

Definition at line 71 of file corkscrew.cpp.

void cscrew_process_post ( object objp)

Definition at line 198 of file corkscrew.cpp.

void cscrew_process_pre ( object objp)

Definition at line 177 of file corkscrew.cpp.

DCF ( cscrew  ,
"Listing of corkscrew missile debug console functions"   
)

Definition at line 290 of file corkscrew.cpp.

DCF ( cscrew_delay  ,
"Change the delay between corkscrew firing"   
)

Definition at line 295 of file corkscrew.cpp.

DCF ( cscrew_count  ,
"Change the # of corkscrew missiles fired"   
)

Definition at line 301 of file corkscrew.cpp.

DCF ( cscrew_radius  ,
"Change the radius of corkscrew missiles"   
)

Definition at line 307 of file corkscrew.cpp.

DCF ( cscrew_twist  ,
"Change the rate of the corkscrew twist"   
)

Definition at line 313 of file corkscrew.cpp.

DCF ( cscrew_helix  ,
"Attempt to orient missile nicely along the corkscrew"   
)

Definition at line 319 of file corkscrew.cpp.

DCF ( cscrew_counter  ,
"Counterrotate every other missile"   
)

Definition at line 326 of file corkscrew.cpp.

DCF ( cscrew_shrink  ,
"Shrink the radius of every other missile"   
)

Definition at line 333 of file corkscrew.cpp.

DCF ( cscrew_shrinkval  ,
"Change the rate at which the radii shrink"   
)

Definition at line 340 of file corkscrew.cpp.

DCF ( cscrew_down  ,
"Cause the missile to spiral down first  
)

Definition at line 346 of file corkscrew.cpp.

Variable Documentation

int Corkscrew_counterrotate = 1

Definition at line 32 of file corkscrew.cpp.

int Corkscrew_down_first = 1

Definition at line 35 of file corkscrew.cpp.

int Corkscrew_helix = 1

Definition at line 31 of file corkscrew.cpp.

int Corkscrew_missile_delay = 30

Definition at line 27 of file corkscrew.cpp.

cscrew_info Corkscrew_missiles[MAX_CORKSCREW_MISSILES]

Definition at line 51 of file corkscrew.cpp.

int Corkscrew_num_missiles_fired = 4

Definition at line 28 of file corkscrew.cpp.

float Corkscrew_radius = 1.25f

Definition at line 29 of file corkscrew.cpp.

float Corkscrew_radius_cur = Corkscrew_radius

Definition at line 38 of file corkscrew.cpp.

int Corkscrew_shrink = 0

Definition at line 33 of file corkscrew.cpp.

float Corkscrew_shrink_val = 0.3f

Definition at line 34 of file corkscrew.cpp.

float Corkscrew_twist = 5.0f

Definition at line 30 of file corkscrew.cpp.