mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-29 08:05:46 +03:00
245 lines
6.5 KiB
C
245 lines
6.5 KiB
C
/*
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation; either version 2 of the License, or (at
|
|
* your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
* In addition, as a special exception, the author gives permission to
|
|
* link the code of this program with the Half-Life Game Engine ("HL
|
|
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
|
|
* L.L.C ("Valve"). You must obey the GNU General Public License in all
|
|
* respects for all of the code used other than the HL Engine and MODs
|
|
* from Valve. If you modify this file, you may extend this exception
|
|
* to your version of the file, but you are not obligated to do so. If
|
|
* you do not wish to do so, delete this exception statement from your
|
|
* version.
|
|
*
|
|
*/
|
|
|
|
#ifndef GAME_EVENT_H
|
|
#define GAME_EVENT_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
enum GameEventType
|
|
{
|
|
EVENT_INVALID = 0,
|
|
EVENT_WEAPON_FIRED,
|
|
EVENT_WEAPON_FIRED_ON_EMPTY,
|
|
EVENT_WEAPON_RELOADED,
|
|
EVENT_HE_GRENADE_EXPLODED,
|
|
EVENT_FLASHBANG_GRENADE_EXPLODED,
|
|
EVENT_SMOKE_GRENADE_EXPLODED,
|
|
EVENT_GRENADE_BOUNCED,
|
|
EVENT_BEING_SHOT_AT,
|
|
EVENT_PLAYER_BLINDED_BY_FLASHBANG,
|
|
EVENT_PLAYER_FOOTSTEP,
|
|
EVENT_PLAYER_JUMPED,
|
|
EVENT_PLAYER_DIED,
|
|
EVENT_PLAYER_LANDED_FROM_HEIGHT,
|
|
EVENT_PLAYER_TOOK_DAMAGE,
|
|
EVENT_HOSTAGE_DAMAGED,
|
|
EVENT_HOSTAGE_KILLED,
|
|
EVENT_DOOR,
|
|
EVENT_BREAK_GLASS,
|
|
EVENT_BREAK_WOOD,
|
|
EVENT_BREAK_METAL,
|
|
EVENT_BREAK_FLESH,
|
|
EVENT_BREAK_CONCRETE,
|
|
EVENT_BOMB_PLANTED,
|
|
EVENT_BOMB_DROPPED,
|
|
EVENT_BOMB_PICKED_UP,
|
|
EVENT_BOMB_BEEP,
|
|
EVENT_BOMB_DEFUSING,
|
|
EVENT_BOMB_DEFUSE_ABORTED,
|
|
EVENT_BOMB_DEFUSED,
|
|
EVENT_BOMB_EXPLODED,
|
|
EVENT_HOSTAGE_USED,
|
|
EVENT_HOSTAGE_RESCUED,
|
|
EVENT_ALL_HOSTAGES_RESCUED,
|
|
EVENT_VIP_ESCAPED,
|
|
EVENT_VIP_ASSASSINATED,
|
|
EVENT_TERRORISTS_WIN,
|
|
EVENT_CTS_WIN,
|
|
EVENT_ROUND_DRAW,
|
|
EVENT_ROUND_WIN,
|
|
EVENT_ROUND_LOSS,
|
|
EVENT_ROUND_START,
|
|
EVENT_PLAYER_SPAWNED,
|
|
EVENT_CLIENT_CORPSE_SPAWNED,
|
|
EVENT_BUY_TIME_START,
|
|
EVENT_PLAYER_LEFT_BUY_ZONE,
|
|
EVENT_DEATH_CAMERA_START,
|
|
EVENT_KILL_ALL,
|
|
EVENT_ROUND_TIME,
|
|
EVENT_DIE,
|
|
EVENT_KILL,
|
|
EVENT_HEADSHOT,
|
|
EVENT_KILL_FLASHBANGED,
|
|
EVENT_TUTOR_BUY_MENU_OPENNED,
|
|
EVENT_TUTOR_AUTOBUY,
|
|
EVENT_PLAYER_BOUGHT_SOMETHING,
|
|
EVENT_TUTOR_NOT_BUYING_ANYTHING,
|
|
EVENT_TUTOR_NEED_TO_BUY_PRIMARY_WEAPON,
|
|
EVENT_TUTOR_NEED_TO_BUY_PRIMARY_AMMO,
|
|
EVENT_TUTOR_NEED_TO_BUY_SECONDARY_AMMO,
|
|
EVENT_TUTOR_NEED_TO_BUY_ARMOR,
|
|
EVENT_TUTOR_NEED_TO_BUY_DEFUSE_KIT,
|
|
EVENT_TUTOR_NEED_TO_BUY_GRENADE,
|
|
EVENT_CAREER_TASK_DONE,
|
|
EVENT_START_RADIO_1,
|
|
EVENT_RADIO_COVER_ME,
|
|
EVENT_RADIO_YOU_TAKE_THE_POINT,
|
|
EVENT_RADIO_HOLD_THIS_POSITION,
|
|
EVENT_RADIO_REGROUP_TEAM,
|
|
EVENT_RADIO_FOLLOW_ME,
|
|
EVENT_RADIO_TAKING_FIRE,
|
|
EVENT_START_RADIO_2,
|
|
EVENT_RADIO_GO_GO_GO,
|
|
EVENT_RADIO_TEAM_FALL_BACK,
|
|
EVENT_RADIO_STICK_TOGETHER_TEAM,
|
|
EVENT_RADIO_GET_IN_POSITION_AND_WAIT,
|
|
EVENT_RADIO_STORM_THE_FRONT,
|
|
EVENT_RADIO_REPORT_IN_TEAM,
|
|
EVENT_START_RADIO_3,
|
|
EVENT_RADIO_AFFIRMATIVE,
|
|
EVENT_RADIO_ENEMY_SPOTTED,
|
|
EVENT_RADIO_NEED_BACKUP,
|
|
EVENT_RADIO_SECTOR_CLEAR,
|
|
EVENT_RADIO_IN_POSITION,
|
|
EVENT_RADIO_REPORTING_IN,
|
|
EVENT_RADIO_GET_OUT_OF_THERE,
|
|
EVENT_RADIO_NEGATIVE,
|
|
EVENT_RADIO_ENEMY_DOWN,
|
|
EVENT_END_RADIO,
|
|
EVENT_NEW_MATCH,
|
|
EVENT_PLAYER_CHANGED_TEAM,
|
|
EVENT_BULLET_IMPACT,
|
|
EVENT_GAME_COMMENCE,
|
|
EVENT_WEAPON_ZOOMED,
|
|
EVENT_HOSTAGE_CALLED_FOR_HELP,
|
|
NUM_GAME_EVENTS,
|
|
};
|
|
|
|
#ifdef DEFINE_EVENT_NAMES
|
|
|
|
/* size: 96 */
|
|
const char *GameEventName[NUM_GAME_EVENTS + 1] =
|
|
{
|
|
"EVENT_INVALID",
|
|
"EVENT_WEAPON_FIRED",
|
|
"EVENT_WEAPON_FIRED_ON_EMPTY",
|
|
"EVENT_WEAPON_RELOADED",
|
|
"EVENT_HE_GRENADE_EXPLODED",
|
|
"EVENT_FLASHBANG_GRENADE_EXPLODED",
|
|
"EVENT_SMOKE_GRENADE_EXPLODED",
|
|
"EVENT_GRENADE_BOUNCED",
|
|
"EVENT_BEING_SHOT_AT",
|
|
"EVENT_PLAYER_BLINDED_BY_FLASHBANG",
|
|
"EVENT_PLAYER_FOOTSTEP",
|
|
"EVENT_PLAYER_JUMPED",
|
|
"EVENT_PLAYER_DIED",
|
|
"EVENT_PLAYER_LANDED_FROM_HEIGHT",
|
|
"EVENT_PLAYER_TOOK_DAMAGE",
|
|
"EVENT_HOSTAGE_DAMAGED",
|
|
"EVENT_HOSTAGE_KILLED",
|
|
"EVENT_DOOR",
|
|
"EVENT_BREAK_GLASS",
|
|
"EVENT_BREAK_WOOD",
|
|
"EVENT_BREAK_METAL",
|
|
"EVENT_BREAK_FLESH",
|
|
"EVENT_BREAK_CONCRETE",
|
|
"EVENT_BOMB_PLANTED",
|
|
"EVENT_BOMB_DROPPED",
|
|
"EVENT_BOMB_PICKED_UP",
|
|
"EVENT_BOMB_BEEP",
|
|
"EVENT_BOMB_DEFUSING",
|
|
"EVENT_BOMB_DEFUSE_ABORTED",
|
|
"EVENT_BOMB_DEFUSED",
|
|
"EVENT_BOMB_EXPLODED",
|
|
"EVENT_HOSTAGE_USED",
|
|
"EVENT_HOSTAGE_RESCUED",
|
|
"EVENT_ALL_HOSTAGES_RESCUED",
|
|
"EVENT_VIP_ESCAPED",
|
|
"EVENT_VIP_ASSASSINATED",
|
|
"EVENT_TERRORISTS_WIN",
|
|
"EVENT_CTS_WIN",
|
|
"EVENT_ROUND_DRAW",
|
|
"EVENT_ROUND_WIN",
|
|
"EVENT_ROUND_LOSS",
|
|
"EVENT_ROUND_START",
|
|
"EVENT_PLAYER_SPAWNED",
|
|
"EVENT_CLIENT_CORPSE_SPAWNED",
|
|
"EVENT_BUY_TIME_START",
|
|
"EVENT_PLAYER_LEFT_BUY_ZONE",
|
|
"EVENT_DEATH_CAMERA_START",
|
|
"EVENT_KILL_ALL",
|
|
"EVENT_ROUND_TIME",
|
|
"EVENT_DIE",
|
|
"EVENT_KILL",
|
|
"EVENT_HEADSHOT",
|
|
"EVENT_KILL_FLASHBANGED",
|
|
"EVENT_TUTOR_BUY_MENU_OPENNED",
|
|
"EVENT_TUTOR_AUTOBUY",
|
|
"EVENT_PLAYER_BOUGHT_SOMETHING",
|
|
"EVENT_TUTOR_NOT_BUYING_ANYTHING",
|
|
"EVENT_TUTOR_NEED_TO_BUY_PRIMARY_WEAPON",
|
|
"EVENT_TUTOR_NEED_TO_BUY_PRIMARY_AMMO",
|
|
"EVENT_TUTOR_NEED_TO_BUY_SECONDARY_AMMO",
|
|
"EVENT_TUTOR_NEED_TO_BUY_ARMOR",
|
|
"EVENT_TUTOR_NEED_TO_BUY_DEFUSE_KIT",
|
|
"EVENT_TUTOR_NEED_TO_BUY_GRENADE",
|
|
"EVENT_CAREER_TASK_DONE",
|
|
"EVENT_START_RADIO_1",
|
|
"EVENT_RADIO_COVER_ME",
|
|
"EVENT_RADIO_YOU_TAKE_THE_POINT",
|
|
"EVENT_RADIO_HOLD_THIS_POSITION",
|
|
"EVENT_RADIO_REGROUP_TEAM",
|
|
"EVENT_RADIO_FOLLOW_ME",
|
|
"EVENT_RADIO_TAKING_FIRE",
|
|
"EVENT_START_RADIO_2",
|
|
"EVENT_RADIO_GO_GO_GO",
|
|
"EVENT_RADIO_TEAM_FALL_BACK",
|
|
"EVENT_RADIO_STICK_TOGETHER_TEAM",
|
|
"EVENT_RADIO_GET_IN_POSITION_AND_WAIT",
|
|
"EVENT_RADIO_STORM_THE_FRONT",
|
|
"EVENT_RADIO_REPORT_IN_TEAM",
|
|
"EVENT_START_RADIO_3",
|
|
"EVENT_RADIO_AFFIRMATIVE",
|
|
"EVENT_RADIO_ENEMY_SPOTTED",
|
|
"EVENT_RADIO_NEED_BACKUP",
|
|
"EVENT_RADIO_SECTOR_CLEAR",
|
|
"EVENT_RADIO_IN_POSITION",
|
|
"EVENT_RADIO_REPORTING_IN",
|
|
"EVENT_RADIO_GET_OUT_OF_THERE",
|
|
"EVENT_RADIO_NEGATIVE",
|
|
"EVENT_RADIO_ENEMY_DOWN",
|
|
"EVENT_END_RADIO",
|
|
"EVENT_NEW_MATCH",
|
|
"EVENT_PLAYER_CHANGED_TEAM",
|
|
"EVENT_BULLET_IMPACT",
|
|
"EVENT_GAME_COMMENCE",
|
|
"EVENT_WEAPON_ZOOMED",
|
|
"EVENT_HOSTAGE_CALLED_FOR_HELP",
|
|
NULL,
|
|
};
|
|
|
|
#else // DEFINE_EVENT_NAMES
|
|
|
|
extern const char *GameEventName[ NUM_GAME_EVENTS ];
|
|
|
|
#endif // DEFINE_EVENT_NAMES
|
|
|
|
#endif // GAME_EVENT_H
|