Guest User

Untitled

a guest
Feb 22nd, 2021
15
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // i recolor some vehicles like this: //
  2.  
  3. switch(FEAT_ROADVEHS, SELF, wrx_yellow, [
  4. STORE_TEMP(PALETTE_CC_YELLOW, 0x100),
  5. ]) {
  6. default: spriteset_wrx;
  7. }
  8.  
  9. ///////////////////////////////////////////////////////////////////////////////////////
  10.  
  11. // can i also do like this???:
  12.  
  13. random_switch (FEAT_ROADVEHS, SELF, switch_color_vehs_a, bitmask(TRIGGER_VEHICLE_UNLOAD_ALL, TRIGGER_VEHICLE_ANY_LOAD, TRIGGER_ALL_NEEDED)) {
  14. /* re-randomize when vehicle has been emptied and then received new cargo */
  15. 4: palette_2cc(COLOUR_WHITE, COLOUR_WHITE);
  16. 3: palette_2cc(COLOUR_WHITE, COLOUR_DARK_BLUE);
  17. 3: palette_2cc(COLOUR_DARK_BLUE, COLOUR_WHITE);
  18. 3: palette_2cc(COLOUR_DARK_BLUE, COLOUR_DARK_BLUE);
  19. 3: palette_2cc(COLOUR_DARK_GREEN, COLOUR_WHITE);
  20. 3: palette_2cc(COLOUR_WHITE, COLOUR_DARK_GREEN);
  21. 3: palette_2cc(COLOUR_DARK_GREEN, COLOUR_DARK_GREEN);
  22. 3: palette_2cc(COLOUR_DARK_GREEN, COLOUR_DARK_BLUE);
  23. 3: palette_2cc(COLOUR_DARK_BLUE, COLOUR_DARK_GREEN);
  24. 1: palette_2cc(COLOUR_RED, COLOUR_RED);
  25. 2: palette_2cc(COLOUR_RED, COLOUR_DARK_GREEN);
  26. 2: palette_2cc(COLOUR_DARK_GREEN, COLOUR_RED);
  27. 2: palette_2cc(COLOUR_DARK_BLUE, COLOUR_RED);
  28. 2: palette_2cc(COLOUR_RED, COLOUR_DARK_BLUE);
  29. 2: palette_2cc(COLOUR_RED, COLOUR_WHITE);
  30. 2: palette_2cc(COLOUR_WHITE, COLOUR_RED);
  31. }
  32.  
  33. switch(FEAT_ROADVEHS, SELF, switch_w_l_c_vehs_a, [ // Can i
  34. STORE_TEMP(switch_color_vehs_a, 0x100),
  35. ]) {
  36. default: spritegroup_w_l_c_vehs_aa;
  37. }
  38.  
  39. random_switch (FEAT_ROADVEHS, SELF, switch_w_l_c_vehs, bitmask(TRIGGER_VEHICLE_UNLOAD_ALL, TRIGGER_VEHICLE_ANY_LOAD, TRIGGER_ALL_NEEDED)) {
  40. /* re-randomize when vehicle has been emptied and then received new cargo */
  41. independent: switch_color_vehs_a; // decision independent from color switch
  42. 2: switch_w_l_c_vehs_a;
  43. 1: switch_w_l_c_vehs_b;
  44. 1: switch_w_l_c_vehs_c;
  45. 1: switch_w_l_c_vehs_d;
  46. 1: switch_w_l_c_vehs_e;
  47. 1: switch_w_l_c_vehs_f;
  48. 1: switch_w_l_c_vehs_g;
  49. 1: switch_w_l_c_vehs_h;
  50. 1: switch_w_l_c_vehs_i;
  51. }
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.

×