Loading

Paste #phgxuq5sl

  1. // Random switch
  2. random_switch (FEAT_TRAINS, SELF, random_sgs){
  3. 1: return spritegroup_sgs1;
  4. 1: return spritegroup_sgs2;
  5. 1: return spritegroup_sgs3;
  6. }
  7.  
  8. switch(FEAT_TRAINS, SELF, switch_subtypes_sgs, cargo_subtype){
  9. 0: return spritegroup_sgs1;
  10. 1: return random_sgs;
  11. 2: return spritegroup_sgs2;
  12. 3: return spritegroup_sgs3;
  13. return spritegroup_sgs1;
  14. }
  15.  
  16. switch(FEAT_TRAINS, SELF, switch_sgs_x, cargo_type_in_veh){
  17. return switch_subtypes_sgs;
  18. }
  19.  
  20. ......
  21.  
  22.  
  23. graphics {
  24.         default: switch_sgs_x;
  25.     }

Comments