Loading

Paste #pxheywckn

  1. switch (FEAT_ROADVEHS, SELF, switch_e0,
  2.   (position_in_consist > 0 ? 16 : 0) | (getbits(random_bits, 4, 1) * 4) | getbits(extra_callback_info1, 8, 8)
  3. ) {
  4.  0: spriteset_e0_front_style0_stack0;
  5.  1: spriteset_e0_front_style0_stack1;
  6.  4: spriteset_e0_front_style1_stack0;
  7.  5: spriteset_e0_front_style1_stack1;
  8. 16: spriteset_e0_middle_style0_stack0;
  9. 17: spriteset_e0_middle_style0_stack1;
  10. 20: spriteset_e0_middle_style1_stack0;
  11. 21: spriteset_e0_middle_style1_stack1;
  12. }
  13.  
  14. // 1CC+2CC
  15. switch (FEAT_ROADVEHS, SELF, switch_e0_color0,
  16.   STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | PALETTE_USE_DEFAULT, 0x100)
  17. ) {
  18.   default: switch_e0;
  19. }
  20. // 1CC only
  21. switch (FEAT_ROADVEHS, SELF, switch_e0_color1,
  22.   STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | (PALETTE_CC_FIRST + company_colour1), 0x100)
  23. ) {
  24.   default: switch_e0;
  25. }
  26. // 2CC only
  27. switch (FEAT_ROADVEHS, SELF, switch_e0_color2,
  28.   STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | (PALETTE_CC_FIRST + company_colour2), 0x100)
  29. ) {
  30.   default: switch_e0;
  31. }
  32. // grey
  33. switch (FEAT_ROADVEHS, SELF, switch_e0_color2,
  34.   STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | (PALETTE_CC_FIRST + COLOUR_GREY), 0x100)
  35. ) {
  36.   default: switch_e0;
  37. }
  38.  
  39. switch (FEAT_ROADVEHS, SELF, switch_spriteset_e0_tram,
  40.   getbits(random_bits, 4, 2)
  41. ) {
  42.  0: switch_e0_color0;
  43.  1: switch_e0_color1;
  44.  2: switch_e0_color2;
  45.  3: switch_e0_color3;
  46. }

Version history

Revision # Author Created at
pqdqvoowf Anonymous 13 Oct 2017, 22:00:31 UTC Diff

Comments