Debian Codegraph @

Descent3/player_external.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/main/player_external.h $
21 * $Revision: 7 $
22 * $Date: 5/23/99 3:06a $
23 * $Author: Jason $
24 *
25 * Includes the flags, defines, etc. for player struct and functions (for DLL export)
26 *
27 * $Log: /DescentIII/main/player_external.h $
28 *
29 * 7 5/23/99 3:06a Jason
30 * fixed bug with player rankings not being updated correctly
31 *
32 * 6 5/10/99 12:23a Chris
33 * Fixed another hearing/seeing case. :) Buddy bot now is in the player
34 * ship at respawn
35 *
36 * 5 4/24/99 6:45p Jeff
37 * added functions for theif so he can steal things other than weapons
38 *
39 * 4 2/25/99 8:55p Jeff
40 * Inventory supports level change persistant items. Inventory supports
41 * time-out objects. Inventory Reset changed (takes a level of reset
42 * now). Quad lasers stay across level change (single player). Guidebot
43 * bug fixed (now back in ship on level start). Quads time out when
44 * spewed. Invulnerability and cloak powerups no longer use game
45 * event/callbacks, so they can be saved in game saves (moved to
46 * MakePlayerInvulnerable and MakeObjectInvisible)
47 *
48 * 3 2/12/99 3:39p Jason
49 * added client side interpolation
50 *
51 * 2 1/21/99 11:15p Jeff
52 * pulled out some structs and defines from header files and moved them
53 * into seperate header files so that multiplayer dlls don't require major
54 * game headers, just those new headers. Side effect is a shorter build
55 * time. Also cleaned up some header file #includes that weren't needed.
56 * This affected polymodel.h, object.h, player.h, vecmat.h, room.h,
57 * manage.h and multi.h
58 *
59 * $NoKeywords: $
60 */
61
62 #ifndef __PLAYER_EXTERNAL_H_
63 #define __PLAYER_EXTERNAL_H_cxx . . $ `Descent3/player_external.h:63:9`!
64
65 #define N_PLAYER_GUNScxx . . $ `Descent3/player_external.h:65:9`! 8
66
67 // Initial player stat values
68 #define INITIAL_ENERGYcxx . . $ `Descent3/player_external.h:68:9`! 100 // 100% energy to start
69 #define INITIAL_SHIELDScxx . . $ `Descent3/player_external.h:69:9`! 100 // 100% shields to start
70
71 #define MAX_ENERGYcxx . . $ `Descent3/player_external.h:71:9`! 200 // go up to 200
72 #define MAX_SHIELDScxx . . $ `Descent3/player_external.h:72:9`! 200
73
74 // Observer modes
75 #define OBSERVER_MODE_ROAMcxx . . $ `Descent3/player_external.h:75:9`! 0
76 #define OBSERVER_MODE_PIGGYBACKcxx . . $ `Descent3/player_external.h:76:9`! 1
77
78 // Values for special flags
79 #define PLAYER_FLAGS_INVULNERABLEcxx . . $ `Descent3/player_external.h:79:9`! 1 // Player is invincible
80 #define PLAYER_FLAGS_DYINGcxx . . $ `Descent3/player_external.h:80:9`! 4 // Is this player in the middle of dying?
81 #define PLAYER_FLAGS_DEADcxx . . $ `Descent3/player_external.h:81:9`! 8 // The player is just sitting there dead.
82 #define PLAYER_FLAGS_UNUSEDcxx . . $ `Descent3/player_external.h:82:9`! 16 // ????
83 #define PLAYER_FLAGS_UNUSED1cxx . . $ `Descent3/player_external.h:83:9`! 32 // ????
84 #define PLAYER_FLAGS_UNUSED2cxx . . $ `Descent3/player_external.h:84:9`! 64 // ????
85 #define PLAYER_FLAGS_UNUSED3cxx . . $ `Descent3/player_external.h:85:9`! 128 // ????
86 #define PLAYER_FLAGS_UNUSED4cxx . . $ `Descent3/player_external.h:86:9`! 256 // ????
87 #define PLAYER_FLAGS_UNUSED5cxx . . $ `Descent3/player_external.h:87:9`! 512 // ????
88 #define PLAYER_FLAGS_UNUSED6cxx . . $ `Descent3/player_external.h:88:9`! 1024 // ????
89 #define PLAYER_FLAGS_AFTERBURNERcxx . . $ `Descent3/player_external.h:89:9`! 4096 // Player has an afterburner
90 #define PLAYER_FLAGS_HEADLIGHTcxx . . $ `Descent3/player_external.h:90:9`! 8192 // Player has headlight boost
91 #define PLAYER_FLAGS_HEADLIGHT_STOLENcxx . . $ `Descent3/player_external.h:91:9`! 16384 // is the headlight stolen?
92 #define PLAYER_FLAGS_AFTERBURN_ONcxx . . $ `Descent3/player_external.h:92:9`! 32768 // Player afterburner is engaged
93 #define PLAYER_FLAGS_CUSTOM_TEXTUREcxx . . $ `Descent3/player_external.h:93:9`! 65536 // Player has a custom texture
94 #define PLAYER_FLAGS_THRUSTEDcxx . . $ `Descent3/player_external.h:94:9`! (1 << 17) // Player has thrusted this frame
95 #define PLAYER_FLAGS_BULLSEYEcxx . . $ `Descent3/player_external.h:95:9`! (1 << 18) // Bullseye reticle should light up
96 #define PLAYER_FLAGS_ZOOMEDcxx . . $ `Descent3/player_external.h:96:9`! (1 << 19) // Bullseye reticle should light up
97 #define PLAYER_FLAGS_REARVIEWcxx . . $ `Descent3/player_external.h:97:9`! (1 << 20) // Play is using rearview
98 #define PLAYER_FLAGS_SEND_MOVEMENTcxx . . $ `Descent3/player_external.h:98:9`! (1 << 21) // We need to tell the server about our movement
99 #define PLAYER_FLAGS_PLAYSOUNDMSGFORINVULNcxx . . $ `Descent3/player_external.h:99:9`! \
100 (1 << 22) // A sound and hud message should be displayed when invulnerability wears off
101
102 // Variables for weapon_fire_flags
103 #define WFF_SPRAYcxx . . $ `Descent3/player_external.h:103:9`! 1 // a spray weapon is firing
104 #define WFF_ON_OFFcxx . . $ `Descent3/player_external.h:104:9`! 2 // an on/off weapon is firing
105 #define WFF_FIREDcxx . . $ `Descent3/player_external.h:105:9`! 128 // fired this frame
106
107 // Define the two player weapons
108 #define PW_PRIMARYcxx . . $ `Descent3/player_external.h:108:9`! 0
109 #define PW_SECONDARYcxx . . $ `Descent3/player_external.h:109:9`! 1
110
111 // These are used to mask out various controls, put in initially for the training system
112 #define PCBF_FORWARDcxx . . $ `Descent3/player_external.h:112:9`! 1
113 #define PCBF_REVERSEcxx . . $ `Descent3/player_external.h:113:9`! 2
114 #define PCBF_LEFTcxx . . $ `Descent3/player_external.h:114:9`! 4
115 #define PCBF_RIGHTcxx . . $ `Descent3/player_external.h:115:9`! 8
116 #define PCBF_UPcxx . . $ `Descent3/player_external.h:116:9`! 16
117 #define PCBF_DOWNcxx . . $ `Descent3/player_external.h:117:9`! 32
118 #define PCBF_PITCHUPcxx . . $ `Descent3/player_external.h:118:9`! 64
119 #define PCBF_PITCHDOWNcxx . . $ `Descent3/player_external.h:119:9`! 128
120 #define PCBF_HEADINGLEFTcxx . . $ `Descent3/player_external.h:120:9`! 256
121 #define PCBF_HEADINGRIGHTcxx . . $ `Descent3/player_external.h:121:9`! 512
122 #define PCBF_BANKLEFTcxx . . $ `Descent3/player_external.h:122:9`! 1024
123 #define PCBF_BANKRIGHTcxx . . $ `Descent3/player_external.h:123:9`! 2048
124 #define PCBF_PRIMARYcxx . . $ `Descent3/player_external.h:124:9`! 4096
125 #define PCBF_SECONDARYcxx . . $ `Descent3/player_external.h:125:9`! 8192
126 #define PCBF_AFTERBURNERcxx . . $ `Descent3/player_external.h:126:9`! 16384
127
128 #endif