portablegaslamplight.c 609 B

1234567891011121314151617181920212223242526
  1. class PortableGasLampLight extends PointLightBase
  2. {
  3. static float m_TorchRadius = 15;
  4. static float m_TorchBrightness = 5.0;
  5. void PortableGasLampLight()
  6. {
  7. SetVisibleDuringDaylight(false);
  8. SetRadiusTo( m_TorchRadius );
  9. SetBrightnessTo(m_TorchBrightness);
  10. SetCastShadow(true);
  11. FadeIn(0.5);
  12. SetFadeOutTime(0.1);
  13. SetDiffuseColor(1.0, 0.7, 0.5);
  14. SetAmbientColor(1.0, 0.7, 0.5);
  15. SetFlickerAmplitude(0.3);
  16. SetFlickerSpeed(0.75);
  17. SetDancingShadowsMovementSpeed(0.005);
  18. SetDancingShadowsAmplitude(0.003);
  19. }
  20. /*override void OnFrameLightSource(IEntity other, float timeSlice)
  21. {
  22. }*/
  23. }