- // add the trailing units to articulated consist
- switch (FEAT_ROADVEHS, SELF, big_rigg_articulated_cb_switch, extra_callback_info1) {
- 0: return big_rigg;
- 1: return big_rigg_1;
- return CB_RESULT_NO_MORE_ARTICULATED_PARTS;
- }
- // STANDARD GRAPHICS
- // -----------------
- template spriteset_template_big_rigg_1(y) {
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [60, y, 12, 24, -6, -20, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [92, y, 26, 20, -6, -14, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [124, y, 36, 16, 0, -10, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [172, y, 26, 20, 0, -11, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [204, y, 12, 24, -6, -12, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [236, y, 26, 20, -14, -10, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [268, y, 36, 16, -14, -10, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [316, y, 26, 20, -8, -14, ANIM]
- }
- // PURCHASE MENU
- // -------------
- template spriteset_template_purchase_big_rigg_1() {
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [60, 10, 1, 1, 0, 0, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- [370, 10, 36, 16, -18, -9, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- }
- // DEPOT VIEW
- // ----------
- spriteset(big_rigg_1_ss_empty_0, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 10)
- }
- spriteset(big_rigg_1_ss_loading_0_0, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 0 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_0, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 0 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_0 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_0 {
- loaded: [
- big_rigg_1_ss_loading_0_0,
- ];
- loading: [
- big_rigg_1_ss_loading_0_0,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_0 {
- loaded: [
- big_rigg_1_ss_loaded_0_0,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_0,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_0, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_0;
- 1..99: return big_rigg_1_sg_loading_0_0;
- return big_rigg_1_sg_loaded_0_0;
- }
- spriteset(big_rigg_1_ss_loading_0_1, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 60 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_1, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 60 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_1 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_1 {
- loaded: [
- big_rigg_1_ss_loading_0_1,
- ];
- loading: [
- big_rigg_1_ss_loading_0_1,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_1 {
- loaded: [
- big_rigg_1_ss_loaded_0_1,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_1,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_1, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_1;
- 1..99: return big_rigg_1_sg_loading_0_1;
- return big_rigg_1_sg_loaded_0_1;
- }
- spriteset(big_rigg_1_ss_loading_0_2, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 120 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_2, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 120 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_2 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_2 {
- loaded: [
- big_rigg_1_ss_loading_0_2,
- ];
- loading: [
- big_rigg_1_ss_loading_0_2,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_2 {
- loaded: [
- big_rigg_1_ss_loaded_0_2,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_2,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_2, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_2;
- 1..99: return big_rigg_1_sg_loading_0_2;
- return big_rigg_1_sg_loaded_0_2;
- }
- spriteset(big_rigg_1_ss_loading_0_3, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 180 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_3, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 180 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_3 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_3 {
- loaded: [
- big_rigg_1_ss_loading_0_3,
- ];
- loading: [
- big_rigg_1_ss_loading_0_3,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_3 {
- loaded: [
- big_rigg_1_ss_loaded_0_3,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_3,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_3, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_3;
- 1..99: return big_rigg_1_sg_loading_0_3;
- return big_rigg_1_sg_loaded_0_3;
- }
- spriteset(big_rigg_1_ss_loading_0_4, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 240 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_4, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 240 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_4 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_4 {
- loaded: [
- big_rigg_1_ss_loading_0_4,
- ];
- loading: [
- big_rigg_1_ss_loading_0_4,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_4 {
- loaded: [
- big_rigg_1_ss_loaded_0_4,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_4,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_4, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_4;
- 1..99: return big_rigg_1_sg_loading_0_4;
- return big_rigg_1_sg_loaded_0_4;
- }
- spriteset(big_rigg_1_ss_loading_0_5, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 300 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_5, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 300 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_5 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_5 {
- loaded: [
- big_rigg_1_ss_loading_0_5,
- ];
- loading: [
- big_rigg_1_ss_loading_0_5,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_5 {
- loaded: [
- big_rigg_1_ss_loaded_0_5,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_5,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_5, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_5;
- 1..99: return big_rigg_1_sg_loading_0_5;
- return big_rigg_1_sg_loaded_0_5;
- }
- spriteset(big_rigg_1_ss_loading_0_6, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 360 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_6, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 360 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_6 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_6 {
- loaded: [
- big_rigg_1_ss_loading_0_6,
- ];
- loading: [
- big_rigg_1_ss_loading_0_6,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_6 {
- loaded: [
- big_rigg_1_ss_loaded_0_6,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_6,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_6, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_6;
- 1..99: return big_rigg_1_sg_loading_0_6;
- return big_rigg_1_sg_loaded_0_6;
- }
- spriteset(big_rigg_1_ss_loading_0_7, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 420 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_7, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 420 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_7 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_7 {
- loaded: [
- big_rigg_1_ss_loading_0_7,
- ];
- loading: [
- big_rigg_1_ss_loading_0_7,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_7 {
- loaded: [
- big_rigg_1_ss_loaded_0_7,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_7,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_7, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_7;
- 1..99: return big_rigg_1_sg_loading_0_7;
- return big_rigg_1_sg_loaded_0_7;
- }
- spriteset(big_rigg_1_ss_loading_0_8, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 480 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_8, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 480 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_8 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_8 {
- loaded: [
- big_rigg_1_ss_loading_0_8,
- ];
- loading: [
- big_rigg_1_ss_loading_0_8,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_8 {
- loaded: [
- big_rigg_1_ss_loaded_0_8,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_8,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_8, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_8;
- 1..99: return big_rigg_1_sg_loading_0_8;
- return big_rigg_1_sg_loaded_0_8;
- }
- spriteset(big_rigg_1_ss_loading_0_9, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 540 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_9, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 540 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_9 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_9 {
- loaded: [
- big_rigg_1_ss_loading_0_9,
- ];
- loading: [
- big_rigg_1_ss_loading_0_9,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_9 {
- loaded: [
- big_rigg_1_ss_loaded_0_9,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_9,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_9, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_9;
- 1..99: return big_rigg_1_sg_loading_0_9;
- return big_rigg_1_sg_loaded_0_9;
- }
- spriteset(big_rigg_1_ss_loading_0_10, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 600 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_10, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 600 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_10 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_10 {
- loaded: [
- big_rigg_1_ss_loading_0_10,
- ];
- loading: [
- big_rigg_1_ss_loading_0_10,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_10 {
- loaded: [
- big_rigg_1_ss_loaded_0_10,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_10,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_10, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_10;
- 1..99: return big_rigg_1_sg_loading_0_10;
- return big_rigg_1_sg_loaded_0_10;
- }
- spriteset(big_rigg_1_ss_loading_0_11, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 660 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_11, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 660 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_11 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_11 {
- loaded: [
- big_rigg_1_ss_loading_0_11,
- ];
- loading: [
- big_rigg_1_ss_loading_0_11,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_11 {
- loaded: [
- big_rigg_1_ss_loaded_0_11,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_11,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_11, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_11;
- 1..99: return big_rigg_1_sg_loading_0_11;
- return big_rigg_1_sg_loaded_0_11;
- }
- spriteset(big_rigg_1_ss_loading_0_12, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 720 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_12, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 720 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_12 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_12 {
- loaded: [
- big_rigg_1_ss_loading_0_12,
- ];
- loading: [
- big_rigg_1_ss_loading_0_12,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_12 {
- loaded: [
- big_rigg_1_ss_loaded_0_12,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_12,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_12, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_12;
- 1..99: return big_rigg_1_sg_loading_0_12;
- return big_rigg_1_sg_loaded_0_12;
- }
- spriteset(big_rigg_1_ss_loading_0_13, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 780 + 40)
- }
- spriteset(big_rigg_1_ss_loaded_0_13, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg_1(870 + 780 + 70)
- }
- spritegroup big_rigg_1_sg_empty_0_13 {
- loaded: [
- big_rigg_1_ss_empty_0,
- ];
- loading: [
- big_rigg_1_ss_empty_0,
- ];
- }
- spritegroup big_rigg_1_sg_loading_0_13 {
- loaded: [
- big_rigg_1_ss_loading_0_13,
- ];
- loading: [
- big_rigg_1_ss_loading_0_13,
- ];
- }
- spritegroup big_rigg_1_sg_loaded_0_13 {
- loaded: [
- big_rigg_1_ss_loaded_0_13,
- ];
- loading: [
- big_rigg_1_ss_loaded_0_13,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_percent_loaded_0_13, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_1_sg_empty_0_13;
- 1..99: return big_rigg_1_sg_loading_0_13;
- return big_rigg_1_sg_loaded_0_13;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_JAVA, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_7;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_WATR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_BEER, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_STEL, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_11;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_GOOD, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_8;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_WDPR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_12;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_NUTS, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_9;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_RFPR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_MILK, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_EOIL, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_PETR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_PAPR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_10;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_COPR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_3;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_FRUT, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_6;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_FMSP, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_5;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_ENSP, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_4;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_WOOD, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_13;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_DYES, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_BDMT, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_2;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_OIL_, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_1_switch_graphics_0_generic_cargos, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_1_switch_graphics_percent_loaded_0_0;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_0, cargo_type_in_veh) {
- JAVA: return big_rigg_1_switch_graphics_0_JAVA;
- WATR: return big_rigg_1_switch_graphics_0_WATR;
- BEER: return big_rigg_1_switch_graphics_0_BEER;
- STEL: return big_rigg_1_switch_graphics_0_STEL;
- GOOD: return big_rigg_1_switch_graphics_0_GOOD;
- WDPR: return big_rigg_1_switch_graphics_0_WDPR;
- NUTS: return big_rigg_1_switch_graphics_0_NUTS;
- RFPR: return big_rigg_1_switch_graphics_0_RFPR;
- MILK: return big_rigg_1_switch_graphics_0_MILK;
- EOIL: return big_rigg_1_switch_graphics_0_EOIL;
- PETR: return big_rigg_1_switch_graphics_0_PETR;
- PAPR: return big_rigg_1_switch_graphics_0_PAPR;
- COPR: return big_rigg_1_switch_graphics_0_COPR;
- FRUT: return big_rigg_1_switch_graphics_0_FRUT;
- FMSP: return big_rigg_1_switch_graphics_0_FMSP;
- ENSP: return big_rigg_1_switch_graphics_0_ENSP;
- WOOD: return big_rigg_1_switch_graphics_0_WOOD;
- DYES: return big_rigg_1_switch_graphics_0_DYES;
- BDMT: return big_rigg_1_switch_graphics_0_BDMT;
- OIL_: return big_rigg_1_switch_graphics_0_OIL_;
- return big_rigg_1_switch_graphics_0_generic_cargos;
- }
- random_switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_random_0) {
- 1: return big_rigg_1_switch_graphics_0;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics_by_year, build_year) {
- 0..5000000:big_rigg_1_switch_graphics_random_0;
- return big_rigg_1_switch_graphics_random_0;
- }
- // show default graphics, or special cases like depot? (purchase is handled separately using purchase cb)
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_graphics, extra_callback_info1) {
- 0x10: return big_rigg_1_switch_graphics_by_year;
- return big_rigg_1_switch_graphics_by_year;
- }
- // buy menu graphics
- spriteset(big_rigg_1_ss_purchase, "generated/graphics/big_rigg_0.png") {
- spriteset_template_purchase_big_rigg_1()
- }
- spritegroup big_rigg_1_sg_purchase {
- loaded: [
- big_rigg_1_ss_purchase,
- ];
- loading: [
- big_rigg_1_ss_purchase,
- ];
- }
- // -- capacity determined according to specific labels that might need to be handled, and otherwise cargo class -- //
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_cargo_capacity_by_cargo_0, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 28;
- bitmask(CC_ARMOURED): return 28;
- return 14;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_cargo_capacity_by_cargo_1, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 40;
- bitmask(CC_ARMOURED): return 40;
- return 20;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_cargo_capacity_by_cargo_2, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 54;
- bitmask(CC_ARMOURED): return 54;
- return 27;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_cargo_capacity, param_adjust_vehicle_capacity) {
- 0: big_rigg_1_switch_cargo_capacity_by_cargo_0;
- 1: big_rigg_1_switch_cargo_capacity_by_cargo_1;
- 2: big_rigg_1_switch_cargo_capacity_by_cargo_2;
- }
- // -- loading speed also determined by capacity, which varies by cargo -- //
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_loading_speed_by_cargo_0, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 3;
- bitmask(CC_ARMOURED): return 3;
- return 2;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_loading_speed_by_cargo_1, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 4;
- bitmask(CC_ARMOURED): return 4;
- return 2;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_loading_speed_by_cargo_2, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 5;
- bitmask(CC_ARMOURED): return 5;
- return 3;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_switch_loading_speed, param_adjust_vehicle_capacity) {
- 0: big_rigg_1_switch_loading_speed_by_cargo_0;
- 1: big_rigg_1_switch_loading_speed_by_cargo_1;
- 2: big_rigg_1_switch_loading_speed_by_cargo_2;
- }
- // -- some switches are common to all vehicles so included with properties -- //
- // -- smoke -- //
- switch (FEAT_ROADVEHS, SELF, big_rigg_1_create_visual_effect, 0) {
- return 0;
- }
- // -- props -- //
- item(FEAT_ROADVEHS, big_rigg_1, 661) {
- property {
- name: string(STR_NAME_big_rigg, string(STR_NAME_SUFFIX_FLATBED_TRUCK));
- cargo_capacity: 14;
- sprite_id: SPRITE_ID_NEW_ROADVEH; //enable new graphics - nml constant
- refit_cost: 0; // this needs to be 0 if we want autorefit without using cb
- refittable_cargo_classes: bitmask(CC_PIECE_GOODS);
- non_refittable_cargo_classes: bitmask(); // don't set non-refittable classes, increases likelihood of breaking cargo support
- cargo_allow_refit: [GOOD];
- cargo_disallow_refit: [FOOD,FISH,LVST,FRUT,BEER,MILK,JAVA,SUGR,NUTS,EOIL];
- default_cargo_type: STEL;
- cargo_age_period: 185;
- misc_flags: bitmask(ROADVEH_FLAG_2CC,ROADVEH_FLAG_AUTOREFIT); // nml constants
- length: 4;
- effect_spawn_model: EFFECT_SPAWN_MODEL_DIESEL;
- }
- graphics {
- cargo_capacity: big_rigg_1_switch_cargo_capacity;
- purchase_cargo_capacity: big_rigg_1_switch_cargo_capacity;
- loading_speed: big_rigg_1_switch_loading_speed;
- default: big_rigg_1_switch_graphics;
- purchase: big_rigg_1_sg_purchase;
- create_effect: big_rigg_1_create_visual_effect;
- }
- }
- if (param[1]==0) {
- item(FEAT_ROADVEHS, big_rigg_1, 661) {
- property {
- climates_available: NO_CLIMATE;
- }
- }
- }
- // -- end 661 --
- // STANDARD GRAPHICS
- // -----------------
- template spriteset_template_big_rigg(y) {
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [60, y, 12, 24, -6, -17, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [92, y, 26, 20, -8, -13, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [124, y, 36, 16, -6, -10, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [172, y, 26, 20, -2, -11, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [204, y, 12, 24, -6, -12, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [236, y, 26, 20, -14, -10, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [268, y, 36, 16, -14, -10, ANIM]
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [316, y, 26, 20, -8, -13, ANIM]
- }
- // PURCHASE MENU
- // -------------
- template spriteset_template_purchase_big_rigg() {
- //[left_x, upper_y, width, height, offset_x, offset_y]
- [60, 10, 1, 1, 0, 0, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- [370, 10, 36, 16, -18, -9, ANIM]
- [60, 10, 1, 1, 0, 0, ANIM]
- }
- // DEPOT VIEW
- // ----------
- spriteset(big_rigg_ss_empty_0, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 10)
- }
- spriteset(big_rigg_ss_loading_0_0, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 0 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_0, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 0 + 70)
- }
- spritegroup big_rigg_sg_empty_0_0 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_0 {
- loaded: [
- big_rigg_ss_loading_0_0,
- ];
- loading: [
- big_rigg_ss_loading_0_0,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_0 {
- loaded: [
- big_rigg_ss_loaded_0_0,
- ];
- loading: [
- big_rigg_ss_loaded_0_0,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_0, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_0;
- 1..99: return big_rigg_sg_loading_0_0;
- return big_rigg_sg_loaded_0_0;
- }
- spriteset(big_rigg_ss_loading_0_1, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 60 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_1, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 60 + 70)
- }
- spritegroup big_rigg_sg_empty_0_1 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_1 {
- loaded: [
- big_rigg_ss_loading_0_1,
- ];
- loading: [
- big_rigg_ss_loading_0_1,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_1 {
- loaded: [
- big_rigg_ss_loaded_0_1,
- ];
- loading: [
- big_rigg_ss_loaded_0_1,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_1, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_1;
- 1..99: return big_rigg_sg_loading_0_1;
- return big_rigg_sg_loaded_0_1;
- }
- spriteset(big_rigg_ss_loading_0_2, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 120 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_2, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 120 + 70)
- }
- spritegroup big_rigg_sg_empty_0_2 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_2 {
- loaded: [
- big_rigg_ss_loading_0_2,
- ];
- loading: [
- big_rigg_ss_loading_0_2,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_2 {
- loaded: [
- big_rigg_ss_loaded_0_2,
- ];
- loading: [
- big_rigg_ss_loaded_0_2,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_2, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_2;
- 1..99: return big_rigg_sg_loading_0_2;
- return big_rigg_sg_loaded_0_2;
- }
- spriteset(big_rigg_ss_loading_0_3, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 180 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_3, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 180 + 70)
- }
- spritegroup big_rigg_sg_empty_0_3 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_3 {
- loaded: [
- big_rigg_ss_loading_0_3,
- ];
- loading: [
- big_rigg_ss_loading_0_3,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_3 {
- loaded: [
- big_rigg_ss_loaded_0_3,
- ];
- loading: [
- big_rigg_ss_loaded_0_3,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_3, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_3;
- 1..99: return big_rigg_sg_loading_0_3;
- return big_rigg_sg_loaded_0_3;
- }
- spriteset(big_rigg_ss_loading_0_4, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 240 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_4, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 240 + 70)
- }
- spritegroup big_rigg_sg_empty_0_4 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_4 {
- loaded: [
- big_rigg_ss_loading_0_4,
- ];
- loading: [
- big_rigg_ss_loading_0_4,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_4 {
- loaded: [
- big_rigg_ss_loaded_0_4,
- ];
- loading: [
- big_rigg_ss_loaded_0_4,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_4, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_4;
- 1..99: return big_rigg_sg_loading_0_4;
- return big_rigg_sg_loaded_0_4;
- }
- spriteset(big_rigg_ss_loading_0_5, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 300 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_5, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 300 + 70)
- }
- spritegroup big_rigg_sg_empty_0_5 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_5 {
- loaded: [
- big_rigg_ss_loading_0_5,
- ];
- loading: [
- big_rigg_ss_loading_0_5,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_5 {
- loaded: [
- big_rigg_ss_loaded_0_5,
- ];
- loading: [
- big_rigg_ss_loaded_0_5,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_5, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_5;
- 1..99: return big_rigg_sg_loading_0_5;
- return big_rigg_sg_loaded_0_5;
- }
- spriteset(big_rigg_ss_loading_0_6, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 360 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_6, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 360 + 70)
- }
- spritegroup big_rigg_sg_empty_0_6 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_6 {
- loaded: [
- big_rigg_ss_loading_0_6,
- ];
- loading: [
- big_rigg_ss_loading_0_6,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_6 {
- loaded: [
- big_rigg_ss_loaded_0_6,
- ];
- loading: [
- big_rigg_ss_loaded_0_6,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_6, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_6;
- 1..99: return big_rigg_sg_loading_0_6;
- return big_rigg_sg_loaded_0_6;
- }
- spriteset(big_rigg_ss_loading_0_7, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 420 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_7, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 420 + 70)
- }
- spritegroup big_rigg_sg_empty_0_7 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_7 {
- loaded: [
- big_rigg_ss_loading_0_7,
- ];
- loading: [
- big_rigg_ss_loading_0_7,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_7 {
- loaded: [
- big_rigg_ss_loaded_0_7,
- ];
- loading: [
- big_rigg_ss_loaded_0_7,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_7, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_7;
- 1..99: return big_rigg_sg_loading_0_7;
- return big_rigg_sg_loaded_0_7;
- }
- spriteset(big_rigg_ss_loading_0_8, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 480 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_8, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 480 + 70)
- }
- spritegroup big_rigg_sg_empty_0_8 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_8 {
- loaded: [
- big_rigg_ss_loading_0_8,
- ];
- loading: [
- big_rigg_ss_loading_0_8,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_8 {
- loaded: [
- big_rigg_ss_loaded_0_8,
- ];
- loading: [
- big_rigg_ss_loaded_0_8,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_8, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_8;
- 1..99: return big_rigg_sg_loading_0_8;
- return big_rigg_sg_loaded_0_8;
- }
- spriteset(big_rigg_ss_loading_0_9, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 540 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_9, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 540 + 70)
- }
- spritegroup big_rigg_sg_empty_0_9 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_9 {
- loaded: [
- big_rigg_ss_loading_0_9,
- ];
- loading: [
- big_rigg_ss_loading_0_9,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_9 {
- loaded: [
- big_rigg_ss_loaded_0_9,
- ];
- loading: [
- big_rigg_ss_loaded_0_9,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_9, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_9;
- 1..99: return big_rigg_sg_loading_0_9;
- return big_rigg_sg_loaded_0_9;
- }
- spriteset(big_rigg_ss_loading_0_10, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 600 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_10, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 600 + 70)
- }
- spritegroup big_rigg_sg_empty_0_10 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_10 {
- loaded: [
- big_rigg_ss_loading_0_10,
- ];
- loading: [
- big_rigg_ss_loading_0_10,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_10 {
- loaded: [
- big_rigg_ss_loaded_0_10,
- ];
- loading: [
- big_rigg_ss_loaded_0_10,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_10, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_10;
- 1..99: return big_rigg_sg_loading_0_10;
- return big_rigg_sg_loaded_0_10;
- }
- spriteset(big_rigg_ss_loading_0_11, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 660 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_11, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 660 + 70)
- }
- spritegroup big_rigg_sg_empty_0_11 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_11 {
- loaded: [
- big_rigg_ss_loading_0_11,
- ];
- loading: [
- big_rigg_ss_loading_0_11,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_11 {
- loaded: [
- big_rigg_ss_loaded_0_11,
- ];
- loading: [
- big_rigg_ss_loaded_0_11,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_11, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_11;
- 1..99: return big_rigg_sg_loading_0_11;
- return big_rigg_sg_loaded_0_11;
- }
- spriteset(big_rigg_ss_loading_0_12, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 720 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_12, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 720 + 70)
- }
- spritegroup big_rigg_sg_empty_0_12 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_12 {
- loaded: [
- big_rigg_ss_loading_0_12,
- ];
- loading: [
- big_rigg_ss_loading_0_12,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_12 {
- loaded: [
- big_rigg_ss_loaded_0_12,
- ];
- loading: [
- big_rigg_ss_loaded_0_12,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_12, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_12;
- 1..99: return big_rigg_sg_loading_0_12;
- return big_rigg_sg_loaded_0_12;
- }
- spriteset(big_rigg_ss_loading_0_13, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 780 + 40)
- }
- spriteset(big_rigg_ss_loaded_0_13, "generated/graphics/big_rigg_0.png") {
- spriteset_template_big_rigg(0 + 780 + 70)
- }
- spritegroup big_rigg_sg_empty_0_13 {
- loaded: [
- big_rigg_ss_empty_0,
- ];
- loading: [
- big_rigg_ss_empty_0,
- ];
- }
- spritegroup big_rigg_sg_loading_0_13 {
- loaded: [
- big_rigg_ss_loading_0_13,
- ];
- loading: [
- big_rigg_ss_loading_0_13,
- ];
- }
- spritegroup big_rigg_sg_loaded_0_13 {
- loaded: [
- big_rigg_ss_loaded_0_13,
- ];
- loading: [
- big_rigg_ss_loaded_0_13,
- ];
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_percent_loaded_0_13, cargo_count*100/cargo_capacity) {
- 0: return big_rigg_sg_empty_0_13;
- 1..99: return big_rigg_sg_loading_0_13;
- return big_rigg_sg_loaded_0_13;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_JAVA, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_7;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_WATR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_BEER, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_STEL, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_11;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_GOOD, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_8;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_WDPR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_12;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_NUTS, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_9;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_RFPR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_MILK, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_EOIL, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_PETR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_PAPR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_10;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_COPR, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_3;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_FRUT, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_6;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_FMSP, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_5;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_ENSP, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_4;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_WOOD, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_13;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_DYES, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_BDMT, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_2;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_OIL_, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_1;
- }
- random_switch (FEAT_ROADVEHS, SELF,big_rigg_switch_graphics_0_generic_cargos, bitmask(TRIGGER_VEHICLE_ANY_LOAD)) {
- 1: return big_rigg_switch_graphics_percent_loaded_0_0;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_0, cargo_type_in_veh) {
- JAVA: return big_rigg_switch_graphics_0_JAVA;
- WATR: return big_rigg_switch_graphics_0_WATR;
- BEER: return big_rigg_switch_graphics_0_BEER;
- STEL: return big_rigg_switch_graphics_0_STEL;
- GOOD: return big_rigg_switch_graphics_0_GOOD;
- WDPR: return big_rigg_switch_graphics_0_WDPR;
- NUTS: return big_rigg_switch_graphics_0_NUTS;
- RFPR: return big_rigg_switch_graphics_0_RFPR;
- MILK: return big_rigg_switch_graphics_0_MILK;
- EOIL: return big_rigg_switch_graphics_0_EOIL;
- PETR: return big_rigg_switch_graphics_0_PETR;
- PAPR: return big_rigg_switch_graphics_0_PAPR;
- COPR: return big_rigg_switch_graphics_0_COPR;
- FRUT: return big_rigg_switch_graphics_0_FRUT;
- FMSP: return big_rigg_switch_graphics_0_FMSP;
- ENSP: return big_rigg_switch_graphics_0_ENSP;
- WOOD: return big_rigg_switch_graphics_0_WOOD;
- DYES: return big_rigg_switch_graphics_0_DYES;
- BDMT: return big_rigg_switch_graphics_0_BDMT;
- OIL_: return big_rigg_switch_graphics_0_OIL_;
- return big_rigg_switch_graphics_0_generic_cargos;
- }
- random_switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_random_0) {
- 1: return big_rigg_switch_graphics_0;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics_by_year, build_year) {
- 0..5000000:big_rigg_switch_graphics_random_0;
- return big_rigg_switch_graphics_random_0;
- }
- // show default graphics, or special cases like depot? (purchase is handled separately using purchase cb)
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_graphics, extra_callback_info1) {
- 0x10: return big_rigg_switch_graphics_by_year;
- return big_rigg_switch_graphics_by_year;
- }
- // buy menu graphics
- spriteset(big_rigg_ss_purchase, "generated/graphics/big_rigg_0.png") {
- spriteset_template_purchase_big_rigg()
- }
- spritegroup big_rigg_sg_purchase {
- loaded: [
- big_rigg_ss_purchase,
- ];
- loading: [
- big_rigg_ss_purchase,
- ];
- }
- // -- capacity determined according to specific labels that might need to be handled, and otherwise cargo class -- //
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_cargo_capacity_by_cargo_0, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 28;
- bitmask(CC_ARMOURED): return 28;
- return 14;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_cargo_capacity_by_cargo_1, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 40;
- bitmask(CC_ARMOURED): return 40;
- return 20;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_cargo_capacity_by_cargo_2, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 54;
- bitmask(CC_ARMOURED): return 54;
- return 27;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_cargo_capacity, param_adjust_vehicle_capacity) {
- 0: big_rigg_switch_cargo_capacity_by_cargo_0;
- 1: big_rigg_switch_cargo_capacity_by_cargo_1;
- 2: big_rigg_switch_cargo_capacity_by_cargo_2;
- }
- // -- loading speed also determined by capacity, which varies by cargo -- //
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_loading_speed_by_cargo_0, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 3;
- bitmask(CC_ARMOURED): return 3;
- return 2;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_loading_speed_by_cargo_1, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 4;
- bitmask(CC_ARMOURED): return 4;
- return 2;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_loading_speed_by_cargo_2, cargo_classes & bitmask(CC_MAIL, CC_ARMOURED)) {
- bitmask(CC_MAIL): return 5;
- bitmask(CC_ARMOURED): return 5;
- return 3;
- }
- switch (FEAT_ROADVEHS, SELF, big_rigg_switch_loading_speed, param_adjust_vehicle_capacity) {
- 0: big_rigg_switch_loading_speed_by_cargo_0;
- 1: big_rigg_switch_loading_speed_by_cargo_1;
- 2: big_rigg_switch_loading_speed_by_cargo_2;
- }
- // -- some switches are common to all vehicles so included with properties -- //
- // -- smoke -- //
- switch (FEAT_ROADVEHS, SELF, big_rigg_create_visual_effect, 0) {
- return 0;
- }
- // -- props -- //
- item(FEAT_ROADVEHS, big_rigg, 660) {
- property {
- name: string(STR_NAME_big_rigg, string(STR_NAME_SUFFIX_FLATBED_TRUCK));
- cargo_capacity: 14;
- sprite_id: SPRITE_ID_NEW_ROADVEH; //enable new graphics - nml constant
- introduction_date: date(1997,01,01); // consist just supplies intro year - openttd randomises intro dates a bit anyway
- power: 700hp;
- speed: 80mph;
- weight: 16.0ton;
- tractive_effort_coefficient: 0.7;
- cost_factor: 44.770833333333336;
- running_cost_base: RUNNING_COST_ROADVEH;
- running_cost_factor: 89.54166666666667;
- model_life: VEHICLE_NEVER_EXPIRES;
- vehicle_life: 40;
- reliability_decay: 20; // default value
- retire_early: -10;
- sound_effect: SOUND_TRUCK_START_2;
- refit_cost: 0; // this needs to be 0 if we want autorefit without using cb
- refittable_cargo_classes: bitmask(CC_PIECE_GOODS);
- non_refittable_cargo_classes: bitmask(); // don't set non-refittable classes, increases likelihood of breaking cargo support
- cargo_allow_refit: [GOOD];
- cargo_disallow_refit: [FOOD,FISH,LVST,FRUT,BEER,MILK,JAVA,SUGR,NUTS,EOIL];
- default_cargo_type: STEL;
- cargo_age_period: 185;
- misc_flags: bitmask(ROADVEH_FLAG_2CC,ROADVEH_FLAG_AUTOREFIT); // nml constants
- length: 5;
- effect_spawn_model: EFFECT_SPAWN_MODEL_DIESEL;
- }
- graphics {
- cargo_capacity: big_rigg_switch_cargo_capacity;
- purchase_cargo_capacity: big_rigg_switch_cargo_capacity;
- loading_speed: big_rigg_switch_loading_speed;
- default: big_rigg_switch_graphics;
- purchase: big_rigg_sg_purchase;
- create_effect: big_rigg_create_visual_effect;
- articulated_part: big_rigg_articulated_cb_switch;
- }
- }
- if (param[1]==0) {
- item(FEAT_ROADVEHS, big_rigg, 660) {
- property {
- climates_available: ALL_CLIMATES;
- }
- }
- }
- // -- end 660 --