Discord
Steam
/
Garry's Mod
/
Developers
/
what is wrong ..
Login/Join
Event Log
what is wrong with this vehicle script ???????!!!
1 replies, posted
Search
In This Thread
[CODE] "vehicle" { "wheelsperaxle" "2" "body" { "countertorquefactor" "2.0" "massCenterOverride" "0 0 2" "massoverride" "1500" // kg "addgravity" "0.8" } "engine" { "horsepower" "450" "maxrpm" "4200" "maxspeed" "85" // mph "maxReverseSpeed" "10" // mph "autotransmission" "1" "axleratio" "4.56" "gear" "1.86" // 1st gear "gear" "1.59" // 2nd gear "gear" "1.17" // 3rd gear "gear" "1.0" // 4th gear "gear" "0.84" // 5th gear "shiftuprpm" "3500" "shiftdownrpm" "1000" "boost" { // "force" "1.5" // 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" "60" // maximum turbo speed // "force" "2.5" // use for value as a boost factor } } "steering" { "degreesSlow" "45" // steering cone at zero to slow speed "degreesFast" "14" // steering cone at fast speed to max speed "degreesBoost" "5" // 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.1" "turnThrottleReduceFast" "0.9" "brakeSteeringRateFactor" "2" "throttleSteeringRestRateFactor" "2" "boostSteeringRestRateFactor" "1.7" "boostSteeringRateFactor" "1.7" "powerSlideAccel" "250" "skidallowed" "1" "dustcloud" "1" } // front axle "axle" { "wheel" { "radius" "14.5" "mass" "200" "inertia" "0.5" // steady the car (fixes the oscillation of the axles about z) "damping" "0.3" "rotdamping" "0.5" "material" "jeeptire" "skidmaterial" "slidingrubbertire" "brakematerial" "brakingrubbertire" } "suspension" { "springConstant" "160" "springDamping" "3.14" "stabilizerConstant" "200" "springDampingCompression" "4" "maxBodyForce" "80000" } "torquefactor" "1" "brakefactor" "0.75" } // rear axle "axle" { "wheel" { "radius" "14.5" "mass" "200" "inertia" "0.5" // steady the car (fixes the oscillation of the axles about z) "damping" "0.3" "rotdamping" "0.0" "material" "ubertire" "skidmaterial" "slidingrubbertire" "brakematerial" "brakingrubbertire" } "suspension" { "springConstant" "160" "springDamping" "3.14" "stabilizerConstant" "200" "springDampingCompression" "4" "maxBodyForce" "80000" } "torquefactor" "1.5" "brakefactor" "0.25" } } "vehicle_sounds" { // List gears in order from lowest speed to highest speed "gear" { "max_speed" "0.2" "speed_approach_factor" "1.0" } "gear" { "max_speed" "0.4" "speed_approach_factor" "0.07" } "gear" { "max_speed" "0.6" "speed_approach_factor" "0.07" } "gear" { "max_speed" "0.80" "speed_approach_factor" "0.035" } "gear" { "max_speed" "0.85" "speed_approach_factor" "0.015" } "gear" { "max_speed" "2.0" "speed_approach_factor" "0.03" } "state" { "name" "SS_START_WATER" "sound" "Shelby_start_in_water" } "state" { "name" "SS_START_IDLE" "sound" "Shelby_engine_start" } "state" { "name" "SS_SHUTDOWN_WATER" "sound" "Shelby_stall_in_water" } "state" { "name" "SS_IDLE" "sound" "Shelby_engine_idle" } "state" { "name" "SS_REVERSE" "sound" "Shelby_reverse" "min_time" "0.5" } "state" { "name" "SS_GEAR_0" "sound" "Shelby_rev" "min_time" "0.75" } "state" { "name" "SS_GEAR_0_RESUME" "sound" "Shelby_engine_idle" "min_time" "0.75" } "state" { "name" "SS_GEAR_1" "sound" "Shelby_firstgear" "min_time" "1.25" } "state" { "name" "SS_GEAR_1_RESUME" "sound" "Shelby_firstgear" "min_time" "0.5" } "state" { "name" "SS_GEAR_2" "sound" "Shelby_secondgear" "min_time" "1.25" } "state" { "name" "SS_GEAR_2_RESUME" "sound" "Shelby_secondgear" "min_time" "0.5" } "state" { "name" "SS_GEAR_3" "sound" "Shelby_thirdgear" "min_time" "0.5" } "state" { "name" "SS_GEAR_3_RESUME" "sound" "Shelby_thirdgear" "min_time" "0.5" } "state" { "name" "SS_GEAR_4" "sound" "Shelby_fourthgear" "min_time" "0.5" } "state" { "name" "SS_GEAR_4_RESUME" "sound" "Shelby_fourthgear" "min_time" "0.5" } "state" { "name" "SS_SLOWDOWN_HIGHSPEED" "sound" "Shelby_throttleoff_fastspeed" } "state" { "name" "SS_SLOWDOWN" "sound" "Shelby_throttleoff_slowspeed" } "state" { "name" "SS_TURBO" "sound" "Shelby_turbo_on" "min_time" "2.5" } "state" { "name" "SS_SHUTDOWN" "sound" "Shelby_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] when i try to spawn it ingame i cant enter it and i can walk through it ? the error it comes with is '' Vehicle () unable to properly initialize due to script error in (scripts/vehicles/perp2_stallion.txt)! '' please help me :) [highlight](User was banned for this post ("Wrong section!!!!!!!!" - Gran PC))[/highlight]
This is a vehicle script, not Lua... Might be the commented boost section though. Not sure.
Sorry, you need to
Log In
to post a reply to this thread.