home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / DVDStar / Akce / Half-Life2 / install-at2v4release2005.exe / AntTroopDuece / scripts / vehicles / crane.txt < prev    next >
Text File  |  2005-05-08  |  3KB  |  172 lines

  1. // This is a test jeep type vehicle for the wasteland
  2.  
  3. "vehicle"
  4. {
  5.     "wheelsperaxle"    "2"
  6.     "body"
  7.     {
  8.         "countertorquefactor"    "0"
  9.         "massCenterOverride"    "0 0 0"
  10.         "massoverride"        "800"        // kg
  11.     }
  12.     "engine"
  13.     {
  14.         "horsepower"        "350"
  15.         "maxrpm"        "3000"
  16.         "maxspeed"        "35"        // mph
  17.         "autotransmission"    "1"
  18.         "axleratio"        "4.56"
  19.         "gear"            "1.86"        // 1st gear
  20.         "gear"            "1.59"        // 2nd gear
  21.         "gear"            "1.17"        // 3rd gear
  22.         "gear"            "1.0"        // 4th gear
  23.         "gear"            "0.84"        // 5th gear
  24.         "shiftuprpm"        "1500"
  25.         "shiftdownrpm"        "300"
  26.     
  27.         "boost"
  28.         {
  29.             "force"        "2.5"    // 2.5 car body mass * gravity * inches / second ^ 2
  30.             "duration"    "1.0"    // 1 second of boost
  31.             "delay"        "15"    // 15 seconds before you can use it again
  32.  
  33. //            "torqueboost"    "1"    // enable "sprint" mode of vehicle, not    force type booster            
  34. //            "maxspeed"    "50"    // maximum turbo speed
  35.         }
  36.     }
  37.     "steering"
  38.     {
  39.         "degrees"        "26"
  40.         "fastdampen"        "0.35"
  41.         "slowcarspeed"        "0"
  42.         "fastcarspeed"        "40"
  43.         "slowsteeringrate"    "4"        
  44.         "faststeeringrate"    "2"
  45.         "steeringRestFactor"    "1.5"
  46.         "turnbrake"        "0.25"
  47.  
  48.         "skidallowed"        "1"
  49.         "dustcloud"        "1"
  50.     }
  51.  
  52.     // front axle
  53.     "axle"
  54.     {
  55.         "wheel"
  56.         {
  57.             "radius"    "18"
  58.             "mass"        "100"
  59.             "inertia"    "0.5"        // steady the car (fixes the oscillation of the axles about z)
  60.             "damping"    "0"
  61.             "rotdamping"    "0.0"
  62.             "material"    "rubbertire"
  63.             "skidmaterial"    "slidingrubbertire_front"
  64.         }
  65.         "suspension"
  66.         {
  67.             "springConstant"        "80"
  68.             "springDamping"            "4"
  69.             "stabilizerConstant"        "110"
  70.             "springDampingCompression"    "4"
  71.             "maxBodyForce"            "250"
  72.         }
  73.  
  74.         "torquefactor"    "0.8"
  75.         "brakefactor"    "0.5"
  76.     }
  77.  
  78.     // rear axle
  79.     "axle"
  80.     {
  81.         "wheel"
  82.         {
  83.             "radius"    "20"
  84.             "mass"        "100"
  85.             "inertia"    "0.5"        // steady the car (fixes the oscillation of the axles about z)
  86.             "damping"    "0"
  87.             "rotdamping"    "0.0"
  88.             "material"    "rubbertire"
  89.             "skidmaterial"    "slidingrubbertire_rear"
  90.         }
  91.         "suspension"
  92.         {
  93.             "springConstant"        "80"
  94.             "springDamping"            "4"
  95.             "stabilizerConstant"        "110"
  96.             "springDampingCompression"    "4"
  97.             "maxBodyForce"            "250"
  98.         }
  99.         "torquefactor"    "0.2"
  100.         "brakefactor"    "0.5"
  101.     }
  102. }
  103.  
  104. "vehicle_sounds"
  105. {
  106.     // List gears in order from lowest speed to highest speed
  107.     "gear"
  108.     {
  109.         "max_speed"        "1.0"
  110.         "speed_approach_factor" "1.0"
  111.     }
  112.  
  113.     "state"
  114.     {
  115.         "name"        "SS_SHUTDOWN"
  116.         "sound"        "Crane_engine_stop"
  117.     }
  118.     "state"
  119.     {
  120.         "name"        "SS_START_IDLE"
  121.         "sound"        "Crane_engine_start"
  122.     }
  123.     "state"
  124.     {
  125.         "name"        "SS_IDLE"
  126.         "sound"        "Crane_engine_idle"
  127.     }
  128.     "state"
  129.     {
  130.         "name"        "SS_GEAR_0"
  131.         "sound"        "Crane_firstgear"
  132.         //"min_time"    "1.5"
  133.     }
  134.     "state"
  135.     {
  136.         "name"        "SS_GEAR_0_RESUME"
  137.         "sound"        "Crane_firstgear"
  138.         //"min_time"    "1.5"
  139.     }
  140.     "state"
  141.     {
  142.         "name"        "SS_GEAR_0"
  143.         "sound"        "Crane_firstgear"
  144.         //"min_time"    "1.5"
  145.     }
  146.     "state"
  147.     {
  148.         "name"        "SS_GEAR_0_RESUME"
  149.         "sound"        "Crane_firstgear"
  150.         //"min_time"    "1.5"
  151.     }
  152.     "state"
  153.     {
  154.         "name"        "SS_SLOWDOWN_HIGHSPEED"
  155.         "sound"        "Crane_throttleoff_slowspeed"
  156.     }
  157.     "state"
  158.     {
  159.         "name"        "SS_SLOWDOWN"
  160.         "sound"        "Crane_throttleoff_slowspeed"
  161.     }
  162.  
  163.     // Arm Extension / Retraction
  164.     "engine2_start"        "Crane_extend_start"
  165.     "engine2_stop"        "Crane_extend_stop"
  166.  
  167.     "misc1"            "Crane_magnet_release"
  168.     "misc2"            "Crane_magnet_reelin"
  169.     "misc3"            "Crane_magnet_toggle"
  170.     "misc4"            "Crane_magnet_creak"
  171. }
  172.