Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int graphics_VIBR(GRAPHICS_FUNC_ARGS)
- {
- float maxtemp = fmax(cpart->tmp,cpart->temp);
- if (cpart->ctype > 1000 && cpart->ctype < 2000)
- {
- *colr += (int)restrict_flt((cpart->ctype-1000)/20,0,51);
- *colg += (int)restrict_flt((cpart->ctype-1000)/18,0,55);
- *colb += (int)restrict_flt((cpart->ctype-1000)/20,0,51);
- }
- else if (cpart->ctype >= 2000 && cpart->ctype < 3000)
- {
- *colr += (int)restrict_flt((cpart->ctype-2000)/20+51,51,100);
- *colg += (int)restrict_flt((cpart->ctype-2000)/31+55,55,87);
- *colb += (int)restrict_flt((cpart->ctype-2000)/20+51,51,100);
- }
- else if (cpart->ctype >= 3000 && cpart->ctype < 3200)
- {
- *colr += (int)restrict_flt((cpart->ctype-3000)/1.7+100,100,218);
- *colg += (int)restrict_flt((cpart->ctype-3000)/2+87,87,192);
- *colb += (int)restrict_flt((cpart->ctype-3000)/1.7+100,100,218);
- }
- else if (cpart->ctype >= 3200)
- {
- *pixel_mode = PMODE_NONE;
- *pixel_mode |= FIRE_ADD;
- *firea = 60;
- *firer = *colr;
- *fireg = *colg;
- *fireb = *colb;
- *colr = 146;
- *colg = 158;
- *colb = 113;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment