24 {
26 {
27 case "1":
28 light.SetDiffuseColor(255,51,51);
29 light.SetAmbientColor(255,51,51);
30
31 break;
32 case "2":
33 light.SetDiffuseColor(0,255,128);
34 light.SetAmbientColor(0,255,128);
35 break;
36 case "3":
37 light.SetDiffuseColor(51,153,255);
38 light.SetAmbientColor(51,153,255);
39 break;
40 case "4":
41 light.SetDiffuseColor(255,255,51);
42 light.SetAmbientColor(255,255,51);
43 break;
44 case "5":
45 light.SetDiffuseColor(255,102,255);
46 light.SetAmbientColor(255,102,255);
47 break;
48 default:
49 ErrorEx(
"Incorrect explosion particle color in the sequence");
50 }
51 }