Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
ABAP
ActionScript
ActionScript 3
Ada
AIMMS3
ALGOL 68
Apache configuration
AppleScript
Apt sources
ARM ASSEMBLER
ASM
ASP
asymptote
Autoconf
Autohotkey
AutoIt
AviSynth
awk
BASCOM AVR
Bash
Basic4GL
BibTeX
BlitzBasic
bnf
Boo
Brainfuck
C
C#
C (LoadRunner)
C (Mac)
C (WinAPI)
C++
C++ (Qt)
C++ (WinAPI)
CAD DCL
CAD Lisp
CFDG
ChaiScript
Chapel
CIL
Clojure
CMake
COBOL
CoffeeScript
ColdFusion
CSS
Cuesheet
D
Dart
DCL
DCPU-16 Assembly
DCS
Delphi
Diff
DIV
DOS
dot
E
ECMAScript
Eiffel
eMail (mbox)
EPC
Erlang
Euphoria
EZT
F#
Falcon
FO (abas-ERP)
Formula One
Fortran
FreeBasic
FreeSWITCH
GADV 4CS
GAMBAS
GDB
genero
Genie
glSlang
GML
GNU/Octave
GNU Gettext
GNU make
Gnuplot
Go
Groovy
GwBasic
Haskell
Haxe
HicEst
HQ9+
HTML
HTML5
Icon
INI
Inno
INTERCAL
Io
ISPF Panel
J
Java
Java(TM) 2 Platform Standard Edition 5.0
Javascript
JCL
jQuery
KiXtart
KLone C
KLone C++
LaTeX
LDIF
Liberty BASIC
Lisp
LLVM Intermediate Representation
Locomotive Basic
Logtalk
LOLcode
Lotus Notes @Formulas
LotusScript
LScript
LSL2
Lua
MagikSF
MapBasic
Matlab M
Microchip Assembler
Microsoft Registry
mIRC Scripting
MMIX
Modula-2
Modula-3
MOS 6502 (6510) ACME Cross Assembler format
MOS 6502 (6510) Kick Assembler format
MOS 6502 (6510) TASM/64TASS 1.46 Assembler format
Motorola 68000 - HiSoft Devpac ST 2 Assembler format
Motorola 68000 Assembler
MXML
MySQL
Nagios
NetRexx
newlisp
nginx
Nimrod
NML NewGRF Meta Language
NSIS
Oberon-2
Objeck Programming Language
Objective-C
OCaml
OCaml (brief)
ooRexx
OpenBSD Packet Filter
OpenOffice.org Basic
Oracle 8 SQL
Oracle 11 SQL
Oxygene
OZ
ParaSail
PARI/GP
Pascal
PCRE
per
Perl
Perl 6
PHP
PHP (brief)
PIC16
Pike
Pixel Bender 1.0
PL/I
PL/SQL
PostgreSQL
PostScript
POVRAY
PowerBuilder
PowerShell
ProFTPd configuration
Progress
Prolog
PROPERTIES
ProvideX
Puppet
PureBasic
Python
Python for S60
q/kdb+
QBasic/QuickBASIC
QML
R / S+
Racket
Rails
RBScript
REBOL
rexx
robots.txt
RPM Specification File
Ruby
Rust
SAS
Scala
Scheme
SciLab
SCL
sdlBasic
Smalltalk
Smarty
SPARK
SPARQL
SQL
Squirrel Script
Squirrel Script with OpenTTD AI/GS
StandardML
StoneScript
SystemVerilog
T-SQL
TCL
Tera Term Macro
Text
thinBasic
TypoScript
Unicon (Unified Extended Dialect of Icon)
Uno Idl
Unreal Script
UPC
Urbi
Vala
vb.net
VBScript
Vedit macro language
Verilog
VHDL
Vim Script
Visual Basic
Visual Fox Pro
Visual Prolog
Whitespace
Whois (RPSL format)
Winbatch
X++
XBasic
XML
Xorg configuration
YAML
ZiLOG Z80 Assembler
ZXBasic
// graphics chain for containers random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_reefer_DFLT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_reefer_DFLT_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_box_DFLT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_box_DFLT_24px_0; 1: return switch_intermodal_containers_default_box_DFLT_24px_1; 1: return switch_intermodal_containers_default_box_DFLT_24px_2; 1: return switch_intermodal_containers_default_box_DFLT_24px_3; 1: return switch_intermodal_containers_default_box_DFLT_24px_4; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_cryo_tank_DFLT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_cryo_tank_DFLT_24px_0; 1: return switch_intermodal_containers_default_cryo_tank_DFLT_24px_1; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_chemicals_tank_DFLT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_chemicals_tank_DFLT_24px_0; 1: return switch_intermodal_containers_default_chemicals_tank_DFLT_24px_1; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_livestock_DFLT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_livestock_DFLT_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_DFLT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_tank_DFLT_24px_0; 1: return switch_intermodal_containers_default_tank_DFLT_24px_1; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_edibles_tank_DFLT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_edibles_tank_DFLT_24px_0; 1: return switch_intermodal_containers_default_edibles_tank_DFLT_24px_1; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_OIL_, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_tank_OIL__24px_0; 1: return switch_intermodal_containers_default_tank_OIL__24px_1; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SLAG, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_SLAG_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_KAOL, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_KAOL_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_AORE, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_AORE_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_COKE, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_COKE_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_NITR, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_NITR_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_CLAY, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_CLAY_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_POTA, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_POTA_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_COAL, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_COAL_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_PETR, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_tank_PETR_24px_0; 1: return switch_intermodal_containers_default_tank_PETR_24px_1; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_PORE, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_PORE_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_CORE, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_CORE_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_CTAR, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_tank_CTAR_24px_0; 1: return switch_intermodal_containers_default_tank_CTAR_24px_1; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_IORE, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_IORE_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_GRVL, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_GRVL_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_cryo_tank_CHLO, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_cryo_tank_CHLO_24px_0; 1: return switch_intermodal_containers_default_cryo_tank_CHLO_24px_1; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SCMT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_SCMT_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_SULP, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_tank_SULP_24px_0; 1: return switch_intermodal_containers_default_tank_SULP_24px_1; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_CASS, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_CASS_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_PHOS, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_PHOS_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_RUBR, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_tank_RUBR_24px_0; 1: return switch_intermodal_containers_default_tank_RUBR_24px_1; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SASH, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_SASH_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SAND, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_SAND_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_LIME, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_LIME_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SALT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_SALT_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_MNO2, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_MNO2_24px_0; } random_switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SGBT, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) { 1: return switch_intermodal_containers_default_bulk_SGBT_24px_0; } // check generic cargo classes // bulk class is explicitly not checked as there are no meaningful default bulk sprites switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_check_cargo_class_liquid, cargo_classes & bitmask(CC_LIQUID)) { 0: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_box_DFLT; return express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_DFLT; } switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_check_cargo_class_refrigerated, cargo_classes & bitmask(CC_REFRIGERATED)) { 0: express_intermodal_car_pony_gen_5B_switch_graphics_containers_check_cargo_class_liquid; return express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_reefer_DFLT; } // check explicit cargo labels switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_check_cargo_label, cargo_type_in_veh) { BEER: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_edibles_tank_DFLT; SALT: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SALT; CASS: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_CASS; POTA: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_POTA; CORE: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_CORE; SCMT: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SCMT; CHLO: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_cryo_tank_CHLO; NITR: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_NITR; WATR: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_edibles_tank_DFLT; RUBR: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_RUBR; SGBT: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SGBT; SLAG: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SLAG; ACID: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_chemicals_tank_DFLT; COAL: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_COAL; SASH: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SASH; COKE: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_COKE; SAND: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_SAND; AORE: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_AORE; PHOS: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_PHOS; CLAY: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_CLAY; MILK: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_edibles_tank_DFLT; KAOL: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_KAOL; CTAR: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_CTAR; IORE: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_IORE; O2__: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_cryo_tank_DFLT; FOOD: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_edibles_tank_DFLT; PETR: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_PETR; RFPR: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_chemicals_tank_DFLT; GRVL: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_GRVL; PORE: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_PORE; LIME: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_LIME; EOIL: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_edibles_tank_DFLT; MNO2: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_bulk_MNO2; SULP: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_SULP; LVST: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_livestock_DFLT; OIL_: express_intermodal_car_pony_gen_5B_switch_graphics_containers_random_tank_OIL_; return express_intermodal_car_pony_gen_5B_switch_graphics_containers_check_cargo_class_refrigerated; } switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers_check_cargo, cargo_count) { 0: return ss_intermodal_containers_empty; return express_intermodal_car_pony_gen_5B_switch_graphics_containers_check_cargo_label; } switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_containers, STORE_TEMP(base_sprite_2cc + 16 * company_colour2 + company_colour1, 0x100)) { return express_intermodal_car_pony_gen_5B_switch_graphics_containers_check_cargo; } // switch layers: base platform / containers switch (FEAT_TRAINS, SELF, express_intermodal_car_pony_gen_5B_switch_graphics_vehicle, getbits(extra_callback_info1, 8, 8)) { 0: return express_intermodal_car_pony_gen_5B_switch_graphics_platform_position_in_consist_entry_point; 1: return express_intermodal_car_pony_gen_5B_switch_graphics_containers; }
Mark as private
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
forever