Guest User

Untitled

a guest
Feb 22nd, 2021
14
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // vehicles on flatbed
  2. random_switch (FEAT_ROADVEHS, SELF, switch_color_vehs_a, TRIGGER_VEHICLE_NEW_LOAD) {
  3. /* randomize 2cc recoloring palette upon new load */
  4. 4: palette_2cc(COLOUR_WHITE, COLOUR_WHITE);
  5. 3: palette_2cc(COLOUR_WHITE, COLOUR_DARK_BLUE);
  6. 3: palette_2cc(COLOUR_DARK_BLUE, COLOUR_WHITE);
  7. 3: palette_2cc(COLOUR_DARK_BLUE, COLOUR_DARK_BLUE);
  8. 3: palette_2cc(COLOUR_DARK_GREEN, COLOUR_WHITE);
  9. 3: palette_2cc(COLOUR_WHITE, COLOUR_DARK_GREEN);
  10. 3: palette_2cc(COLOUR_DARK_GREEN, COLOUR_DARK_GREEN);
  11. 3: palette_2cc(COLOUR_DARK_GREEN, COLOUR_DARK_BLUE);
  12. 3: palette_2cc(COLOUR_DARK_BLUE, COLOUR_DARK_GREEN);
  13. 1: palette_2cc(COLOUR_RED, COLOUR_RED);
  14. 2: palette_2cc(COLOUR_RED, COLOUR_DARK_GREEN);
  15. 2: palette_2cc(COLOUR_DARK_GREEN, COLOUR_RED);
  16. 2: palette_2cc(COLOUR_DARK_BLUE, COLOUR_RED);
  17. 2: palette_2cc(COLOUR_RED, COLOUR_DARK_BLUE);
  18. 2: palette_2cc(COLOUR_RED, COLOUR_WHITE);
  19. 2: palette_2cc(COLOUR_WHITE, COLOUR_RED);
  20. }
  21.  
  22. random_switch (FEAT_ROADVEHS, SELF, switch_color_vehs_b, TRIGGER_VEHICLE_NEW_LOAD) {
  23. /* randomize 1cc recoloring palette upon new load */
  24. 4: palette_1cc(COLOUR_WHITE);
  25. 3: palette_1cc(COLOUR_DARK_BLUE);
  26. 3: palette_1cc(COLOUR_DARK_GREEN);
  27. 1: palette_1cc(COLOUR_RED);
  28. 3: palette_1cc(COLOUR_GREY);
  29. }
  30.  
  31. // short trailer
  32.  
  33. switch(FEAT_ROADVEHS, SELF, switch_w_s_c_vehs_a, [ // recolor cargo based on value from random switch
  34. STORE_TEMP(switch_color_vehs_a(), 0x100),
  35. ]) {
  36. default: spritegroup_w_s_c_vehs_a;
  37. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×