gm_pimpmyride broke

http://dumps.garrysmod.com/?view=1897794411

fix?

email?

ya i made an issue

It’s fixed.
Does anyone have a short instruction for this module?

Found the source, you should figure anything out yourself.

Saw the source, but no clue about C++.
I can Imaginate the functions, but I wouldn’t know how to set the speed for example. Example? Also, what are the functions at the bottom for? (Those which ain’t used to set vehicle values)




table Vehicle:getoperatingparams() returns a table with the following structure:
{
	float speed,
	float RPM,
	float gear,
	float steeringAngle,
	float wheelInContact,
	float isTorqueBoosting,
}

table Vehicle:getvehicleparams() returns a table containing the vehicle parameters
{
	bool _SanityCheckOnlyUseTheResultFromGetVehicleParams, --internal use ONLY
	float axleCount,
	float wheelsPerAxle,
	table body {
		vector massCenterOverride,
		float massOverride,
		float addGravity,
		float tiltForce,
		float tiltForceHeight,
		float counterTorqueFactor,
		float keepUprightTorque,
		float maxAngularVelocity,
	},
	table axles {--one table per axe
		table [1] {
			float torqueFactor
			float brakeFactor
			springConstant
			springAdditionalLength
			frictionScale
		},
		table [2] {
			...
		}
	}
	table engine {
		float horsepower,
		float maxSpeed,
		float maxRevSpeed,
		float maxRPM,
		float axleRatio,
		float throttleTime,
		float gearCount,
		table gearRatio {
			float [1],
			float [2],
			...
		},
		float shiftUpRPM,
		float shiftDownRPM,
		float boostForce,
		float boostDuration,
		float boostDelay,
		float boostMaxSpeed,
		float torqueBoost
	}
	table steering {
		float boostSteeringRateFactordegreesSlow,
		float degreesFast,
		float degreestBoost,
		float speedSlow,
		float speedFast,
		float powerSlideAccel,
		float steeringExponent,
		float isSkidAllowed,
		float dustCloud,
		float turnThrottleReduceSlow,
		float turnThrottleReduceFast,
		float boostSteeringRateFactor
	}
}
nil Vehicle:setvehicleparams(table) this function will error if the table structure does not equal the structure above, if you manually set _SanityCheckOnlyUseTheResultFromGetVehicleParams
and then use this function with a table which structure does not equal the above, the game will crash!

long GetUcmdButtons(CUserCmd)
nil SetUcmdButtons(CUserCmd, long buttons)

float materialindex Vehicle:GetWheelMaterial(float wheel)
nil Vehicle:SetWheelMaterial(float wheel, string material)


I couldn’t check the exact types since I can’t look into the sourcesdk right now, some values might be bools I don’t know.