Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- param[10] = reserve_sprites(1);
- replace(param[10]) {
- recolour_sprite_f_bus_c {
- 0x88..0x8F: 0x07..0x0E;
- 0x60..0x67: 0x07..0x0E;
- 0xA2..0xA9: 0x07..0x0E; // Basic diesel bus colour remap.
- }
- }
- switch (FEAT_ROADVEHS, SELF, switch_f1_recolor, (company_colour1)) { // choose special bus sprite by CC
- COLOUR_YELLOW: PALETTE_USE_DEFAULT;
- COLOUR_ORANGE: PALETTE_USE_DEFAULT;
- default: recolour_sprite_f_bus_c;
- }
- switch (FEAT_ROADVEHS, SELF, switch_f1_color, (built_during_preview)) { // choose special bus sprite during preview
- 0: spritegroup_r1_bus_c;
- 1: spritegroup_r1_bus_a;
- default: spritegroup_r1_bus_a;
- }
- switch (FEAT_ROADVEHS, SELF, switch_f1_bus, (company_colour1)) { // choose special bus sprite by CC
- COLOUR_YELLOW: spritegroup_r1_bus_h;
- COLOUR_ORANGE: spritegroup_r1_bus_h;
- default: switch_f1_color;
- }
- switch(FEAT_ROADVEHS, SELF, switch_f1_bus_door, [ // Stack door sprites onto bus
- STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | switch_f1_recolor, 0x100),
- getbits(extra_callback_info1, 8, 8)
- ]) {
- 0: switch_f1_bus;
- 1: switch_r1_bus_door;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement