add light_noshadowmap/light_dontlightactors/light_dontlightmap to UDMF

This commit is contained in:
Ricardo Luís Vaz Silva 2024-10-08 20:48:42 -03:00 committed by Magnus Norddahl
commit 479e0c301e
5 changed files with 36 additions and 0 deletions

View file

@ -6218,6 +6218,21 @@ AActor *FLevelLocals::SpawnMapThing (FMapThing *mthing, int position)
{
mobj->FloatVar(NAME_LightStrength) = mthing->LightStrength;
}
if (mthing->LightNoShadowMap)
{
mobj->IntVar(NAME_lightflags) |= LF_NOSHADOWMAP;
}
if (mthing->LightDontLightActors)
{
mobj->IntVar(NAME_lightflags) |= LF_DONTLIGHTACTORS;
}
if (mthing->LightDontLightMap)
{
mobj->IntVar(NAME_lightflags) |= LF_DONTLIGHTMAP;
}
}
mobj->CallBeginPlay ();