| 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 | * $Source: $ |
| 21 | * $Revision: 9 $ |
| 22 | * $Author: Jeff $ |
| 23 | * $Date: 7/13/99 10:04a $ |
| 24 | * |
| 25 | * D3 Events moved from D3OsiEvents.h |
| 26 | * |
| 27 | * $Log: /DescentIII/Main/lib/d3events.h $ |
| 28 | * |
| 29 | * 9 7/13/99 10:04a Jeff |
| 30 | * text taunt token decoding |
| 31 | * |
| 32 | * 8 5/10/99 2:42a Jeff |
| 33 | * added event/function to get the team of a connecting player |
| 34 | * |
| 35 | * 7 5/08/99 4:30a Jeff |
| 36 | * fixed sequencing bug where clients never got a level end event for the |
| 37 | * multiplayer games |
| 38 | * |
| 39 | * 6 3/22/99 6:20p Jeff |
| 40 | * added 2 more audio taunts. a mulitplayer event when someone plays an |
| 41 | * audio taunt. option to disable audio taunts. |
| 42 | * |
| 43 | * 5 2/07/99 1:19a Jeff |
| 44 | * added new multiplayer game events EVT_GAMEOBJKILLED and |
| 45 | * EVT_GAMEOBJDESTROYED |
| 46 | * |
| 47 | * 4 1/18/99 12:04a Jeff |
| 48 | * added some new events |
| 49 | * |
| 50 | * 3 1/15/99 8:29p Jeff |
| 51 | * updates to powerball |
| 52 | * |
| 53 | * 2 1/15/99 3:57a Jeff |
| 54 | * added 2 new events (for weapon collisions) |
| 55 | * |
| 56 | * 1 1/08/99 4:14p Samir |
| 57 | * |
| 58 | */ |
| 59 | |
| 60 | #ifndef D3EVENTS_H |
| 61 | #define D3EVENTS_H |
| 62 | |
| 63 | // game events. |
| 64 | |
| 65 | #define EVT_GAMEPLAYERKILLED 0x500 // called in game script when a player gets killed |
| 66 | #define EVT_GAMEPLAYEREXPLODED 0x501 // called in game script when a player explodes |
| 67 | #define EVT_GAMECOLLIDE 0x502 // called in game script when 2 object collide (one of the two must be player or robot) |
| 68 | #define EVT_GAMEPLAYERCHANGESEG \ |
| 69 | 0x503 // called when a player changes rooms or 'large' terrain cell (8x8 terrain cell block) |
| 70 | #define EVT_GAMEPLAYERENTERSGAME 0x504 // called when a player enters the game |
| 71 | #define EVT_GAMEPLAYERDISCONNECT 0x505 // called when a player disconnects from the game |
| 72 | #define EVT_GAMECREATED 0x506 // called when a server creates a game |
| 73 | #define EVT_GAMELEVELCHANGE 0x507 // called when the server changes a level |
| 74 | #define EVT_GAMELEVELSTART 0x508 // called when the server starts a new level |
| 75 | #define EVT_GAMEOBJECTSHIELDSCHANGED 0x510 // called when an object's shields changes (higher or lower) |
| 76 | #define EVT_GAMECHECKBAN 0x511 // called to the dlls with a network address to determine if a player is banned |
| 77 | #define EVT_GAMEDOCONTROLS 0x512 // called to the multiplayer games so they can do any controller related movement |
| 78 | #define EVT_GAMEWALLCOLLIDE 0x513 // called when there is a collision between an object and a wall |
| 79 | #define EVT_GAMEOBJCHANGESEG 0x514 // called when an object (other than OBJ_PLAYER) changes room/segment |
| 80 | #define EVT_GAMEOBJDESTROYED 0x515 // called when an object is about to be deleted |
| 81 | #define EVT_GAMEOBJKILLED 0x516 // called when an object was killed by another object |
| 82 | #define EVT_GAME_GET_PLAYER_TEAM 0x517 // called when the game needs to get the team of a player |
| 83 | |
| 84 | // Multiplayer client events |
| 85 | #define EVT_CLIENT_INTERVAL 0x600 // called every frame |
| 86 | #define EVT_CLIENT_AI 0x601 // called every frame for AI info |
| 87 | #define EVT_CLIENT_DAMAGED 0x602 // called when object is damaged |
| 88 | #define EVT_CLIENT_COLLIDE 0x603 // called when object collides with something |
| 89 | #define EVT_CLIENT_CREATED 0x604 // called when object created |
| 90 | #define EVT_CLIENT_DESTROY 0x605 // called when object destroyed |
| 91 | #define EVT_CLIENT_TIMER 0x606 // called when a timer event is signalled |
| 92 | #define EVT_CLIENT_USE 0x607 // called when item is selected for use from inventory |
| 93 | #define EVT_CLIENT_GAMEPLAYERKILLED 0x608 // called in game script when a player gets killed |
| 94 | #define EVT_CLIENT_GAMEPLAYEREXPLODED 0x609 // called in game script when a player explodes |
| 95 | #define EVT_CLIENT_GAMECOLLIDE \ |
| 96 | 0x60A // called in game script when 2 object collide (one of the two must be player or robot) |
| 97 | #define EVT_CLIENT_GAMEPLAYERCHANGESEG \ |
| 98 | 0x60B // called when a player changes rooms or 'large' terrain cell (8x8 terrain cell block) |
| 99 | #define EVT_CLIENT_GAMEPLAYERENTERSGAME 0x60C // called when a player enters the game |
| 100 | #define EVT_CLIENT_GAMEPLAYERDISCONNECT 0x60D // called when a player disconnects from the game |
| 101 | #define EVT_CLIENT_GAMECREATED 0x60E // called when a multiplayer game is created |
| 102 | #define EVT_CLIENT_GAMELEVELCHANGE 0x60F // called when the server changes a level |
| 103 | #define EVT_CLIENT_GAMESPECIALPACKET 0x610 // called when a special packet has arrived |
| 104 | #define EVT_CLIENT_HUD_INTERVAL 0x611 // called once a frame when the hud is being drawn |
| 105 | #define EVT_CLIENT_KEYPRESS 0x612 // called whenever a keypress is made |
| 106 | #define EVT_CLIENT_INPUT_STRING 0x613 // called when a player types in a message |
| 107 | #define EVT_CLIENT_GAMELEVELSTART 0x614 // called when the server starts a new level |
| 108 | #define EVT_CLIENT_GAMELEVELEND 0x615 // called when the server ends a level |
| 109 | #define EVT_CLIENT_GAMEPOSTLEVELRESULTS 0x616 // called when the dll needs to display the post level results |
| 110 | #define EVT_CLIENT_GAMEOBJECTSHIELDSCHANGED 0x617 // called when an object's shields changes (higher or lower) |
| 111 | #define EVT_CLIENT_LEVELSTART EVT_CLIENT_CREATED |
| 112 | #define EVT_CLIENT_LEVELEND EVT_CLIENT_DESTROY |
| 113 | #define EVT_CLIENT_CHANGESEG 0x618 // called when an object changes rooms. |
| 114 | #define EVT_CLIENT_SHOWUI 0x619 // The game is allowing the client DLL to show UI windows |
| 115 | #define EVT_WEAPONFIRED 0x620 // called whenever a weapon is fired |
| 116 | #define EVT_CLIENT_GAMEPLAYERENTERSOBSERVER 0x621 // A player is entering observer mode |
| 117 | #define EVT_CLIENT_GAMEPLAYEREXITSOBSERVER 0x622 // A player is exiting observer mode |
| 118 | #define EVT_CLIENT_GETCOLOREDNAME 0x623 // DLL is telling game what color to draw the names in |
| 119 | #define EVT_GAME_INTERVAL 0x624 // The interval frame for a game |
| 120 | #define EVT_GAME_DISCONNECTED 0x625 // Event called if you disconnect from the server |
| 121 | #define EVT_CLIENT_GAMEWALLCOLLIDE 0x626 // called when there is a collision between an object and a wall |
| 122 | #define EVT_CLIENT_GAMEOBJCHANGESEG 0x627 // called when an object (other than OBJ_PLAYER) changes room/segment |
| 123 | #define EVT_CLIENT_GAMEOBJDESTROYED 0x628 // called when an object is about to be killed |
| 124 | #define EVT_CLIENT_GAMEOBJKILLED 0x629 // called when an object was killed by another object |
| 125 | #define EVT_CLIENT_PLAYERPLAYSAUDIOTAUNT 0x62A // called when a player is playing an audio taunt |
| 126 | #define EVT_CLIENT_DECODETEXTMACRO 0x62B // called when a player uses a text macro |
| 127 | #endif |