FS2_Open
Open source remastering of the Freespace 2 engine
subsysdamage.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 __SUBSYS_DAMAGE_H__
13 #define __SUBSYS_DAMAGE_H__
14 
16 // engines
18 #define SHIP_MIN_ENGINES_FOR_FULL_SPEED 0.5f // % engine strength below which ships start slowing down
19 #define SHIP_MIN_ENGINES_TO_WARP 0.3f // % engine strength required to engage warp
20 #define ENGINE_MIN_STR 0.15f // if engines are below this level, still contribute this percent to total
21  // (unless destroyed, then contribute none).
22 
24 // weapons
26 #define SUBSYS_WEAPONS_STR_FIRE_OK 0.7f // 70% strength or better, weapons always fire
27 #define SUBSYS_WEAPONS_STR_FIRE_FAIL 0.2f // below 20%, weapons will not fire
28 
29 
31 // sensors - targeting
33 #define SENSOR_STR_TARGET_NO_EFFECTS 0.3f // % strength of sensors at which no negative effects on targeting
34 #define MIN_SENSOR_STR_TO_TARGET 0.2f // % strength of sensors at which targeting ceases
35  // to function
36 
38 // sensors - radar
40 #define SENSOR_STR_RADAR_NO_EFFECTS 0.4f // % strength of sensors at which no negative effects on radar
41 #define MIN_SENSOR_STR_TO_RADAR 0.1f // % strength of sensors at which radar ceases to function
42 
43 
45 // communications
47 #define MIN_COMM_STR_TO_MESSAGE 0.3f // % strength of communications at which player
48  // is unable to use squadmate messaging
49 #define COMM_DESTROYED 0
50 #define COMM_DAMAGED 1
51 #define COMM_SCRAMBLED 2
52 #define COMM_OK 3
53 
54 
56 // navigation
58 #define SHIP_MIN_NAV_TO_WARP 0.3f // % navigation strength required to engage warp
59 
61 // shields
63 #define MIN_SHIELDS_FOR_FULL_STRENGTH 0.5f // % shield subsystem strength below which shield becomes less effective
64 #define MIN_SHIELDS_FOR_FULL_COVERAGE 0.3f // % shield subsystem strength below which shield starts flickering
65 
66 #endif