]> icculus.org git repositories - taylor/freespace2.git/blob - include/subsysdamage.h
Initial revision
[taylor/freespace2.git] / include / subsysdamage.h
1 /*
2  * $Logfile: /Freespace2/code/Ship/SubsysDamage.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Header file for various subystem damage defines
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:12  root
11  * Initial revision
12  *
13  * 
14  * 2     10/07/98 10:53a Dave
15  * Initial checkin.
16  * 
17  * 1     10/07/98 10:51a Dave
18  * 
19  * 4     4/07/98 5:30p Lawrance
20  * Player can't send/receive messages when comm is destroyed.  Garble
21  * messages when comm is damaged.
22  * 
23  * 3     10/13/97 7:42p Lawrance
24  * added MIN_COMM_STR_RECEIVE_OK
25  * 
26  * 2     10/11/97 6:38p Lawrance
27  * move subsys damage #defines to SubsysDamage.h
28  * 
29  * 1     10/10/97 7:57p Lawrance
30  *
31  * $NoKeywords: $
32  */
33
34 #ifndef __SUBSYS_DAMAGE_H__
35 #define __SUBSYS_DAMAGE_H__
36
37 /////////////////////////////////////////
38 // engines
39 /////////////////////////////////////////
40 #define SHIP_MIN_ENGINES_TO_WARP                        0.3f    // % engine strength required to engage warp
41 #define ENGINE_MIN_STR                                          0.15f   // if engines are below this level, still contribute this percent to total
42                                                                                                                         // (unless destroyed, then contribute none).
43
44 /////////////////////////////////////////
45 // weapons
46 /////////////////////////////////////////
47 #define SUBSYS_WEAPONS_STR_FIRE_OK              0.7f    // 70% strength or better, weapons always fire
48 #define SUBSYS_WEAPONS_STR_FIRE_FAIL    0.2f    // below 20%, weapons will not fire
49
50
51 /////////////////////////////////////////
52 // sensors - targeting
53 /////////////////////////////////////////
54 #define SENSOR_STR_TARGET_NO_EFFECTS    0.3f    // % strength of sensors at which no negative effects on targeting
55 #define MIN_SENSOR_STR_TO_TARGET                        0.2f    // % strength of sensors at which targeting ceases
56                                                                                                                         // to function
57
58 /////////////////////////////////////////
59 // sensors - radar
60 /////////////////////////////////////////
61 #define SENSOR_STR_RADAR_NO_EFFECTS             0.4f    // % strength of sensors at which no negative effects on radar
62 #define MIN_SENSOR_STR_TO_RADAR                 0.1f    // % strength of sensors at which radar ceases to function
63
64 /////////////////////////////////////////
65 // communications
66 /////////////////////////////////////////
67 #define MIN_COMM_STR_TO_MESSAGE                 0.3     // % strength of communications at which player
68                                                                                                                         // is unable to use squadmate messaging
69
70 #define COMM_DESTROYED  0
71 #define COMM_DAMAGED            1
72 #define COMM_OK                 2
73
74
75 #endif
76