mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
Disable TRACE_PCross and TRACE_Impact on ZScript side
This commit is contained in:
parent
74b937620e
commit
ee1a8f71bb
2 changed files with 5 additions and 2 deletions
|
@ -996,6 +996,9 @@ DEFINE_ACTION_FUNCTION(DTracer, Trace)
|
|||
// say thanks to oversimplifying the user API.
|
||||
PARAM_INT(traceFlags);
|
||||
|
||||
// these are internal hacks.
|
||||
traceFlags &= ~(TRACE_PCross | TRACE_Impact);
|
||||
|
||||
// Trace(vector3 start, Sector sector, vector3 direction, double maxDist, ETraceFlags traceFlags)
|
||||
bool res = Trace(DVector3(start_x, start_y, start_z), sector, DVector3(direction_x, direction_y, direction_z), maxDist,
|
||||
(ActorFlag)0xFFFFFFFF, 0xFFFFFFFF, nullptr, self->Results, traceFlags, &DTracer::TraceCallback, self);
|
||||
|
|
|
@ -471,8 +471,8 @@ enum ETraceStatus
|
|||
enum ETraceFlags
|
||||
{
|
||||
TRACE_NoSky = 1, // Hitting the sky returns TRACE_HitNone
|
||||
TRACE_PCross = 2, // Trigger SPAC_PCROSS lines
|
||||
TRACE_Impact = 4, // Trigger SPAC_IMPACT lines
|
||||
//TRACE_PCross = 2, // Trigger SPAC_PCROSS lines
|
||||
//TRACE_Impact = 4, // Trigger SPAC_IMPACT lines
|
||||
TRACE_PortalRestrict = 8, // Cannot go through portals without a static link offset.
|
||||
TRACE_ReportPortals = 16 // Report any portal crossing to the TraceCallback
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue