Add toggle for action 439 to use backside textures

This commit is contained in:
spherallic 2022-09-17 11:40:44 +02:00
parent aaae90a5e3
commit cd85240ec3
4 changed files with 13 additions and 2 deletions

View file

@ -2481,6 +2481,7 @@ linedeftypes
prefix = "(439)"; prefix = "(439)";
flags8text = "[3] Set delay by backside sector"; flags8text = "[3] Set delay by backside sector";
flags64text = "[6] Only existing"; flags64text = "[6] Only existing";
flags8192text = "[13] Use backside textures";
} }
440 440
@ -6949,7 +6950,7 @@ thingtypes
{ {
color = 10; // Green color = 10; // Green
title = "Tutorial"; title = "Tutorial";
799 799
{ {
title = "Tutorial Plant"; title = "Tutorial Plant";

View file

@ -2593,7 +2593,7 @@ udmf
} }
} }
} }
190 190
{ {
title = "Rising"; title = "Rising";
@ -4588,6 +4588,12 @@ udmf
type = 11; type = 11;
enum = "yesno"; enum = "yesno";
} }
arg3
{
title = "Use backside textures?";
type = 11;
enum = "noyes";
}
} }
440 440

View file

@ -5198,6 +5198,7 @@ static void P_ConvertBinaryLinedefTypes(void)
lines[i].args[0] = tag; lines[i].args[0] = tag;
lines[i].args[1] = TMSD_FRONTBACK; lines[i].args[1] = TMSD_FRONTBACK;
lines[i].args[2] = !!(lines[i].flags & ML_NOCLIMB); lines[i].args[2] = !!(lines[i].flags & ML_NOCLIMB);
lines[i].args[3] = !!(lines[i].flags & ML_EFFECT6);
break; break;
case 441: //Condition set trigger case 441: //Condition set trigger
lines[i].args[0] = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS; lines[i].args[0] = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS;

View file

@ -2906,6 +2906,9 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
if (always || this->bottomtexture) this->bottomtexture = set->bottomtexture; if (always || this->bottomtexture) this->bottomtexture = set->bottomtexture;
} }
if (line->args[3] && lines[linenum].sidenum[1] != 0xffff)
set = &sides[line->sidenum[1]]; // Use back side textures
// Back side // Back side
if (line->args[1] != TMSD_FRONT && lines[linenum].sidenum[1] != 0xffff) if (line->args[1] != TMSD_FRONT && lines[linenum].sidenum[1] != 0xffff)
{ {