engineering_supplies_random.diff

Return to the initial folder
  1. diff -r 3b4679ec5700 src/gfx/flatbed_truck_engineering_supplies.xcf
  2. Binary file src/gfx/flatbed_truck_engineering_supplies.xcf has changed
  3. diff -r 3b4679ec5700 src/gfx/png_source_list
  4. --- a/src/gfx/png_source_list	Wed Sep 07 15:37:59 2011 +0200
  5. +++ b/src/gfx/png_source_list	Wed Sep 07 18:23:41 2011 +0200
  6. @@ -86,4 +86,13 @@
  7.  src/gfx/flatbed_truck/flatbed_truck_1_lumber.gimp.png	src/gfx/flatbed_truck_wood.xcf	0 4
  8.  src/gfx/flatbed_truck/flatbed_truck_2_lumber.gimp.png	src/gfx/flatbed_truck_wood.xcf	1 4
  9.  src/gfx/flatbed_truck/flatbed_truck_3_lumber.gimp.png	src/gfx/flatbed_truck_wood.xcf	2 4
  10. -
  11. +# Engineering supplies model
  12. +src/gfx/flatbed_truck/flatbed_truck_1_engineering_supplies_1.gimp.png	src/gfx/flatbed_truck_engineering_supplies.xcf	0 3
  13. +src/gfx/flatbed_truck/flatbed_truck_2_engineering_supplies_1.gimp.png	src/gfx/flatbed_truck_engineering_supplies.xcf	1 3
  14. +src/gfx/flatbed_truck/flatbed_truck_3_engineering_supplies_1.gimp.png	src/gfx/flatbed_truck_engineering_supplies.xcf	2 3
  15. +src/gfx/flatbed_truck/flatbed_truck_1_engineering_supplies_2.gimp.png	src/gfx/flatbed_truck_engineering_supplies.xcf	0 4
  16. +src/gfx/flatbed_truck/flatbed_truck_2_engineering_supplies_2.gimp.png	src/gfx/flatbed_truck_engineering_supplies.xcf	1 4
  17. +src/gfx/flatbed_truck/flatbed_truck_3_engineering_supplies_2.gimp.png	src/gfx/flatbed_truck_engineering_supplies.xcf	2 4
  18. +src/gfx/flatbed_truck/flatbed_truck_1_engineering_supplies_3.gimp.png	src/gfx/flatbed_truck_engineering_supplies.xcf	0 5
  19. +src/gfx/flatbed_truck/flatbed_truck_2_engineering_supplies_3.gimp.png	src/gfx/flatbed_truck_engineering_supplies.xcf	1 5
  20. +src/gfx/flatbed_truck/flatbed_truck_3_engineering_supplies_3.gimp.png	src/gfx/flatbed_truck_engineering_supplies.xcf	2 5
  21. diff -r 3b4679ec5700 src/sprite_templates.pnml
  22. --- a/src/sprite_templates.pnml	Wed Sep 07 15:37:59 2011 +0200
  23. +++ b/src/sprite_templates.pnml	Wed Sep 07 18:23:41 2011 +0200
  24. @@ -15,6 +15,17 @@
  25.  	[ 224 + x, 0, 20, 16,  -6,  -7]
  26.  }
  27.  
  28. +template tmpl_ensp_truck(x) {
  29. +	[   0 + x, 0,  8, 18,  -3, -10]
  30. +	[  16 + x, 0, 20, 16, -14,  -7]
  31. +	[  48 + x, 0, 28, 13, -15,  -6]
  32. +	[  96 + x, 0, 20, 16,  -6,  -7]
  33. +	[ 128 + x, 0,  8, 18,  -3, -10]
  34. +	[ 144 + x, 0, 20, 16, -14,  -7]
  35. +	[ 176 + x, 0, 28, 13, -15,  -6]
  36. +	[ 224 + x, 0, 20, 16,  -6,  -7]
  37. +}
  38. +
  39.  template tmpl_tram(x, y) {
  40.  	[  x,     y,  8, 18,   -3, -10]
  41.  	[ 16 + x, y, 20, 18,  -14,  -5]
  42. diff -r 3b4679ec5700 src/truck_flatbed.pnml
  43. --- a/src/truck_flatbed.pnml	Wed Sep 07 15:37:59 2011 +0200
  44. +++ b/src/truck_flatbed.pnml	Wed Sep 07 18:23:41 2011 +0200
  45. @@ -121,6 +121,34 @@
  46.  	loading: [flatbed_truck_1_plastics_empty, flatbed_truck_1_plastics_full];
  47.  }
  48.  
  49. +/* Engineering Supplies */
  50. +spriteset(flatbed_truck_1_engineering_supplies_1_empty, "src/gfx/flatbed_truck/flatbed_truck_1_engineering_supplies_1.gimp.png") { tmpl_ensp_truck(0) }
  51. +spriteset(flatbed_truck_1_engineering_supplies_1_full,  "src/gfx/flatbed_truck/flatbed_truck_1_engineering_supplies_1.gimp.png") { tmpl_ensp_truck(260) }
  52. +spritegroup flatbed_truck_1_engineering_supplies_1 {
  53. +	loaded:  [flatbed_truck_1_engineering_supplies_1_empty, flatbed_truck_1_engineering_supplies_1_full];
  54. +	loading: [flatbed_truck_1_engineering_supplies_1_empty, flatbed_truck_1_engineering_supplies_1_full];
  55. +}
  56. +
  57. +spriteset(flatbed_truck_1_engineering_supplies_2_empty, "src/gfx/flatbed_truck/flatbed_truck_1_engineering_supplies_2.gimp.png") { tmpl_ensp_truck(0) }
  58. +spriteset(flatbed_truck_1_engineering_supplies_2_full,  "src/gfx/flatbed_truck/flatbed_truck_1_engineering_supplies_2.gimp.png") { tmpl_ensp_truck(260) }
  59. +spritegroup flatbed_truck_1_engineering_supplies_2 {
  60. +	loaded:  [flatbed_truck_1_engineering_supplies_2_empty, flatbed_truck_1_engineering_supplies_2_full];
  61. +	loading: [flatbed_truck_1_engineering_supplies_2_empty, flatbed_truck_1_engineering_supplies_2_full];
  62. +}
  63. +
  64. +spriteset(flatbed_truck_1_engineering_supplies_3_empty, "src/gfx/flatbed_truck/flatbed_truck_1_engineering_supplies_3.gimp.png") { tmpl_ensp_truck(0) }
  65. +spriteset(flatbed_truck_1_engineering_supplies_3_full,  "src/gfx/flatbed_truck/flatbed_truck_1_engineering_supplies_3.gimp.png") { tmpl_ensp_truck(260) }
  66. +spritegroup flatbed_truck_1_engineering_supplies_3 {
  67. +	loaded:  [flatbed_truck_1_engineering_supplies_3_empty, flatbed_truck_1_engineering_supplies_3_full];
  68. +	loading: [flatbed_truck_1_engineering_supplies_3_empty, flatbed_truck_1_engineering_supplies_3_full];
  69. +}
  70. +
  71. +random_switch (FEAT_ROADVEHS, SELF, flatbed_truck_1_ensp_switch, bitmask(TRIGGER_VEHICLE_UNLOAD_ALL)) {
  72. +	1: flatbed_truck_1_engineering_supplies_1;
  73. +	1: flatbed_truck_1_engineering_supplies_2;
  74. +	1: flatbed_truck_1_engineering_supplies_3;
  75. +}
  76. +
  77.  switch (FEAT_ROADVEHS, SELF, flatbed_truck_1_sprites_switch, cargo_type_in_veh) {
  78.  	BATT: flatbed_truck_batteries;
  79.  	BUBL: flatbed_truck_bubbles;
  80. @@ -134,6 +162,7 @@
  81.  	WDPR: flatbed_truck_1_lumber;
  82.  	RFPR: flatbed_truck_1_chemicals;
  83.  	PLAS: flatbed_truck_1_plastics;
  84. +	ENSP: flatbed_truck_1_ensp_switch;
  85.  	flatbed_truck_1_goods; // Default to Goods.
  86.  }
  87.  
  88. @@ -250,6 +279,34 @@
  89.  	loading: [flatbed_truck_2_plastics_empty, flatbed_truck_2_plastics_full];
  90.  }
  91.  
  92. +/* Engineering Supplies */
  93. +spriteset(flatbed_truck_2_engineering_supplies_1_empty, "src/gfx/flatbed_truck/flatbed_truck_2_engineering_supplies_1.gimp.png") { tmpl_ensp_truck(0) }
  94. +spriteset(flatbed_truck_2_engineering_supplies_1_full,  "src/gfx/flatbed_truck/flatbed_truck_2_engineering_supplies_1.gimp.png") { tmpl_ensp_truck(260) }
  95. +spritegroup flatbed_truck_2_engineering_supplies_1 {
  96. +	loaded:  [flatbed_truck_2_engineering_supplies_1_empty, flatbed_truck_2_engineering_supplies_1_full];
  97. +	loading: [flatbed_truck_2_engineering_supplies_1_empty, flatbed_truck_2_engineering_supplies_1_full];
  98. +}
  99. +
  100. +spriteset(flatbed_truck_2_engineering_supplies_2_empty, "src/gfx/flatbed_truck/flatbed_truck_2_engineering_supplies_2.gimp.png") { tmpl_ensp_truck(0) }
  101. +spriteset(flatbed_truck_2_engineering_supplies_2_full,  "src/gfx/flatbed_truck/flatbed_truck_2_engineering_supplies_2.gimp.png") { tmpl_ensp_truck(260) }
  102. +spritegroup flatbed_truck_2_engineering_supplies_2 {
  103. +	loaded:  [flatbed_truck_2_engineering_supplies_2_empty, flatbed_truck_2_engineering_supplies_2_full];
  104. +	loading: [flatbed_truck_2_engineering_supplies_2_empty, flatbed_truck_2_engineering_supplies_2_full];
  105. +}
  106. +
  107. +spriteset(flatbed_truck_2_engineering_supplies_3_empty, "src/gfx/flatbed_truck/flatbed_truck_2_engineering_supplies_3.gimp.png") { tmpl_ensp_truck(0) }
  108. +spriteset(flatbed_truck_2_engineering_supplies_3_full,  "src/gfx/flatbed_truck/flatbed_truck_2_engineering_supplies_3.gimp.png") { tmpl_ensp_truck(260) }
  109. +spritegroup flatbed_truck_2_engineering_supplies_3 {
  110. +	loaded:  [flatbed_truck_2_engineering_supplies_3_empty, flatbed_truck_2_engineering_supplies_3_full];
  111. +	loading: [flatbed_truck_2_engineering_supplies_3_empty, flatbed_truck_2_engineering_supplies_3_full];
  112. +}
  113. +
  114. +random_switch (FEAT_ROADVEHS, SELF, flatbed_truck_2_ensp_switch, bitmask(TRIGGER_VEHICLE_UNLOAD_ALL)) {
  115. +	1: flatbed_truck_2_engineering_supplies_1;
  116. +	1: flatbed_truck_2_engineering_supplies_2;
  117. +	1: flatbed_truck_2_engineering_supplies_3;
  118. +}
  119. +
  120.  switch (FEAT_ROADVEHS, SELF, flatbed_truck_2_sprites_switch, cargo_type_in_veh) {
  121.  	BATT: flatbed_truck_batteries;
  122.  	BUBL: flatbed_truck_bubbles;
  123. @@ -263,6 +320,7 @@
  124.  	WDPR: flatbed_truck_2_lumber;
  125.  	RFPR: flatbed_truck_2_chemicals;
  126.  	PLAS: flatbed_truck_2_plastics;
  127. +	ENSP: flatbed_truck_2_ensp_switch;
  128.  	flatbed_truck_2_goods; // Default to Goods.
  129.  }
  130.  
  131. @@ -379,6 +437,34 @@
  132.  	loading: [flatbed_truck_3_plastics_empty, flatbed_truck_3_plastics_full];
  133.  }
  134.  
  135. +/* Engineering Supplies */
  136. +spriteset(flatbed_truck_3_engineering_supplies_1_empty, "src/gfx/flatbed_truck/flatbed_truck_3_engineering_supplies_1.gimp.png") { tmpl_ensp_truck(0) }
  137. +spriteset(flatbed_truck_3_engineering_supplies_1_full,  "src/gfx/flatbed_truck/flatbed_truck_3_engineering_supplies_1.gimp.png") { tmpl_ensp_truck(260) }
  138. +spritegroup flatbed_truck_3_engineering_supplies_1 {
  139. +	loaded:  [flatbed_truck_3_engineering_supplies_1_empty, flatbed_truck_3_engineering_supplies_1_full];
  140. +	loading: [flatbed_truck_3_engineering_supplies_1_empty, flatbed_truck_3_engineering_supplies_1_full];
  141. +}
  142. +
  143. +spriteset(flatbed_truck_3_engineering_supplies_2_empty, "src/gfx/flatbed_truck/flatbed_truck_3_engineering_supplies_2.gimp.png") { tmpl_ensp_truck(0) }
  144. +spriteset(flatbed_truck_3_engineering_supplies_2_full,  "src/gfx/flatbed_truck/flatbed_truck_3_engineering_supplies_2.gimp.png") { tmpl_ensp_truck(260) }
  145. +spritegroup flatbed_truck_3_engineering_supplies_2 {
  146. +	loaded:  [flatbed_truck_3_engineering_supplies_2_empty, flatbed_truck_3_engineering_supplies_2_full];
  147. +	loading: [flatbed_truck_3_engineering_supplies_2_empty, flatbed_truck_3_engineering_supplies_2_full];
  148. +}
  149. +
  150. +spriteset(flatbed_truck_3_engineering_supplies_3_empty, "src/gfx/flatbed_truck/flatbed_truck_3_engineering_supplies_3.gimp.png") { tmpl_ensp_truck(0) }
  151. +spriteset(flatbed_truck_3_engineering_supplies_3_full,  "src/gfx/flatbed_truck/flatbed_truck_3_engineering_supplies_3.gimp.png") { tmpl_ensp_truck(260) }
  152. +spritegroup flatbed_truck_3_engineering_supplies_3 {
  153. +	loaded:  [flatbed_truck_3_engineering_supplies_3_empty, flatbed_truck_3_engineering_supplies_3_full];
  154. +	loading: [flatbed_truck_3_engineering_supplies_3_empty, flatbed_truck_3_engineering_supplies_3_full];
  155. +}
  156. +
  157. +random_switch (FEAT_ROADVEHS, SELF, flatbed_truck_3_ensp_switch, bitmask(TRIGGER_VEHICLE_UNLOAD_ALL)) {
  158. +	1: flatbed_truck_3_engineering_supplies_1;
  159. +	1: flatbed_truck_3_engineering_supplies_2;
  160. +	1: flatbed_truck_3_engineering_supplies_3;
  161. +}
  162. +
  163.  switch (FEAT_ROADVEHS, SELF, flatbed_truck_3_sprites_switch, cargo_type_in_veh) {
  164.  	BATT: flatbed_truck_batteries;
  165.  	BUBL: flatbed_truck_bubbles;
  166. @@ -392,6 +478,7 @@
  167.  	WDPR: flatbed_truck_3_lumber;
  168.  	RFPR: flatbed_truck_3_chemicals;
  169.  	PLAS: flatbed_truck_3_plastics;
  170. +	ENSP: flatbed_truck_3_ensp_switch;
  171.  	flatbed_truck_3_goods; // Default to Goods.
  172.  }
  173.  
  174.  

Return to top