mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 05:11:34 +00:00
Forcing on triggerspecial_touch for slopes, because pain slopes and it would be a pain to handle this manually.
This commit is contained in:
parent
2d50dd1fd1
commit
6a2e101ebe
1 changed files with 4 additions and 0 deletions
|
@ -281,6 +281,7 @@ void P_SpawnSlope_Line(int linenum)
|
||||||
if(frontfloor || frontceil)
|
if(frontfloor || frontceil)
|
||||||
{
|
{
|
||||||
line->frontsector->hasslope = true; // Tell the software renderer that we're sloped
|
line->frontsector->hasslope = true; // Tell the software renderer that we're sloped
|
||||||
|
line->frontsector->flags |= SF_TRIGGERSPECIAL_TOUCH; // you're gonna want to get specials on contact
|
||||||
|
|
||||||
origin.z = line->backsector->floorheight;
|
origin.z = line->backsector->floorheight;
|
||||||
direction.x = nx;
|
direction.x = nx;
|
||||||
|
@ -407,6 +408,7 @@ void P_SpawnSlope_Line(int linenum)
|
||||||
if(backfloor || backceil)
|
if(backfloor || backceil)
|
||||||
{
|
{
|
||||||
line->backsector->hasslope = true; // Tell the software renderer that we're sloped
|
line->backsector->hasslope = true; // Tell the software renderer that we're sloped
|
||||||
|
line->backsector->flags |= SF_TRIGGERSPECIAL_TOUCH; // you're gonna want to get specials on contact
|
||||||
|
|
||||||
origin.z = line->frontsector->floorheight;
|
origin.z = line->frontsector->floorheight;
|
||||||
// Backsector
|
// Backsector
|
||||||
|
@ -599,6 +601,7 @@ void P_CopySectorSlope(line_t *line)
|
||||||
}
|
}
|
||||||
|
|
||||||
fsec->hasslope = true;
|
fsec->hasslope = true;
|
||||||
|
fsec->flags |= SF_TRIGGERSPECIAL_TOUCH; // you're gonna want to get specials on contact
|
||||||
|
|
||||||
line->special = 0; // Linedef was use to set slopes, it finished its job, so now make it a normal linedef
|
line->special = 0; // Linedef was use to set slopes, it finished its job, so now make it a normal linedef
|
||||||
}
|
}
|
||||||
|
@ -718,6 +721,7 @@ void P_ResetDynamicSlopes(void) {
|
||||||
*slopetoset = P_NewVertexSlope(lines[i].tag, lines[i].tag, lines[i].tag, flags);
|
*slopetoset = P_NewVertexSlope(lines[i].tag, lines[i].tag, lines[i].tag, flags);
|
||||||
|
|
||||||
sides[lines[i].sidenum[which]].sector->hasslope = true;
|
sides[lines[i].sidenum[which]].sector->hasslope = true;
|
||||||
|
sides[lines[i].sidenum[which]].sector->flags |= SF_TRIGGERSPECIAL_TOUCH; // you're gonna want to get specials on contact
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue