2022-12-17 13:32:43 +01:00
|
|
|
/***
|
2013-08-30 13:34:05 -07:00
|
|
|
*
|
|
|
|
* Copyright (c) 1996-2002, 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.
|
|
|
|
*
|
|
|
|
****/
|
2021-11-18 19:31:43 +01:00
|
|
|
|
2013-08-30 13:34:05 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define EVENT_API_VERSION 1
|
|
|
|
|
|
|
|
typedef struct event_api_s
|
|
|
|
{
|
2021-11-28 16:54:48 +01:00
|
|
|
int version;
|
|
|
|
void (*EV_PlaySound)(int ent, float* origin, int channel, const char* sample, float volume, float attenuation, int fFlags, int pitch);
|
|
|
|
void (*EV_StopSound)(int ent, int channel, const char* sample);
|
|
|
|
int (*EV_FindModelIndex)(const char* pmodel);
|
|
|
|
int (*EV_IsLocal)(int playernum);
|
|
|
|
int (*EV_LocalPlayerDucking)(void);
|
|
|
|
void (*EV_LocalPlayerViewheight)(float*);
|
|
|
|
void (*EV_LocalPlayerBounds)(int hull, float* mins, float* maxs);
|
|
|
|
int (*EV_IndexFromTrace)(struct pmtrace_s* pTrace);
|
|
|
|
struct physent_s* (*EV_GetPhysent)(int idx);
|
|
|
|
void (*EV_SetUpPlayerPrediction)(int dopred, int bIncludeLocalClient);
|
|
|
|
void (*EV_PushPMStates)(void);
|
|
|
|
void (*EV_PopPMStates)(void);
|
|
|
|
void (*EV_SetSolidPlayers)(int playernum);
|
|
|
|
void (*EV_SetTraceHull)(int hull);
|
|
|
|
void (*EV_PlayerTrace)(float* start, float* end, int traceFlags, int ignore_pe, struct pmtrace_s* tr);
|
|
|
|
void (*EV_WeaponAnimation)(int sequence, int body);
|
|
|
|
unsigned short (*EV_PrecacheEvent)(int type, const char* psz);
|
|
|
|
void (*EV_PlaybackEvent)(int flags, const struct edict_s* pInvoker, unsigned short eventindex, float delay, float* origin, float* angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2);
|
|
|
|
const char* (*EV_TraceTexture)(int ground, float* vstart, float* vend);
|
|
|
|
void (*EV_StopAllSounds)(int entnum, int entchannel);
|
|
|
|
void (*EV_KillEvents)(int entnum, const char* eventname);
|
2013-08-30 13:34:05 -07:00
|
|
|
} event_api_t;
|
|
|
|
|
|
|
|
extern event_api_t eventapi;
|