Driveable Vehicle

I recently tried making a driveable vehicle, first few attempts turned out to be utter failures. The attempt I am currently on seems to be going a lot better, I came to the stage of testing the vehicle in game, all of my animations seem to be working expect for the wheelspin animation.

I am also getting this while sitting in my drivers seat:

http://img26.imageshack.us/img26/1065/4000screenshots20120820.jpg

Here is my QC file:


$cd                             "C:\Users\Fallen\Desktop\Desktop Items\Skin Work\Skins getting made\Bus"
$modelname              "fearless/cars/bus/evocitybus.mdl"
$origin 0 0 0 360
$body "bus" bus.smd
$cdmaterials "models/fearless/cars/bus/"
$surfaceprop    "metal" 
$keyvalues
{
 
        "vehicle_exit"
        {
                // Entries are: Key = exit animation, Value = "upright" or "upsidedown"
                "exit1" "upright"
        }
 
 
}

//----- Attachments -----
$attachment "wheel_fl" "car.wheel.fl" 0.00 0.00 -0.00 rotate 0.00 0.00 -0.00
$attachment "wheel_fr" "car.wheel.fr" 0.00 0.00 0.00 rotate 0.00 0.00 -0.00
$attachment "wheel_rr" "car.wheel.rr" 0.00 0.00 -0.00 rotate -0.00 -0.00 -0.00
$attachment "wheel_rl" "car.wheel.rl" 0.00 0.00 -0.00 rotate -0.00 -0.00 -0.00
$attachment "vehicle_driver_eyes" "car.view" 0.00 0.00 -0.00 rotate -0.00 0.00 -0.00
$attachment "vehicle_driver_exit" "car.body" -20.00 60.00 -60.00 rotate -0.00 0.00 -90.00
$attachment "vehicle_feet_passenger0" "car.view" -10.00 -28.00 0.00 rotate -0.00 0.00 -90.00
 
 
//----- Pose Parameters -----
 
 
$poseparameter "vehicle_steer" -1 1
$poseparameter "vehicle_wheel_fl_height" 0 1
$poseparameter "vehicle_wheel_fr_height" 0 1
$poseparameter "vehicle_wheel_rl_height" 0 1  
$poseparameter "vehicle_wheel_rr_height" 0 1
 
$poseparameter "vehicle_wheel_fl_spin" -180 180 wrap
$poseparameter "vehicle_wheel_fr_spin" -180 180 wrap
$poseparameter "vehicle_wheel_rl_spin" -180 180 wrap
$poseparameter "vehicle_wheel_rr_spin" -180 180 wrap
 
// --------- Animation sequences -------
 
$sequence "idle" "bus" fps 30 ACT_IDLE 1 //addlayer aim_all
$sequence "turn" "bus_turn" fps 30
$sequence "suspension" "bus_suspension" fps 30
$sequence "spin" "bus_wheelspin" fps 30
 
 
 
$animation neutral "bus" frames 0 0
 
 
 
// front steering sequence
$weightlist front_wheels { "car.wheel.fl_turn" 1.0 "car.wheel.fr_turn" 1.0 "car.steer" 1.0 }
$animation turn_left "bus_turn" frame 0 0 subtract neutral 0 weightlist front_wheels 
$animation turn_right "bus_turn" frame 2 2 subtract neutral 0 weightlist front_wheels 
$sequence turning { turn_left turn_right blend vehicle_steer -1 1 } weightlist front_wheels delta autoplay

// front right
$weightlist wheel_fr { "car.wheel.fr_axel" 1.0 "car.wheel.fr" 0.0  }
$animation wheel_fr_low "bus_suspension" frame 0 0 subtract neutral 0 weightlist wheel_fr 
$animation wheel_fr_high "bus_suspension" frame 2 2 subtract neutral 0 weightlist wheel_fr 
$sequence wheel_fr_suspension { wheel_fr_low wheel_fr_high blend "vehicle_wheel_fr_height" 0 1.0 } weightlist wheel_fr delta autoplay

$weightlist wheel_fr_spin { "car.wheel.fr" 1.0 }
$animation wheel_fr_spin0 "bus_wheelspin" frame 0 0 subtract neutral 0 weightlist wheel_fr_spin 
$animation wheel_fr_spin120 "bus_wheelspin" frame 3 3 subtract neutral 0 weightlist wheel_fr_spin
$animation wheel_fr_spin240 "bus_wheelspin" frame 6 6 subtract neutral 0 weightlist wheel_fr_spin
$sequence wheel_fr_spin { wheel_fr_spin0 wheel_fr_spin120 wheel_fr_spin240 wheel_fr_spin0 blendwidth 4 blend "vehicle_wheel_fr_spin" -180 180 } weightlist wheel_fr_spin delta autoplay

