2018-01-18 23:29:49 +00:00
|
|
|
#ifndef P_LTRACEDATA_H
|
|
|
|
#define P_LTRACEDATA_H
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
//
|
|
|
|
// Structure for passing detailed results of LineTrace to ZScript
|
|
|
|
//
|
|
|
|
//============================================================================
|
|
|
|
struct FLineTraceData
|
|
|
|
{
|
|
|
|
AActor *HitActor;
|
|
|
|
line_t *HitLine;
|
|
|
|
sector_t *HitSector;
|
|
|
|
F3DFloor *Hit3DFloor;
|
|
|
|
FTextureID HitTexture;
|
|
|
|
DVector3 HitLocation;
|
2018-01-28 16:45:36 +00:00
|
|
|
DVector3 HitDir;
|
2018-01-18 23:29:49 +00:00
|
|
|
double Distance;
|
|
|
|
int NumPortals;
|
|
|
|
int LineSide;
|
|
|
|
int LinePart;
|
|
|
|
int SectorPlane;
|
|
|
|
ETraceResult HitType;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|