When a shadow-casting light is attached to a lighthouse (Land_Lighthouse), it causes a client crash when the light is behind the camera at some distance. This bug did not exist in DayZ versions prior to 1.24 (possibly 1.23).
Code:
class ShadowCrashLight: SpotlightLight { float m_ShadowCrash_Yaw; void ShadowCrashLight() { SetVisibleDuringDaylight(true); SetRadiusTo(500); SetCastShadow(true); SetDiffuseColor(1, 1, 0.8); SetAmbientColor(1, 1, 0.8); SetAmbientAlpha(1); SetFlareVisible(true); SetSpotLightAngle(100); SetBrightnessTo(0.8); FadeIn(0.3); } override void OnFrameLightSource(IEntity other, float timeSlice) { m_ShadowCrash_Yaw += 25 * timeSlice; if (m_ShadowCrash_Yaw >= 360) m_ShadowCrash_Yaw = 0; SetOrientation(Vector(m_ShadowCrash_Yaw, 0, 0)); } } class Land_Lighthouse: House { ScriptedLightBase m_ShadowCrash_Light; override void DeferredInit() { super.DeferredInit(); #ifndef SERVER m_ShadowCrash_Light = ScriptedLightBase.CreateLight(ShadowCrashLight, "0 0 0"); m_ShadowCrash_Light.AttachOnObject(this, GetMemoryPointPos("cerveny pozicni blik"), "0 0 0"); #endif } }