mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add toggle for linedef action 401 to not change the ceiling texture.
This commit is contained in:
parent
1a12b7b58e
commit
6cfe9ad4b3
2 changed files with 12 additions and 6 deletions
|
|
@ -1760,7 +1760,7 @@ linedeftypes
|
|||
title = "Set Tagged Sector's Floor Height/Texture";
|
||||
prefix = "(400)";
|
||||
flags8text = "[3] Set delay by backside sector";
|
||||
flags64text = "[6] Keep floor flat";
|
||||
flags64text = "[6] Don't change floor texture";
|
||||
}
|
||||
|
||||
401
|
||||
|
|
@ -1768,6 +1768,7 @@ linedeftypes
|
|||
title = "Set Tagged Sector's Ceiling Height/Texture";
|
||||
prefix = "(401)";
|
||||
flags8text = "[3] Set delay by backside sector";
|
||||
flags64text = "[6] Don't change ceiling texture";
|
||||
}
|
||||
|
||||
402
|
||||
|
|
@ -1855,7 +1856,7 @@ linedeftypes
|
|||
prefix = "(403)";
|
||||
flags2text = "[1] Trigger linedef executor";
|
||||
flags8text = "[3] Set delay by backside sector";
|
||||
flags64text = "[6] Change floor flat";
|
||||
flags64text = "[6] Change floor texture";
|
||||
}
|
||||
|
||||
404
|
||||
|
|
@ -1864,7 +1865,7 @@ linedeftypes
|
|||
prefix = "(404)";
|
||||
flags2text = "[1] Trigger linedef executor";
|
||||
flags8text = "[3] Set delay by backside sector";
|
||||
flags64text = "[6] Change ceiling flat";
|
||||
flags64text = "[6] Change ceiling texture";
|
||||
}
|
||||
|
||||
405
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ void T_MoveCeiling(ceiling_t *ceiling)
|
|||
switch (ceiling->type)
|
||||
{
|
||||
case instantMoveCeilingByFrontSector:
|
||||
if (ceiling->texture > -1)
|
||||
ceiling->sector->ceilingpic = ceiling->texture;
|
||||
ceiling->sector->ceilingdata = NULL;
|
||||
ceiling->sector->ceilspeed = 0;
|
||||
|
|
@ -186,6 +187,7 @@ void T_MoveCeiling(ceiling_t *ceiling)
|
|||
break;
|
||||
|
||||
case instantMoveCeilingByFrontSector:
|
||||
if (ceiling->texture > -1)
|
||||
ceiling->sector->ceilingpic = ceiling->texture;
|
||||
ceiling->sector->ceilingdata = NULL;
|
||||
ceiling->sector->ceilspeed = 0;
|
||||
|
|
@ -512,6 +514,9 @@ INT32 EV_DoCeiling(line_t *line, ceiling_e type)
|
|||
ceiling->direction = -1;
|
||||
ceiling->bottomheight = line->frontsector->ceilingheight;
|
||||
}
|
||||
if (line->flags & ML_NOCLIMB)
|
||||
ceiling->texture = -1;
|
||||
else
|
||||
ceiling->texture = line->frontsector->ceilingpic;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue