Loading

Paste #ps48tlzod

  1. random_switch (FEAT_TRAINS, SELF, random_railcom4_pass){
  2. 1: return spriteset_railcom4_black_pass;
  3. 1: return spriteset_railcom4_gray_pass;
  4. 1: return spriteset_railcom4_white_pass;
  5. 1: return spriteset_railcom4_ltblue_pass;
  6. 1: return spriteset_railcom4_blue_pass;
  7. 1: return spriteset_railcom4_darkblue_pass;
  8. 1: return spriteset_railcom4_mauve_pass;
  9. 1: return spriteset_railcom4_purple_pass;
  10. 1: return spriteset_railcom4_pink_pass;
  11. 1: return spriteset_railcom4_brown_pass;
  12. 1: return spriteset_railcom4_red_pass;
  13. 1: return spriteset_railcom4_orange_pass;
  14. 1: return spriteset_railcom4_yellow_pass;
  15. 1: return spriteset_railcom4_green_pass;
  16. 1: return spriteset_railcom4_palegreen_pass;
  17. 1: return spriteset_railcom4_darkgreen_pass;
  18. } //prvotní random - chápu
  19.  
  20. switch(FEAT_TRAINS, SELF, switch_subtypes_railcom4_pass, cargo_subtype){
  21. 0: return spriteset_railcom4_CC_pass;
  22. 1: return random_railcom4_pass; //randomswitch later
  23. 2: return spriteset_railcom4_black_pass;
  24. 3: return spriteset_railcom4_gray_pass;
  25. 4: return spriteset_railcom4_white_pass;
  26. 5: return spriteset_railcom4_ltblue_pass;
  27. 6: return spriteset_railcom4_blue_pass;
  28. 7: return spriteset_railcom4_darkblue_pass;
  29. 8: return spriteset_railcom4_mauve_pass;
  30. 9: return spriteset_railcom4_purple_pass;
  31. 10: return spriteset_railcom4_pink_pass;
  32. 11: return spriteset_railcom4_brown_pass;
  33. 12: return spriteset_railcom4_red_pass;
  34. 13: return spriteset_railcom4_orange_pass;
  35. 14: return spriteset_railcom4_yellow_pass;
  36. 15: return spriteset_railcom4_green_pass;
  37. 16: return spriteset_railcom4_palegreen_pass;
  38. 17: return spriteset_railcom4_darkgreen_pass;
  39. return spriteset_railcom4_CC_pass;
  40. } //toto nechápu. je to jakoby to samé co random jen je na druhém místě odkaz na random?
  41.  
  42. switch(FEAT_TRAINS, SELF, switch_railcom4_x, cargo_type_in_veh){
  43. PASS: switch_subtypes_railcom4_pass;
  44. MAIL: switch_subtypes_railcom4_mail;
  45. GOLD: switch_subtypes_railcom4_gold;
  46. VALU: switch_subtypes_railcom4_gold;
  47. DIAM: switch_subtypes_railcom4_gold;
  48. return switch_subtypes_railcom4_pass;
  49. } //taky nevím na co je - nějaké rozřazení nákladů?
  50.  
  51. switch(FEAT_TRAINS, SELF, switch_railcom4_rear, position_in_consist_from_end){
  52. 0: switch_railcom4_x;
  53. return switch_subtypes_railcom4_inner_x;
  54. }
  55. switch(FEAT_TRAINS, SELF, switch_railcom4_front, position_in_consist){
  56. 0: switch_railcom4_x;
  57. return switch_railcom4_rear;
  58. }//toto je asi řazení skrze soupravu ne? přední, zadní vagony atd
  59.  
  60. a pak už jen přiřazení posledních dvou switchu do samotné grafiky v itemu

Comments