3 * ===============================================================
4 * CS:S DM, Copyright (C) 2004-2007 AlliedModders LLC.
5 * By David "BAILOPAN" Anderson
7 * ===============================================================
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or (at
12 * your option) any later version.
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; see the file COPYING; if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
27 #ifndef _INCLUDE_CSSDM_EVENTS_H_
28 #define _INCLUDE_CSSDM_EVENTS_H_
30 #include <sm_platform.h>
32 #include <igameevents.h>
34 #define DECLARE_EVENT(name) \
35 class cls_event_##name : public IGameEventListener2 \
38 virtual void FireGameEvent(IGameEvent *event); \
40 extern cls_event_##name g_cls_event_##name;
42 DECLARE_EVENT(player_death);
43 DECLARE_EVENT(player_spawn);
44 DECLARE_EVENT(player_team);
45 DECLARE_EVENT(server_shutdown);
46 DECLARE_EVENT(round_start);
47 DECLARE_EVENT(round_end);
48 DECLARE_EVENT(item_pickup);
50 void DM_ClearRagdollTimers();
51 void OnClientCommand_Post(edict_t *edict);
52 void OnClientDropWeapons(CBaseEntity *pEntity);
53 void OnClientDroppedWeapon(CBaseEntity *pEntity, CBaseEntity *pWeapon);
55 #endif //_INCLUDE_CSSDM_EVENTS_H_