Add sunlight actor for ZDRay

This commit is contained in:
nashmuhandes 2021-10-05 18:09:00 +08:00
parent d35cd9549f
commit 52004f36b4
4 changed files with 15 additions and 2 deletions

View file

@ -702,6 +702,10 @@ xx(lightdistancefloor)
xx(lightcolorceiling)
xx(lightintensityceiling)
xx(lightdistanceceiling)
xx(suncolor)
xx(sundirx)
xx(sundiry)
xx(sundirz)
// USDF keywords
xx(Amount)

View file

@ -758,6 +758,10 @@ public:
case NAME_lightdistance:
case NAME_lightinnerangle:
case NAME_lightouterangle:
case NAME_suncolor:
case NAME_sundirx:
case NAME_sundiry:
case NAME_sundirz:
CHECK_N(Zd | Zdt)
break;
@ -1135,7 +1139,7 @@ public:
case NAME_lightintensity:
case NAME_lightdistance:
CHECK_N(Zd | Zdt)
break;
break;
default:
if (strnicmp("user_", key.GetChars(), 5))
@ -1970,7 +1974,7 @@ public:
case NAME_lightintensityceiling:
case NAME_lightdistanceceiling:
CHECK_N(Zd | Zdt)
break;
break;
default:
if (strnicmp("user_", key.GetChars(), 5))

View file

@ -139,6 +139,7 @@ DoomEdNums
9875 = LightProbe
9876 = PointLightStatic
9881 = SpotLightStatic
9890 = ZDRaySunlight
9982 = SecActEyesAboveC
9983 = SecActEyesBelowC
9988 = CustomSprite

View file

@ -29,3 +29,7 @@ class StaticLightBase : Actor
class PointLightStatic : StaticLightBase {}
class SpotLightStatic : StaticLightBase {}
// Sunlight Actors to define sunlight properties for the current map
class ZDRaySunlight : Actor {}