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