- fixed: Sector_SetLink did incorrect checks for the returned control sector
- added Sector_SetTranslucent special so set translucency of portal planes at run time. - added 'additive' information for portal planes. This is no-op at the moment because the flat drawers can't handle additive translucency yet though. SVN r3149 (trunk)
This commit is contained in:
parent
16878f6bb4
commit
1806e47e43
9 changed files with 84 additions and 23 deletions
|
|
@ -1200,6 +1200,24 @@ public:
|
|||
sec->SetAlpha(sector_t::ceiling, CheckFixed(key));
|
||||
continue;
|
||||
|
||||
case NAME_Renderstylefloor:
|
||||
{
|
||||
const char *str = CheckString(key);
|
||||
if (!stricmp(str, "translucent")) sec->ChangeFlags(sector_t::floor, PLANEF_ADDITIVE, 0);
|
||||
else if (!stricmp(str, "add")) sec->ChangeFlags(sector_t::floor, 0, PLANEF_ADDITIVE);
|
||||
else sc.ScriptMessage("Unknown value \"%s\" for 'renderstylefloor'\n", str);
|
||||
continue;
|
||||
}
|
||||
|
||||
case NAME_Renderstyleceiling:
|
||||
{
|
||||
const char *str = CheckString(key);
|
||||
if (!stricmp(str, "translucent")) sec->ChangeFlags(sector_t::ceiling, PLANEF_ADDITIVE, 0);
|
||||
else if (!stricmp(str, "add")) sec->ChangeFlags(sector_t::ceiling, 0, PLANEF_ADDITIVE);
|
||||
else sc.ScriptMessage("Unknown value \"%s\" for 'renderstyleceiling'\n", str);
|
||||
continue;
|
||||
}
|
||||
|
||||
case NAME_Lightfloorabsolute:
|
||||
if (CheckBool(key)) sec->ChangeFlags(sector_t::floor, 0, PLANEF_ABSLIGHTING);
|
||||
else sec->ChangeFlags(sector_t::floor, PLANEF_ABSLIGHTING, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue