- added UDMF_fields for sector plane reflectiveness.
This commit is contained in:
parent
80f1661931
commit
6322c81719
4 changed files with 23 additions and 0 deletions
|
|
@ -575,6 +575,8 @@ xx(damageterraineffect)
|
|||
xx(damagehazard)
|
||||
xx(floorterrain)
|
||||
xx(ceilingterrain)
|
||||
xx(floor_reflect)
|
||||
xx(ceiling_reflect)
|
||||
|
||||
// USDF keywords
|
||||
xx(Amount)
|
||||
|
|
|
|||
|
|
@ -4080,6 +4080,13 @@ void P_SetupLevel (const char *lumpname, int position)
|
|||
// set up world state
|
||||
P_SpawnSpecials ();
|
||||
|
||||
// disable reflective planes on sloped sectors.
|
||||
for (auto i = 0; i < numsectors; i++)
|
||||
{
|
||||
if (sectors[i].floorplane.isSlope()) sectors[i].reflect[sector_t::floor] = 0;
|
||||
if (sectors[i].ceilingplane.isSlope()) sectors[i].reflect[sector_t::ceiling] = 0;
|
||||
}
|
||||
|
||||
// This must be done BEFORE the PolyObj Spawn!!!
|
||||
Renderer->PreprocessLevel();
|
||||
|
||||
|
|
|
|||
|
|
@ -1563,6 +1563,14 @@ public:
|
|||
sec->terrainnum[sector_t::ceiling] = P_FindTerrain(CheckString(key));
|
||||
break;
|
||||
|
||||
case NAME_floor_reflect:
|
||||
sec->reflect[sector_t::floor] = (float)CheckFloat(key);
|
||||
break;
|
||||
|
||||
case NAME_ceiling_reflect:
|
||||
sec->reflect[sector_t::ceiling] = (float)CheckFloat(key);
|
||||
break;
|
||||
|
||||
case NAME_MoreIds:
|
||||
// delay parsing of the tag string until parsing of the sector is complete
|
||||
// This ensures that the ID is always the first tag in the list.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue