entrancelight.c 779 B

123456789101112131415161718192021222324252627282930313233343536
  1. class EntranceLight extends PointLightBase
  2. {
  3. protected float m_DefaultBrightness = 0.5;
  4. protected float m_DefaultRadius = 5.5;
  5. void EntranceLight()
  6. {
  7. SetVisibleDuringDaylight(true);
  8. SetRadiusTo(m_DefaultRadius);
  9. SetBrightnessTo(m_DefaultBrightness);
  10. FadeIn(1);
  11. SetFadeOutTime(2);
  12. SetFlareVisible(false);
  13. SetCastShadow(false);
  14. SetAmbientColor(0.9, 0.9, 0.7);
  15. SetDiffuseColor(0.9, 0.9, 0.7);
  16. }
  17. }
  18. class EntranceLightStairs1 : EntranceLight
  19. {
  20. void EntranceLightStairs1()
  21. {
  22. SetRadiusTo(10);
  23. SetBrightnessTo(0.5);
  24. SetCastShadow(true);
  25. SetAmbientColor(1.0, 0.4, 0.4);
  26. SetDiffuseColor(1.0, 0.4, 0.4);
  27. }
  28. }
  29. class EntranceLightStairs2 : EntranceLight { }
  30. class EntranceLightMain1 : EntranceLight { }
  31. class EntranceLightMain2 : EntranceLight { }