2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
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
10 * $Logfile: /Freespace2/code/Ship/SubsysDamage.h $
15 * Header file for various subystem damage defines
18 * Revision 1.2 2002/06/09 04:41:15 relnev
19 * added copyright header
21 * Revision 1.1.1.1 2002/05/03 03:28:12 root
25 * 2 10/07/98 10:53a Dave
28 * 1 10/07/98 10:51a Dave
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.
34 * 3 10/13/97 7:42p Lawrance
35 * added MIN_COMM_STR_RECEIVE_OK
37 * 2 10/11/97 6:38p Lawrance
38 * move subsys damage #defines to SubsysDamage.h
40 * 1 10/10/97 7:57p Lawrance
45 #ifndef __SUBSYS_DAMAGE_H__
46 #define __SUBSYS_DAMAGE_H__
48 /////////////////////////////////////////
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).
55 /////////////////////////////////////////
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
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
69 /////////////////////////////////////////
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
75 /////////////////////////////////////////
77 /////////////////////////////////////////
78 #define MIN_COMM_STR_TO_MESSAGE 0.3 // % strength of communications at which player
79 // is unable to use squadmate messaging
81 #define COMM_DESTROYED 0
82 #define COMM_DAMAGED 1