This repository has been archived on 2022-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
Xash3DArchive/engine/common/pm_local.h

39 lines
1.4 KiB
C
Raw Normal View History

2011-05-09 22:00:00 +02:00
/*
pm_local.h - player move interface
Copyright (C) 2010 Uncle Mike
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
2010-08-12 22:00:00 +02:00
#ifndef PM_LOCAL_H
#define PM_LOCAL_H
#include "pm_defs.h"
typedef int (*pfnIgnore)( physent_t *pe ); // custom trace filter
//
// pm_trace.c
//
void Pmove_Init( void );
void PM_InitBoxHull( void );
2011-04-05 22:00:00 +02:00
hull_t *PM_HullForBsp( physent_t *pe, playermove_t *pmove, float *offset );
2012-02-11 21:00:00 +01:00
pmtrace_t PM_PlayerTraceExt( playermove_t *pm, vec3_t p1, vec3_t p2, int flags, int numents, physent_t *ents, int ignore_pe, pfnIgnore pmFilter );
int PM_TestPlayerPosition( playermove_t *pmove, vec3_t pos, pmtrace_t *ptrace, pfnIgnore pmFilter );
2010-08-12 22:00:00 +02:00
int PM_HullPointContents( hull_t *hull, int num, const vec3_t p );
//
// pm_surface.c
//
const char *PM_TraceTexture( physent_t *pe, vec3_t vstart, vec3_t vend );
2012-02-12 21:00:00 +01:00
msurface_t *PM_RecursiveSurfCheck( model_t *model, mnode_t *node, vec3_t p1, vec3_t p2 );
2010-08-12 22:00:00 +02:00
#endif//PM_LOCAL_H