cssdm_players.h
author Ruben Gonzalez <drifter01620@gmail.com>
Wed Oct 01 11:50:24 2014 -0400 (2014-10-01)
changeset 193 277c856152b0
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_PLAYERS_H_
[email protected]
    28
#define _INCLUDE_CSSDM_PLAYERS_H_
[email protected]
    29
[email protected]
    30
#include "smsdk_ext.h"
[email protected]
    31
#include <iplayerinfo.h>
[email protected]
    32
[email protected]
    33
struct dm_player_t
[email protected]
    34
{
[email protected]
    35
	edict_t *pEdict;
[email protected]
    36
	CBaseEntity *pEntity;
[email protected]
    37
	IPlayerInfo *pInfo;
[email protected]
    38
	IBotController *pBot;
[email protected]
    39
	ITimer *respawn_timer;
[email protected]
    40
	int userid;
[email protected]
    41
	bool is_spawned;
[email protected]
    42
	bool will_respawn_on_class;
[email protected]
    43
};
[email protected]
    44
[email protected]
    45
class ClientListener : public IClientListener
[email protected]
    46
{
[email protected]
    47
public:
[email protected]
    48
	void OnClientConnected(int client);
[email protected]
    49
	void OnClientPutInServer(int client);
[email protected]
    50
	void OnClientDisconnecting(int client);
[email protected]
    51
};
[email protected]
    52
[email protected]
    53
dm_player_t *DM_GetPlayer(int client);
[email protected]
    54
[email protected]
    55
extern ClientListener g_ClientListener;
[email protected]
    56
[email protected]
    57
#endif //_INCLUDE_CSSDM_PLAYERS_H_