• Vehiclescript .txt file sound problem
    0 replies, posted
I have a custom car on the server, and I tried to make a good vehiclescript for that. However, the sounds just stops when it's at gear 2-3. What is wrong? This is the code: [code] // This is the BMW "vehicle" { "wheelsperaxle" "2" "body" { "countertorquefactor" "0.0" "massCenterOverride" "0 0 15" "massoverride" "1400" // kg "addgravity" "1.0" } "engine" { "horsepower" "350" "maxrpm" "3000" "maxspeed" "220" // mph "maxReverseSpeed" "65" // mph "autotransmission" "1" "axleratio" "4.56" "gear" "2.16" // 1st gear "gear" "1.59" // 2nd gear "gear" "1.17" // 3rd gear "gear" "1.0" // 4th gear "gear" "0.84" // 5th gear "shiftuprpm" "1500" "shiftdownrpm" "300" "boost" { // "force" "1.2" // 1.5 car body mass * gravity * inches / second ^ 2 "duration" "1.0" // 1 second of boost "delay" "10" // 15 seconds before you can use it again "torqueboost" "1" // enable "sprint" mode of vehicle, not force type booster "maxspeed" "95" // maximum turbo speed "force" "1.5" // use for value as a boost factor } } "steering" { "degreesSlow" "20" // steering cone at zero to slow speed "degreesFast" "12" // steering cone at fast speed to max speed "degreesBoost" "7" // steering cone at max boost speed (blend toward this after max speed) "steeringExponent" "1.4" // steering function is linear, then raised to this power to be slower at the beginning of the curve, faster at the end "slowcarspeed" "15" "fastcarspeed" "30" "slowSteeringRate" "4.0" "fastSteeringRate" "2.0" "steeringRestRateSlow" "4.0" "steeringRestRateFast" "2.0" "turnThrottleReduceSlow" "0.5" "turnThrottleReduceFast" "1.0" "brakeSteeringRateFactor" "6" "throttleSteeringRestRateFactor" "2" "boostSteeringRestRateFactor" "1.7" "boostSteeringRateFactor" "1.7" "powerSlideAccel" "250" "skidallowed" "1" "dustcloud" "1" } // front axle "axle" { "wheel" { "radius" "12" "mass" "100" "inertia" "0.5" // steady the car (fixes the oscillation of the axles about z) "damping" "0" "rotdamping" "0.0" "material" "jeeptire" "skidmaterial" "slidingrubbertire" "brakematerial" "brakingrubbertire" } "suspension" { "springConstant" "150" "springDamping" "2.5" "stabilizerConstant" "200" "springDampingCompression" "1" "maxBodyForce" "250" } "torquefactor" "0.0" "brakefactor" "0.5" } // rear axle "axle" { "wheel" { "radius" "12" "mass" "100" "inertia" "0.5" // steady the car (fixes the oscillation of the axles about z) "damping" "0" "rotdamping" "0.0" "material" "jeeptire" "skidmaterial" "slidingrubbertire" "brakematerial" "brakingrubbertire" } "suspension" { "springConstant" "155" "springDamping" "2.5" "stabilizerConstant" "200" "springDampingCompression" "1" "maxBodyForce" "1950" } "torquefactor" "1.0" "brakefactor" "0.5" } } "vehicle_sounds" { // List gears in order from lowest speed to highest speed "gear" { "max_speed" "0.3" "speed_approach_factor" "1.0" } "gear" { "max_speed" "0.5" "speed_approach_factor" "0.07" } "gear" { "max_speed" "0.75" "speed_approach_factor" "0.07" } "gear" { "max_speed" "0.90" "speed_approach_factor" "0.035" } "gear" { "max_speed" "0.95" "speed_approach_factor" "0.015" } "gear" { "max_speed" "2.0" "speed_approach_factor" "0.03" } "state" { "name" "SS_START_WATER" "sound" "ATV_start_in_water" } "state" { "name" "SS_START_IDLE" "sound" "ATV_engine_start" } "state" { "name" "SS_SHUTDOWN_WATER" "sound" "ATV_stall_in_water" } "state" { "name" "SS_IDLE" "sound" "ATV_engine_idle" } "state" { "name" "SS_REVERSE" "sound" "ATV_reverse" "min_time" "0.5" } "state" { "name" "SS_GEAR_0" "sound" "ATV_rev" "min_time" "0.75" } "state" { "name" "SS_GEAR_0_RESUME" "sound" "ATV_engine_idle" "min_time" "0.75" } "state" { "name" "SS_GEAR_1" "sound" "ATV_firstgear" "min_time" "0.5" } "state" { "name" "SS_GEAR_1_RESUME" "sound" "ATV_firstgear_noshift" "min_time" "0.5" } "state" { "name" "SS_GEAR_2" "sound" "ATV_secondgear" "min_time" "0.5" } "state" { "name" "SS_GEAR_2_RESUME" "sound" "ATV_secondgear_noshift" "min_time" "0.5" } "state" { "name" "SS_GEAR_3" "sound" "ATV_thirdgear" "min_time" "0.5" } "state" { "name" "SS_GEAR_3_RESUME" "sound" "ATV_thirdgear_noshift" "min_time" "0.5" } "state" { "name" "SS_GEAR_4" "sound" "ATV_fourthgear" "min_time" "0.5" } "state" { "name" "SS_GEAR_4_RESUME" "sound" "ATV_fourthgear_noshift" "min_time" "0.5" } "state" { "name" "SS_SLOWDOWN_HIGHSPEED" "sound" "ATV_throttleoff_fastspeed" } "state" { "name" "SS_SLOWDOWN" "sound" "ATV_throttleoff_slowspeed" } "state" { "name" "SS_TURBO" "sound" "ATV_turbo_on" "min_time" "2.5" } "state" { "name" "SS_SHUTDOWN" "sound" "ATV_engine_stop" } "crashsound" { "min_speed" "350" "min_speed_change" "250" "sound" "ATV_impact_medium" "gear_limit" "1" } "crashsound" { "min_speed" "450" "min_speed_change" "350" "sound" "ATV_impact_heavy" } "skid_lowfriction" "ATV_skid_lowfriction" "skid_normalfriction" "ATV_skid_normalfriction" "skid_highfriction" "ATV_skid_highfriction" } [/code]
Sorry, you need to Log In to post a reply to this thread.