Advertisement
Guest User

Untitled

a guest
Dec 29th, 2021
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. param[10] = reserve_sprites(1);
  2. replace(param[10]) {
  3. recolour_sprite_f_bus_c {
  4. 0x88..0x8F: 0x07..0x0E;
  5. 0x60..0x67: 0x07..0x0E;
  6. 0xA2..0xA9: 0x07..0x0E; // Basic diesel bus colour remap.
  7. }
  8. }
  9.  
  10.  
  11. switch (FEAT_ROADVEHS, SELF, switch_f1_recolor, (company_colour1)) { // choose special bus sprite by CC
  12. COLOUR_YELLOW: PALETTE_USE_DEFAULT;
  13. COLOUR_ORANGE: PALETTE_USE_DEFAULT;
  14. default: recolour_sprite_f_bus_c;
  15. }
  16.  
  17. switch (FEAT_ROADVEHS, SELF, switch_f1_color, (built_during_preview)) { // choose special bus sprite during preview
  18. 0: spritegroup_r1_bus_c;
  19. 1: spritegroup_r1_bus_a;
  20. default: spritegroup_r1_bus_a;
  21. }
  22.  
  23. switch (FEAT_ROADVEHS, SELF, switch_f1_bus, (company_colour1)) { // choose special bus sprite by CC
  24. COLOUR_YELLOW: spritegroup_r1_bus_h;
  25. COLOUR_ORANGE: spritegroup_r1_bus_h;
  26. default: switch_f1_color;
  27. }
  28.  
  29. switch(FEAT_ROADVEHS, SELF, switch_f1_bus_door, [ // Stack door sprites onto bus
  30. STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | switch_f1_recolor, 0x100),
  31. getbits(extra_callback_info1, 8, 8)
  32. ]) {
  33. 0: switch_f1_bus;
  34. 1: switch_r1_bus_door;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement