- sgSetVec4( color, 1.0 * bright, 1.0 * bright, 0.7 * bright, 1.0 );
- cl->add( color );
+ for ( int i = 0; i < lights->getNum(); i += inc ) {
+ vl->add( lights->get(i) );
+
+ // yellow = 1,1,0
+ float zombie = sg_random();
+ if ( zombie > 0.5 ) {
+ // 50% chance of yellowish
+ sgSetVec4( color, 0.9, 0.9, 0.3, bright );
+ } else if ( zombie > 0.15 ) {
+ // 35% chance of whitish
+ sgSetVec4( color, 0.9, 0.9, 0.6, bright );
+ } else if ( zombie > 0.05 ) {
+ // 10% chance of orangish
+ sgSetVec4( color, 0.9, 0.6, 0.2, bright );
+ } else {
+ // 5% chance of redish
+ sgSetVec4( color, 0.9, 0.2, 0.2, bright );
+ }
+ cl->add( color );
+ }