CCG/Kind: Interior
Contents |
KIND: INTERIOR
This is the traincar interior.
Referenced by the interior tag in a traincar config.txt
An interior config.txt file has the ability to be setup using a mesh-table. This gives greater control over animations and allows for script implementation.
In the following example, the generic UP DD40 interior has scripted, animated wipers and a fan, both controlled by a switches. Also, when these switches are in the 'on' position, a mesh is rendered to represent the switch light coming on.
The DD40 interior is a great example of what can be done using standard levers alone. The sliding windows, the retractable sun visors and the swivel chair are all 'levers'. Sure they contain no real function... It adds a bit of fun if anything!
Download DD40 Interior source and in-games files here: http://www.auran.com/TRS2004/downloads/contentcreation/TRS2004_dd40_interior.zip
DD40 Cab Interior
DD40 Interior Config.txt
kind "interior" script "DD40Cabin" class "DD40Cabin" kuid <KUID:-3:10085> cameralist { camera0 -0.564, 0.984, 0.987, 13.528, -0.137 camera1 0.707, -0.333, 1.023, -6.189, -0.049 camera2 1.317, 0.949, 1.023, -13.501, -0.122 camera3 -1.058, 0.522, 0.887, 0.1, -0.089 camera4 -1.382, 0.78, 0.987, 6.592, -0.194 camera5 -1.361, 0.923, 1.137, 6.902, -0.503 camera6 -0.618, 0.715, 1.023, -0.983, -0.234 } cameradefault 3 mesh-table { default { mesh gen_dd40_int.im auto-create 1 } Fan_Switch { kind lever auto-create 1 mesh switch_red.im att a.switch0 limits 0, 1 angles 0, -2 notches 0, 1 notchheight 0, 0 mousespeed -1 radius 0.05 att-parent default } switchlight0 { kind light mesh switchlight.pm att a.switch0 auto-create 0 att-parent default } Wiper_Switch { kind lever auto-create 1 mesh switch_red.im att a.switch1 limits 0, 1 angles 0, -2 notches 0, 1 notchheight 0, 0 mousespeed -1 radius 0.05 att-parent default } switchlight1 { kind light mesh switchlight.pm att a.switch1 auto-create 0 att-parent default } Switch_3 { kind lever auto-create 1 mesh switch.pm att a.switch2 limits 0, 1 angles 0, -2 notches 0, 1 notchheight 0, 0 mousespeed -1 radius 0.05 att-parent default } switchlight2 { kind light mesh switchlight.pm att a.switch2 auto-create 0 att-parent default } Switch_4 { kind lever auto-create 1 mesh switch.pm att a.switch3 limits 0, 1 angles 0, -2 notches 0, 1 notchheight 0, 0 mousespeed -1 radius 0.05 att-parent default } switchlight3 { kind light mesh switchlight.pm att a.switch3 auto-create 0 att-parent default } Switch_5 { kind lever auto-create 1 mesh switch.pm att a.switch4 limits 0, 1 angles 0, -2 notches 0, 1 notchheight 0, 0 mousespeed -1 radius 0.05 att-parent default } switchlight4 { kind light mesh switchlight.pm att a.switch4 auto-create 0 att-parent default } Switch_6 { kind lever auto-create 1 mesh switch.pm att a.switch5 limits 0, 1 angles 0, -2 notches 0, 1 notchheight 0, 0 mousespeed -1 radius 0.05 att-parent default } switchlight5 { kind light mesh switchlight.pm att a.switch5 auto-create 0 att-parent default } Switch_7 { kind lever auto-create 1 mesh switch.pm att a.switch6 limits 0, 1 angles 0, -2 notches 0, 1 notchheight 0, 0 mousespeed -1 radius 0.05 att-parent default } switchlight6 { kind light mesh switchlight.pm att a.switch6 auto-create 0 att-parent default } Switch_8 { kind lever auto-create 1 mesh switch.pm att a.switch7 limits 0, 1 angles 0, -2 notches 0, 1 notchheight 0, 0 mousespeed -1 radius 0.05 att-parent default } switchlight7 { kind light mesh switchlight.pm att a.switch7 auto-create 0 att-parent default } reverser_lever { kind lever auto-create 1 mesh reverser_lever.pm att a.reverser_lever limits 0, 2 angles 0.55, -0.55 notches 0, 0.5, 1 notchheight 1, 1, 1 att-parent default } independantbrake_lever { kind lever auto-create 1 mesh ind_brake_lever.pm att a.ind_brake_lever limits 0, 32 angles 0, -2.1 notches 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6,0.7, 0.8, 0.9, 1 notchheight 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1 radius 0.15 att-parent default } trainbrake_lever { kind lever auto-create 1 mesh train_brake_lever.pm att a.train_brake_lever limits 0, 4 angles 0, -2.4 notches 0, 0.25, 0.27, 0.29, 0.31, 0.33,0.35, 0.37, 0.39, 0.41, 0.43, 0.45, 0.47, 0.49,0.5, 0.75, 1 notchheight 1, 1, 2, 2, 2, 2, 2, 2, 2, 2,2, 2, 2, 2, 1, 1, 1 radius 0.15 att-parent default } throttle_lever { kind lever auto-create 1 mesh throttle_lever.pm att a.thottle_lever limits 0, 8 angles 1.2, 0 notches 0, 0.125, 0.25, 0.375, 0.5, 0.625,0.75, 0.875, 1 notchheight 1, 2, 2, 2, 2, 2, 2, 2, 1 radius 0.35 att-parent default } dynamicbrake_lever { kind lever auto-create 1 mesh dynamic_lever.pm att a.dynamic_brake limits 0, 2 angles 0, -1.2 notches 0, 0.5, 1 notchheight 1, 1, 1 radius 0.35 att-parent default } light_switch { kind lever auto-create 1 att a.light_switch mesh dial.pm limits 0, 1 angles 0, 4.5 notches 0, 0.5, 1 notchheight 0, 0, 0 att-parent default } ampmeter_needle { kind needle auto-create 1 att a.ammeter limits 0, 1500 angles 0, 1.9 att-parent default } bploco_equaliser { kind needle auto-create 1 mesh whitepress_needle.pm att a.equaliser_pressure limits 0, 1000 att-parent default } bplocomain_needle { kind needle auto-create 1 mesh redpress_needle.pm att a.main_res_pressure limits 0, 1000 att-parent default } bptrainbrakecylinder_needle { kind needle auto-create 1 mesh redpress_needle.pm att a.brake_cyl_pressure limits 0, 1000 att-parent default } bptrainbrakepipe_needle { kind needle auto-create 1 mesh whitepress_needle.pm att a.brake_pipe_pressure limits 0, 1000 att-parent default } speedo_needle { kind needle auto-create 1 mesh whitepress_needle.pm att a.speedo limits 0, 48 att-parent default } horn { kind lever auto-create 1 mesh horn.pm att a.horn limits 0, 1 angles 0, -0.6 notches 0, 1 notchheight 3, 3 radius 0.16 mousespeed -2 att-parent default } wheelslip_light { kind light auto-create 0 mesh wheelslip.pm } swivel_chair { kind lever auto-create 1 mesh chair.im att a.chair1 limits 0, 8 angles 6.8, -6.8 radius 0.5 mousespeed 0.2 att-parent default } dial0 { kind lever auto-create 1 att a.dial0 mesh dial.pm limits 0, 1 angles 0, 3.8 notches 0, 1 notchheight 0, 0 att-parent default } dial1 { kind lever auto-create 1 att a.dial1 mesh dial.pm limits 0, 1 angles 0, 3.8 notches 0, 1 notchheight 0, 0 att-parent default } fan { mesh fan.im anim fan.kin auto-create 1 att a.fan att-parent default } visor0 { mesh visor.im auto-create 1 att a.visor0 att-parent default kind lever mousespeed -1 limits 0, 1 angles 0, 1.7 notches 0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1 notchheight 0, 0, 0, 0, 0, 0, 0, 0, 0 } visor1 { mesh visor.im auto-create 1 att a.visor1 att-parent default kind lever mousespeed -1 limits 0, 1 notches 0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1 notchheight 0, 0, 0, 0, 0, 0, 0, 0, 0 } sl_wind_R_Fr { mesh sliding_wind_R_Fr.im auto-create 1 att a.sliding_wind_R_Fr att-parent default limits 0, 1.0 angles 0, 0.011 notches 0, 0.125, 0.25, 0.375, 0.5,0.625, 0.75, 0.875, 1 notchheight 0, 0, 0, 0, 0, 0, 0, 0, 0 kind lever } sl_wind_R_Bk { mesh sliding_wind_R_Bk.im auto-create 1 att a.sliding_wind_R_Bk att-parent default limits 0, 1.0 angles 0, -0.011 notches 0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1 notchheight 0, 0, 0, 0, 0, 0, 0, 0, 0 mousespeed -1 kind lever } sl_wind_L_Fr { mesh sliding_wind_L_Fr.im auto-create 1 att a.sliding_wind_L_Fr att-parent default limits 0, 1.0 angles 0, -0.011 notches 0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1 notchheight 0, 0, 0, 0, 0, 0, 0, 0, 0 kind lever } sl_wind_L_Bk.im { mesh sliding_wind_L_Bk.im auto-create 1 att a.sliding_wind_L_Bk att-parent default limits 0, 1.0 angles 0, 0.011 notches 0, 0.125, 0.25, 0.375, 0.5,0.625, 0.75, 0.875, 1 notchheight 0, 0, 0, 0, 0, 0, 0, 0, 0 mousespeed -1 kind lever } wipers { mesh wipers.im anim wipers.kin auto-create 1 att a.wipers att-parent default } }
End of DD40 interior config.txt