2022-12-17 13:32:43 +01:00
|
|
|
/***
|
2013-08-30 13:34:05 -07:00
|
|
|
*
|
|
|
|
* Copyright (c) 1999, Valve LLC. All rights reserved.
|
|
|
|
*
|
|
|
|
* This product contains software technology licensed from Id
|
|
|
|
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
|
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use, distribution, and modification of this source code and/or resulting
|
|
|
|
* object code is restricted to non-commercial enhancements to products from
|
|
|
|
* Valve LLC. All other use, distribution, or modification is prohibited
|
|
|
|
* without written permission from Valve LLC.
|
|
|
|
*
|
|
|
|
****/
|
|
|
|
//
|
|
|
|
// cdll_int.h
|
|
|
|
//
|
2021-11-28 16:54:48 +01:00
|
|
|
// 4-23-98
|
2013-08-30 13:34:05 -07:00
|
|
|
// JOHN: client dll interface declarations
|
|
|
|
//
|
|
|
|
|
2021-11-18 19:17:53 +01:00
|
|
|
#pragma once
|
2013-08-30 13:34:05 -07:00
|
|
|
|
|
|
|
#include "const.h"
|
|
|
|
#include "steam/steamtypes.h"
|
|
|
|
#include "ref_params.h"
|
|
|
|
#include "r_efx.h"
|
|
|
|
#include "studio_event.h"
|
2021-11-18 17:50:02 +01:00
|
|
|
#include "common_types.h"
|
2013-08-30 13:34:05 -07:00
|
|
|
|
|
|
|
// this file is included by both the engine and the client-dll,
|
|
|
|
// so make sure engine declarations aren't done twice
|
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
typedef int HSPRITE; // handle to a graphic
|
2013-08-30 13:34:05 -07:00
|
|
|
|
|
|
|
#define SCRINFO_SCREENFLASH 1
|
2021-11-28 16:54:48 +01:00
|
|
|
#define SCRINFO_STRETCHED 2
|
2013-08-30 13:34:05 -07:00
|
|
|
|
|
|
|
typedef struct SCREENINFO_s
|
|
|
|
{
|
2021-11-28 16:54:48 +01:00
|
|
|
int iSize;
|
|
|
|
int iWidth;
|
|
|
|
int iHeight;
|
|
|
|
int iFlags;
|
|
|
|
int iCharHeight;
|
|
|
|
short charWidths[256];
|
2013-08-30 13:34:05 -07:00
|
|
|
} SCREENINFO;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct client_data_s
|
|
|
|
{
|
|
|
|
// fields that cannot be modified (ie. have no effect if changed)
|
2021-03-16 19:45:46 +01:00
|
|
|
Vector origin;
|
2013-08-30 13:34:05 -07:00
|
|
|
|
|
|
|
// fields that can be changed by the cldll
|
2021-03-16 19:45:46 +01:00
|
|
|
Vector viewangles;
|
2021-11-28 16:54:48 +01:00
|
|
|
int iWeaponBits;
|
|
|
|
// int iAccessoryBits;
|
|
|
|
float fov; // field of view
|
2013-08-30 13:34:05 -07:00
|
|
|
} client_data_t;
|
|
|
|
|
|
|
|
typedef struct client_sprite_s
|
|
|
|
{
|
|
|
|
char szName[64];
|
|
|
|
char szSprite[64];
|
|
|
|
int hspr;
|
|
|
|
int iRes;
|
2021-11-18 17:50:02 +01:00
|
|
|
Rect rc;
|
2013-08-30 13:34:05 -07:00
|
|
|
} client_sprite_t;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct hud_player_info_s
|
|
|
|
{
|
2021-11-28 16:54:48 +01:00
|
|
|
char* name;
|
2013-08-30 13:34:05 -07:00
|
|
|
short ping;
|
2021-11-28 16:54:48 +01:00
|
|
|
byte thisplayer; // true if this is the calling player
|
2013-08-30 13:34:05 -07:00
|
|
|
|
|
|
|
byte spectator;
|
|
|
|
byte packetloss;
|
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
char* model;
|
2013-08-30 13:34:05 -07:00
|
|
|
short topcolor;
|
|
|
|
short bottomcolor;
|
|
|
|
|
|
|
|
uint64 m_nSteamID;
|
|
|
|
} hud_player_info_t;
|
|
|
|
|
|
|
|
#include "in_buttons.h"
|
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
#define CLDLL_INTERFACE_VERSION 7
|
2013-08-30 13:34:05 -07:00
|
|
|
|
|
|
|
//#include "server.h" // server_static_t define for apiproxy
|
|
|
|
#include "APIProxy.h"
|