// front left
$weightlist wheel_fl { "car.wheel.fl_axel" 1.0 "car.wheel.fl" 0.0 }
$animation wheel_fl_low "bus_suspension" frame 0 0 subtract neutral 0 weightlist wheel_fl 
$animation wheel_fl_high "bus_suspension" frame 2 2 subtract neutral 0 weightlist wheel_fl 
$sequence wheel_fl_suspension { wheel_fl_low wheel_fl_high blend "vehicle_wheel_fl_height" 0 1.0 } weightlist wheel_fl delta autoplay

$weightlist wheel_fl_spin { "car.wheel.fl" 1.0 } 
$animation wheel_fl_spin0 "bus_wheelspin" frame 0 0 subtract neutral 0 weightlist wheel_fl_spin 
$animation wheel_fl_spin120 "bus_wheelspin" frame 3 3 subtract neutral 0 weightlist wheel_fl_spin 
$animation wheel_fl_spin240 "bus_wheelspin" frame 6 6 subtract neutral 0 weightlist wheel_fl_spin 
$sequence wheel_fl_spin { wheel_fl_spin0 wheel_fl_spin120 wheel_fl_spin240 wheel_fl_spin0 blendwidth 4 blend "vehicle_wheel_fl_spin" -180 180 } weightlist wheel_fl_spin delta autoplay

// rear right
$weightlist wheel_rr { "car.wheel.rr_axel" 1.0 "car.wheel.rr" 0.0 }
$animation wheel_rr_low "bus_suspension" frame 0 0 subtract neutral 0 weightlist wheel_rr 
$animation wheel_rr_high "bus_suspension" frame 2 2 subtract neutral 0 weightlist wheel_rr 
$sequence wheel_rr_suspension { wheel_rr_low wheel_rr_high blend "vehicle_wheel_rr_height" 0 1.0 } weightlist wheel_rr delta autoplay

$weightlist wheel_rr_spin { "car.wheel.rr" 1.0 } 
$animation wheel_rr_spin0 "bus_wheelspin" frame 0 0 subtract neutral 0 weightlist wheel_rr_spin 
$animation wheel_rr_spin120 "bus_wheelspin" frame 3 3 subtract neutral 0 weightlist wheel_rr_spin 
$animation wheel_rr_spin240 "bus_wheelspin" frame 6 6 subtract neutral 0 weightlist wheel_rr_spin 
$sequence wheel_rr_spin { wheel_rr_spin0 wheel_rr_spin120 wheel_rr_spin240 wheel_rr_spin0 blendwidth 4 blend "vehicle_wheel_rr_spin" -180 180 } weightlist wheel_rr_spin delta autoplay

// rear left
$weightlist wheel_rl { "car.wheel.rl_axel" 1.0 "car.wheel.rl" 0.0 }
$animation wheel_rl_low "bus_suspension" frame 0 0 subtract neutral 0 weightlist wheel_rl 
$animation wheel_rl_high "bus_suspension" frame 2 2 subtract neutral 0 weightlist wheel_rl 
$sequence wheel_rl_suspension { wheel_rl_low wheel_rl_high blend "vehicle_wheel_rl_height" 0 1.0 } weightlist wheel_rl delta autoplay

$weightlist wheel_rl_spin { "car.wheel.rl" 1.0 }
$animation wheel_rl_spin0 "bus_wheelspin" frame 0 0 subtract neutral 0 weightlist wheel_rl_spin 
$animation wheel_rl_spin120 "bus_wheelspin" frame 3 3 subtract neutral 0 weightlist wheel_rl_spin 
$animation wheel_rl_spin240 "bus_wheelspin" frame 6 6 subtract neutral 0 weightlist wheel_rl_spin 
$sequence wheel_rl_spin { wheel_rl_spin0 wheel_rl_spin120 wheel_rl_spin240 wheel_rl_spin0 blendwidth 4 blend "vehicle_wheel_rl_spin" -180 180 } weightlist wheel_rl_spin delta autoplay
 
//----- Physbox -----
 
$collisionmodel "bus_col.smd" {
     // Mass in kilograms
	$concave
	$mass 800.0
	$inertia 1.00
	$damping 0.00
	$rotdamping 0.00
 
        }

I was wondering if someone could take a look and tell me if I am doing something wrong.

Thanks.

$attachment “vehicle_feet_passenger0” “car.view” -10.00 -28.00 0.00 rotate -0.00 0.00 -90.00
should probably be $attachment “vehicle_feet_passenger0” “car.view” -10.00 -28.00 0.00 rotate -0.00 0.00 0.00

Thank you, that has solved the passenger problem.

Does anyone know how I can fix the wheel spin animation?

Thanks.

Edit: Nevermind, I managed to find out my silly mistake.