muzzleflashlight.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. class MuzzleFlashLight extends PointLightBase
  2. {
  3. static float m_Lifetime = 0.04;
  4. void MuzzleFlashLight()
  5. {
  6. SetLifetime(m_Lifetime);
  7. FadeIn(m_Lifetime * 0.5);
  8. SetFadeOutTime(m_Lifetime * 0.5);
  9. SetVisibleDuringDaylight(true);
  10. SetRadiusTo( 15 );
  11. SetBrightnessTo(1);
  12. SetCastShadow(false);
  13. SetAmbientColor(0.76, 0.68, 0.31);
  14. SetDiffuseColor(0.76, 0.68, 0.31);
  15. SetFlareVisible(false);
  16. }
  17. }
  18. class MuzzleFlashLight_1 extends PointLightBase
  19. {
  20. static float m_Lifetime = 0.08;
  21. void MuzzleFlashLight_1()
  22. {
  23. SetLifetime( m_Lifetime );
  24. FadeIn( m_Lifetime * 0.2 );
  25. SetFadeOutTime( m_Lifetime * 0.2 );
  26. SetVisibleDuringDaylight( true );
  27. SetRadiusTo( 17 );
  28. SetBrightnessTo( 0.5 );
  29. SetCastShadow( false );
  30. SetAmbientColor( 0.56, 0.42, 0.3 );
  31. SetDiffuseColor( 0.56, 0.42, 0.3 );
  32. SetFlareVisible( false );
  33. }
  34. }
  35. class MuzzleFlashLight_2 extends PointLightBase
  36. {
  37. static float m_Lifetime = 0.01;
  38. void MuzzleFlashLight_2()
  39. {
  40. SetLifetime( m_Lifetime );
  41. FadeIn( m_Lifetime * 0.1 );
  42. SetFadeOutTime( m_Lifetime * 0.1 );
  43. SetVisibleDuringDaylight( true );
  44. SetRadiusTo( 12 );
  45. SetBrightnessTo( 0.2 );
  46. SetCastShadow( false );
  47. SetAmbientColor( 0.36, 0.32, 0.13 );
  48. SetDiffuseColor( 0.36, 0.32, 0.13 );
  49. SetFlareVisible( false );
  50. }
  51. }