FS2_Open
Open source remastering of the Freespace 2 engine
cmeasure.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef _CMEASURE_H
13 #define _CMEASURE_H
14 
15 #include "globalincs/globals.h"
16 #include "globalincs/systemvars.h"
17 
18 class object;
19 
20 #define CMEASURE_WAIT 333 // delay in milliseconds between countermeasure firing.
21 
22 // Maximum distance at which a countermeasure can be tracked
23 // If this value is too large, missiles will always be tracking countermeasures.
24 #define MAX_CMEASURE_TRACK_DIST 300.0f
25 extern const float CMEASURE_DETONATE_DISTANCE;
26 
27 extern int Cmeasures_homing_check;
28 extern int Countermeasures_enabled;
29 
30 extern void cmeasure_set_ship_launch_vel(object *objp, object *parent_objp, int arand);
31 extern void cmeasure_select_next(object *objp);
32 extern void cmeasure_maybe_alert_success(object *objp);
33 
34 #endif // _CMEASURE_H
object * objp
Definition: lua.cpp:3105
int Countermeasures_enabled
Definition: cmeasure.cpp:23
Definition: object.h:141
int Cmeasures_homing_check
Definition: cmeasure.cpp:22
void cmeasure_set_ship_launch_vel(object *objp, object *parent_objp, int arand)
Definition: cmeasure.cpp:28
const float CMEASURE_DETONATE_DISTANCE
Definition: cmeasure.cpp:24
void cmeasure_maybe_alert_success(object *objp)
If this is a player countermeasure, let the player know they evaded a missile.
Definition: cmeasure.cpp:84
void cmeasure_select_next(object *objp)