diff --git a/resources/assets/zscript/lib/lemonactor.zs b/resources/assets/zscript/lib/lemonactor.zs index da8a2e8..1be15b8 100644 --- a/resources/assets/zscript/lib/lemonactor.zs +++ b/resources/assets/zscript/lib/lemonactor.zs @@ -2,8 +2,9 @@ class LemonActor { // ref: https://github.com/videogamepreservation/hexen2/blob/eac5fd50832ce2509226761b3b1a387c468e7a50/H2W/Client/r_alias.c#L958 static int CalcHX2ModelGlowLighting(Actor source) { + double quakeOverbright = 2.0; int curLightLevel = source.cursector.GetLightLevel(); - int ambLightLevel = 60 + 34 + sin(source.pos.x + source.pos.y + (level.MapTime * 3.8)) * 34; + int ambLightLevel = clamp(5, 60 + 34 + sin((source.pos.x + source.pos.y + (level.MapTime * 3.8)) * 34) * quakeOverbright, 255); return curLightLevel + ambLightLevel; } } \ No newline at end of file