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
[email protected]
     1
/**
[email protected]
     2
 * vim: set ts=4 :
[email protected]
     3
 * ===============================================================
[email protected]
     4
 * CS:S DM, Copyright (C) 2004-2007 AlliedModders LLC. 
[email protected]
     5
 * By David "BAILOPAN" Anderson
[email protected]
     6
 * All rights reserved.
[email protected]
     7
 * ===============================================================
[email protected]
     8
 *
[email protected]
     9
 * This program is free software; you can redistribute it and/or modify
[email protected]
    10
 * it under the terms of the GNU General Public License as published by
[email protected]
    11
 * the Free Software Foundation; either version 2 of the License, or (at
[email protected]
    12
 * your option) any later version.
[email protected]
    13
 * 
[email protected]
    14
 * This program is distributed in the hope that it will be useful, but
[email protected]
    15
 * WITHOUT ANY WARRANTY; without even the implied warranty of
[email protected]
    16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
[email protected]
    17
 * General Public License for more details.
[email protected]
    18
 * 
[email protected]
    19
 * You should have received a copy of the GNU General Public License
[email protected]
    20
 * along with this program; see the file COPYING; if not, write to the
[email protected]
    21
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
[email protected]
    22
 * MA 02110-1301 USA
[email protected]
    23
 * 
[email protected]
    24
 * Version: $Id$
[email protected]
    25
 */
[email protected]
    26
[email protected]
    27
#ifndef _INCLUDE_CSSDM_EVENTS_H_
[email protected]
    28
#define _INCLUDE_CSSDM_EVENTS_H_
[email protected]
    29
[email protected]
    30
#include <sm_platform.h>
[email protected]
    31
#include <edict.h>
[email protected]
    32
#include <igameevents.h>
[email protected]
    33
[email protected]
    34
#if SOURCE_ENGINE == SE_CSGO
[email protected]
    35
#define DECLARE_EVENT(name) \
[email protected]
    36
	class cls_event_##name : public IGameEventListener2 \
[email protected]
    37
	{ \
[email protected]
    38
	public: \
[email protected]
    39
		virtual void FireGameEvent(IGameEvent *event); \
[email protected]
    40
		virtual int	 GetEventDebugID( void ) { return EVENT_DEBUG_ID_INIT; } \
[email protected]
    41
	}; \
[email protected]
    42
	extern cls_event_##name g_cls_event_##name;
[email protected]
    43
#else
[email protected]
    44
#define DECLARE_EVENT(name) \
[email protected]
    45
	class cls_event_##name : public IGameEventListener2 \
[email protected]
    46
	{ \
[email protected]
    47
	public: \
[email protected]
    48
		virtual void FireGameEvent(IGameEvent *event); \
[email protected]
    49
	}; \
[email protected]
    50
	extern cls_event_##name g_cls_event_##name;
[email protected]
    51
#endif
[email protected]
    52
[email protected]
    53
DECLARE_EVENT(player_death);
[email protected]
    54
DECLARE_EVENT(player_spawn);
[email protected]
    55
DECLARE_EVENT(player_team);
[email protected]
    56
DECLARE_EVENT(server_shutdown);
[email protected]
    57
DECLARE_EVENT(round_start);
[email protected]
    58
DECLARE_EVENT(round_end);
[email protected]
    59
DECLARE_EVENT(item_pickup);
[email protected]
    60
[email protected]
    61
class CCommand;
[email protected]
    62
[email protected]
    63
void DM_ClearRagdollTimers();
[email protected]
    64
void OnClientCommand_Post(edict_t *edict, const CCommand &args);
[email protected]
    65
void OnClientDropWeapons(CBaseEntity *pEntity);
[email protected]
    66
void OnClientDroppedWeapon(CBaseEntity *pEntity, CBaseEntity *pWeapon);
[email protected]
    67
[email protected]
    68
#endif //_INCLUDE_CSSDM_EVENTS_H_