2 * $Logfile: /Freespace2/code/Ship/SubsysDamage.h $
7 * Header file for various subystem damage defines
10 * Revision 1.1 2002/05/03 03:28:12 root
14 * 2 10/07/98 10:53a Dave
17 * 1 10/07/98 10:51a Dave
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.
23 * 3 10/13/97 7:42p Lawrance
24 * added MIN_COMM_STR_RECEIVE_OK
26 * 2 10/11/97 6:38p Lawrance
27 * move subsys damage #defines to SubsysDamage.h
29 * 1 10/10/97 7:57p Lawrance
34 #ifndef __SUBSYS_DAMAGE_H__
35 #define __SUBSYS_DAMAGE_H__
37 /////////////////////////////////////////
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).
44 /////////////////////////////////////////
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
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
58 /////////////////////////////////////////
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
64 /////////////////////////////////////////
66 /////////////////////////////////////////
67 #define MIN_COMM_STR_TO_MESSAGE 0.3 // % strength of communications at which player
68 // is unable to use squadmate messaging
70 #define COMM_DESTROYED 0
71 #define COMM_DAMAGED 1