2018-01-19 18:00:32 +01:00
|
|
|
//========= Copyright (c) 1996-2002, Valve LLC, All rights reserved. ============
|
2016-06-04 15:24:23 +02:00
|
|
|
//
|
|
|
|
// Purpose:
|
|
|
|
//
|
|
|
|
// $NoKeywords: $
|
|
|
|
//=============================================================================
|
|
|
|
|
|
|
|
// eventscripts.h
|
2017-12-10 21:40:41 +01:00
|
|
|
#pragma once
|
2016-06-04 15:24:23 +02:00
|
|
|
#if !defined ( EVENTSCRIPTSH )
|
|
|
|
#define EVENTSCRIPTSH
|
|
|
|
|
|
|
|
// defaults for clientinfo messages
|
|
|
|
#define DEFAULT_VIEWHEIGHT 28
|
|
|
|
#define VEC_DUCK_VIEW 12
|
|
|
|
|
|
|
|
#define FTENT_FADEOUT 0x00000080
|
|
|
|
|
|
|
|
// Some of these are HL/TFC specific?
|
|
|
|
void EV_EjectBrass( float *origin, float *velocity, float rotation, int model, int soundtype );
|
|
|
|
void EV_GetGunPosition( struct event_args_s *args, float *pos, float *origin );
|
|
|
|
void EV_GetDefaultShellInfo( struct event_args_s *args, float *origin, float *velocity, float *ShellVelocity, float *ShellOrigin, float *forward, float *right, float *up, float forwardScale, float upScale, float rightScale );
|
|
|
|
qboolean EV_IsLocal( int idx );
|
|
|
|
qboolean EV_IsPlayer( int idx );
|
|
|
|
void EV_CreateTracer( float *start, float *end );
|
|
|
|
|
|
|
|
struct cl_entity_s *GetEntity( int idx );
|
|
|
|
struct cl_entity_s *GetViewEntity( void );
|
|
|
|
void EV_MuzzleFlash( void );
|
|
|
|
#endif // EVENTSCRIPTSH
|