| 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_ |
| 64 | |
| 65 | #define N_PLAYER_GUNS 8 |
| 66 | |
| 67 | // Initial player stat values |
| 68 | #define INITIAL_ENERGY 100 // 100% energy to start |
| 69 | #define INITIAL_SHIELDS 100 // 100% shields to start |
| 70 | |
| 71 | #define MAX_ENERGY 200 // go up to 200 |
| 72 | #define MAX_SHIELDS 200 |
| 73 | |
| 74 | // Observer modes |
| 75 | #define OBSERVER_MODE_ROAM 0 |
| 76 | #define OBSERVER_MODE_PIGGYBACK 1 |
| 77 | |
| 78 | // Values for special flags |
| 79 | #define PLAYER_FLAGS_INVULNERABLE 1 // Player is invincible |
| 80 | #define PLAYER_FLAGS_DYING 4 // Is this player in the middle of dying? |
| 81 | #define PLAYER_FLAGS_DEAD 8 // The player is just sitting there dead. |
| 82 | #define PLAYER_FLAGS_UNUSED 16 // ???? |
| 83 | #define PLAYER_FLAGS_UNUSED1 32 // ???? |
| 84 | #define PLAYER_FLAGS_UNUSED2 64 // ???? |
| 85 | #define PLAYER_FLAGS_UNUSED3 128 // ???? |
| 86 | #define PLAYER_FLAGS_UNUSED4 256 // ???? |
| 87 | #define PLAYER_FLAGS_UNUSED5 512 // ???? |
| 88 | #define PLAYER_FLAGS_UNUSED6 1024 // ???? |
| 89 | #define PLAYER_FLAGS_AFTERBURNER 4096 // Player has an afterburner |
| 90 | #define PLAYER_FLAGS_HEADLIGHT 8192 // Player has headlight boost |
| 91 | #define PLAYER_FLAGS_HEADLIGHT_STOLEN 16384 // is the headlight stolen? |
| 92 | #define PLAYER_FLAGS_AFTERBURN_ON 32768 // Player afterburner is engaged |
| 93 | #define PLAYER_FLAGS_CUSTOM_TEXTURE 65536 // Player has a custom texture |
| 94 | #define PLAYER_FLAGS_THRUSTED (1 << 17) // Player has thrusted this frame |
| 95 | #define PLAYER_FLAGS_BULLSEYE (1 << 18) // Bullseye reticle should light up |
| 96 | #define PLAYER_FLAGS_ZOOMED (1 << 19) // Bullseye reticle should light up |
| 97 | #define PLAYER_FLAGS_REARVIEW (1 << 20) // Play is using rearview |
| 98 | #define PLAYER_FLAGS_SEND_MOVEMENT (1 << 21) // We need to tell the server about our movement |
| 99 | #define PLAYER_FLAGS_PLAYSOUNDMSGFORINVULN \ |
| 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_SPRAY 1 // a spray weapon is firing |
| 104 | #define WFF_ON_OFF 2 // an on/off weapon is firing |
| 105 | #define WFF_FIRED 128 // fired this frame |
| 106 | |
| 107 | // Define the two player weapons |
| 108 | #define PW_PRIMARY 0 |
| 109 | #define PW_SECONDARY 1 |
| 110 | |
| 111 | // These are used to mask out various controls, put in initially for the training system |
| 112 | #define PCBF_FORWARD 1 |
| 113 | #define PCBF_REVERSE 2 |
| 114 | #define PCBF_LEFT 4 |
| 115 | #define PCBF_RIGHT 8 |
| 116 | #define PCBF_UP 16 |
| 117 | #define PCBF_DOWN 32 |
| 118 | #define PCBF_PITCHUP 64 |
| 119 | #define PCBF_PITCHDOWN 128 |
| 120 | #define PCBF_HEADINGLEFT 256 |
| 121 | #define PCBF_HEADINGRIGHT 512 |
| 122 | #define PCBF_BANKLEFT 1024 |
| 123 | #define PCBF_BANKRIGHT 2048 |
| 124 | #define PCBF_PRIMARY 4096 |
| 125 | #define PCBF_SECONDARY 8192 |
| 126 | #define PCBF_AFTERBURNER 16384 |
| 127 | |
| 128 | #endif |