I spent the weekend digging through the HL2 vehicle code and
experimented with steering and throttle a little.
Now I noticed one big problem with the airboat:

m_VehiclePhysics.SetSteeringDegrees() - no matter how big or low I set
these degrees the boat always turns at the same speed, only difference
is noticeable when the degrees get negative then the steering is
reversed, steering left makes the boat go right.

m_VehiclePhysics.SetSteering( 1, flSteeringRate ); - is called when the
command to turn right or left (-1) executed
Again I noticed that the steering value (here 1) is not considered for
how fast the airboat turns when you are steering, if the value is below
around 0.5 the airboat doesn't steer at all and any value above will
result in a full left/right movement circle.

I tried to find the underlying system that actually translates the
steering / movement  values into the entities resulting angles/origin.

Is this code capsuled in the engine? Do we have control over a vehicle's
movement behavior (bar teleporting it) or did I just not manage to find
the according functions in the sdk?

Is it possible to make the airboat "ride" on waves in the water by
applying a simple up/down sin(gpGlobals->curtime) to the boats pitch

Regards Black Panther



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to