Advertisement
Guest User

Untitled

a guest
May 13th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. //purchase menu
  2. spriteset (spriteset_EMU_SM7_purchase_v1, "gfx/emu/emu_sm7.png") { template_purchase(0) }
  3. spriteset (spriteset_EMU_SM7_purchase_v2, "gfx/emu/emu_sm7.png") { template_purchase(120) }
  4. //locomotive
  5. spriteset (spriteset_EMU_SM7_front_v1, "gfx/emu/emu_sm7.png") { template_8_8(0) }
  6. spriteset (spriteset_EMU_SM7_coach_v1, "gfx/emu/emu_sm7.png") { template_8_8(40) }
  7. spriteset (spriteset_EMU_SM7_end_v1, "gfx/emu/emu_sm7.png") { template_8_8(80) }
  8. spriteset (spriteset_EMU_SM7_front_v2, "gfx/emu/emu_sm7.png") { template_8_8(120) }
  9. spriteset (spriteset_EMU_SM7_coach_v2, "gfx/emu/emu_sm7.png") { template_8_8(160) }
  10. spriteset (spriteset_EMU_SM7_end_v2, "gfx/emu/emu_sm7.png") { template_8_8(200) }
  11.  
  12. switch(FEAT_TRAINS, SELF, switch_EMU_SM7_position_v1, (position_in_vehid_chain % 3)) {
  13. 1: return spriteset_EMU_SM7_coach_v1;
  14. 2: return spriteset_EMU_SM7_end_v1;
  15. return spriteset_EMU_SM7_front_v1;
  16. }
  17. switch(FEAT_TRAINS, SELF, switch_EMU_SM7_position_v2, (position_in_vehid_chain % 3)) {
  18. 1: return spriteset_EMU_SM7_coach_v2;
  19. 2: return spriteset_EMU_SM7_end_v2;
  20. return spriteset_EMU_SM7_front_v2;
  21. }
  22. switch(FEAT_TRAINS, SELF, switch_EMU_SM7_articulated, extra_callback_info1) {
  23. 1..2: return item_EMU_SM7;
  24. return CB_RESULT_NO_MORE_ARTICULATED_PARTS;
  25. }
  26. //switch for livery choice
  27. //defaul green, v2
  28. switch (FEAT_TRAINS, SELF, switch_EMU_SM7_liverychoice, cargo_subtype) {
  29. 1: return switch_EMU_SM7_position_v1;
  30. return switch_EMU_SM7_position_v2;
  31. }
  32. switch (FEAT_TRAINS, SELF, switch_EMU_SM7_subtypetext, cargo_subtype) {
  33. 1: return string(STR_SUBTYPE_BLUE, "");
  34. return string(STR_SUBTYPE_GREEN, "");
  35. }
  36. //power switch depending on railtype
  37. switch (FEAT_TRAINS, SELF, switch_EMU_SM7_power, current_railtype) {
  38. RAIL: return 1776;
  39. ELRL: return 2500;
  40. }
  41. switch(FEAT_TRAINS, SELF, switch_EMU_SM7_visual_effect_diesel, (position_in_vehid_chain % 3)) {
  42. 1: return visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER);
  43. return visual_effect_and_powered(VISUAL_EFFECT_DISABLE, 0, DISABLE_WAGON_POWER);
  44. }
  45. switch(FEAT_TRAINS, SELF, switch_EMU_SM7_visual_effect_electric, (position_in_vehid_chain % 3)) {
  46. 1: return visual_effect_and_powered(VISUAL_EFFECT_ELECTRIC, 0, DISABLE_WAGON_POWER);
  47. return visual_effect_and_powered(VISUAL_EFFECT_DISABLE, 0, DISABLE_WAGON_POWER);
  48. }
  49. switch(FEAT_TRAINS, SELF, switch_EMU_SM7_visual_effect_railtype, current_railtype) {
  50. RAIL: return switch_EMU_SM7_visual_effect_diesel;
  51. ELRL: return switch_EMU_SM7_visual_effect_electric;
  52. }
  53.  
  54. item (FEAT_TRAINS, item_EMU_SM7) {
  55. property {
  56. //common properties
  57. name: string(STR_NAME_EMU_SM7);
  58. climates_available: ALL_CLIMATES;
  59. introduction_date: date(2015,01,01);
  60. model_life: 35;
  61. vehicle_life: 35;
  62. reliability_decay: 20;
  63. loading_speed: 10;
  64. cost_factor: 120;
  65. running_cost_factor: 80;
  66. cargo_age_period: 185;
  67.  
  68. //train properties
  69. sprite_id: SPRITE_ID_NEW_TRAIN;
  70. speed: 160 km/h;
  71. misc_flags: 0;
  72. refit_cost: 0;
  73. track_type: sm7;
  74. ai_special_flag: 0;
  75. power: 1776 hpM;
  76. running_cost_base: RUNNING_COST_ELECTRIC;
  77. dual_headed: 0;
  78. default_cargo_type: PASS;
  79. cargo_capacity: 70;
  80. weight: 135 ton;
  81. engine_class: ENGINE_CLASS_DIESEL;
  82. extra_power_per_wagon: 0;
  83. tractive_effort_coefficient: 0.2;
  84. air_drag_coefficient: 0;
  85. length: 8;
  86. visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER);
  87. bitmask_vehicle_info: 0;
  88. CARGODEF_PASSENGER_VAN
  89. }
  90. graphics {
  91. cargo_capacity: 70;
  92. cargo_subtype_text: switch_EMU_SM7_subtypetext;
  93. purchase: spriteset_EMU_SM7_purchase_v2;
  94. articulated_part: switch_EMU_SM7_articulated;
  95. visual_effect_and_powered: switch_EMU_SM7_visual_effect_railtype;
  96. power: switch_EMU_SM7_power;
  97. default: switch_EMU_SM7_liverychoice;
  98. }
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement