Jump to content
Waldemar 337

Gearbox TransmissionRatio Change

Recommended Posts

https://community.bistudio.com/wiki/Arma_3:_Vehicle_Handling_Configuration

This page says that "all PhysX 3 vehicles use complex gearbox to give some data to PhysX gearbox".

It also says that gearbox can have several transmission ratios.

Quote

TransmissionRatios[] is an array of remaining drivetrain ratios in the same format as gearboxRatios. Most of cars have only one final drive, some heavy trucks may have a double reduction gear . The final ratio is then gearboxRatio * TransmissionRatio, that means transmissionRatios shouldn't be multiplicates of each other and gearbox ratios to prevent the same final ratio for two different gears.

This text makes me believe that I can create a real offroad vehicle with "High" and "Low" transmission modes.

Also there is an example of a complexGearbox.

complexGearbox
{
	GearboxRatios[] = {
		"R1",	-3.231,
		"N",	 0,
		"D1",	 2.462,
		"D2",	 1.870,
		"D3",	 1.241,
		"D4",	 0.970,
		"D5",	 0.711
	};

	// Optional: defines transmission ratios (for example, High and Low range as commonly found in offroad vehicles)
	TransmissionRatios[] = { "High",4.111 };

	// defines what gear an automatic or semi-automatic gearbox will move off from stationary in. 1 by default.
	moveOffGear = 1;

	driveString		= "D";	// string to display in the HUD for forward gears.
	neutralString		= "N";	// string to display in the HUD for neutral gear.
	reverseString		= "R";	// string to display in the HUD for reverse gears.
};

OK. I have created a gearbox for an offroad vehicle with two transmission ratios.

TransmissionRatios[] = { 
	"Low", 8.222, 
	"High", 4.111 
};

The game GUI does not show any hints or actions available to switch transmission modes.

The question is : how do I change the transmission ratio of the gearbox with the SQF script ?

Thank you.

Share this post


Link to post
Share on other sites

Thank you for advice.

 

I must say the following.

In real life world complex gearbox consists of two coupled but separate devices. They may have various names in different vehicles, but the main principle is the same : one device is a collection of gears for main transmission gear, and the second device is the so-called gearbox, which we know simply as a gearbox.

The mentioned documentation confirms that Arma's game engine follows the same principle -- two devices are separate -- when it states the following:

Quote

The final ratio is then gearboxRatio * TransmissionRatio

https://community.bistudio.com/wiki/Arma_3:_Vehicle_Handling_Configuration#Transmission_parameters

 

Quote

[Engine] -> [Transmission Gear] -> [Gearbox] -> ...

 

In those automobiles that I know, both of these devices are controlled independently.

Gearbox is controlled either by a wise electronic mind or by a driver.

Transmission ratio is controlled electronically via the control panel or electro-mechanically using the switch. Some old cars control it mechanically.

 

In real life, in the offroad vehicle, changing a gear of a gearbox (second device) does not change the transmission gear (of the first device).

 

If Arma follows the same principle, the mentioned functions are likely to control the gearbox only.

So, my question stays the same. I need a function to control the transmission ratio, not the gearbox gear.

 

Thank you.

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×