cssdm_events.h
author Ruben Gonzalez <drifter01620@gmail.com>
Wed Oct 01 11:50:24 2014 -0400 (2014-10-01)
changeset 193 277c856152b0
parent 47 c53e1d3f3da0
permissions -rw-r--r--
Update linix CS:GO gamedata
     1 /**
     2  * vim: set ts=4 :
     3  * ===============================================================
     4  * CS:S DM, Copyright (C) 2004-2007 AlliedModders LLC. 
     5  * By David "BAILOPAN" Anderson
     6  * All rights reserved.
     7  * ===============================================================
     8  *
     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.
    13  * 
    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.
    18  * 
    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,
    22  * MA 02110-1301 USA
    23  * 
    24  * Version: $Id$
    25  */
    26 
    27 #ifndef _INCLUDE_CSSDM_EVENTS_H_
    28 #define _INCLUDE_CSSDM_EVENTS_H_
    29 
    30 #include <sm_platform.h>
    31 #include <edict.h>
    32 #include <igameevents.h>
    33 
    34 #if SOURCE_ENGINE == SE_CSGO
    35 #define DECLARE_EVENT(name) \
    36 	class cls_event_##name : public IGameEventListener2 \
    37 	{ \
    38 	public: \
    39 		virtual void FireGameEvent(IGameEvent *event); \
    40 		virtual int	 GetEventDebugID( void ) { return EVENT_DEBUG_ID_INIT; } \
    41 	}; \
    42 	extern cls_event_##name g_cls_event_##name;
    43 #else
    44 #define DECLARE_EVENT(name) \
    45 	class cls_event_##name : public IGameEventListener2 \
    46 	{ \
    47 	public: \
    48 		virtual void FireGameEvent(IGameEvent *event); \
    49 	}; \
    50 	extern cls_event_##name g_cls_event_##name;
    51 #endif
    52 
    53 DECLARE_EVENT(player_death);
    54 DECLARE_EVENT(player_spawn);
    55 DECLARE_EVENT(player_team);
    56 DECLARE_EVENT(server_shutdown);
    57 DECLARE_EVENT(round_start);
    58 DECLARE_EVENT(round_end);
    59 DECLARE_EVENT(item_pickup);
    60 
    61 class CCommand;
    62 
    63 void DM_ClearRagdollTimers();
    64 void OnClientCommand_Post(edict_t *edict, const CCommand &args);
    65 void OnClientDropWeapons(CBaseEntity *pEntity);
    66 void OnClientDroppedWeapon(CBaseEntity *pEntity, CBaseEntity *pWeapon);
    67 
    68 #endif //_INCLUDE_CSSDM_EVENTS_H_