How to edit the speed of a Vehicle (jets, cars, etc)?

Information and tutorials related to modding BF2.
Post Reply
PRIdealist11
Posts: 3
Joined: 2025-01-02 03:17

How to edit the speed of a Vehicle (jets, cars, etc)?

Post by PRIdealist11 »

I was wondering how I could edit the speed of a vehicle. Would this be achieved by changing something in the .CON or .TWEAK files of the specific vehicle? I want to modify a jet for testing purposes on a LAN multiplayer server, but the only things I can find are the turn speeds of the ailerons, stabilizers, some projectiles, etc. Could someone knowledgeable in modding PR (BF2) help me out?
Arab
PR:BF2 Developer
Posts: 2883
Joined: 2012-05-18 03:37

Re: How to edit the speed of a Vehicle (jets, cars, etc)?

Post by Arab »

Code: Select all

ObjectTemplate.setMaxSpeed 0/0/10000
ObjectTemplate.setAcceleration 0/0/10
ObjectTemplate.setTorque 600
ObjectTemplate.newCar2.minRpm 1000
ObjectTemplate.newCar2.maxRpm 4000
These are your values that control speed.
Image
PRIdealist11
Posts: 3
Joined: 2025-01-02 03:17

Re: How to edit the speed of a Vehicle (jets, cars, etc)?

Post by PRIdealist11 »

Arab wrote: 2025-01-07 14:13

Code: Select all

ObjectTemplate.setMaxSpeed 0/0/10000
ObjectTemplate.setAcceleration 0/0/10
ObjectTemplate.setTorque 600
ObjectTemplate.newCar2.minRpm 1000
ObjectTemplate.newCar2.maxRpm 4000
These are your values that control speed.
Is it possible to add custom vehicles to the game without altering any of the original game files so i can still play multiplayer? For example, I want to add the MEC's Su-25A but with modifications to speed, aerodynamics, etc. Where should I create the folder with the modified .TWEAK and .CON files (copied from the Su-25A, of course) without causing any issues with the default game files? Btw I really appreciate your response :) .
Arab
PR:BF2 Developer
Posts: 2883
Joined: 2012-05-18 03:37

Re: How to edit the speed of a Vehicle (jets, cars, etc)?

Post by Arab »

PRIdealist11 wrote: 2025-01-08 04:20
Arab wrote: 2025-01-07 14:13

Code: Select all

ObjectTemplate.setMaxSpeed 0/0/10000
ObjectTemplate.setAcceleration 0/0/10
ObjectTemplate.setTorque 600
ObjectTemplate.newCar2.minRpm 1000
ObjectTemplate.newCar2.maxRpm 4000
These are your values that control speed.
Is it possible to add custom vehicles to the game without altering any of the original game files so i can still play multiplayer? For example, I want to add the MEC's Su-25A but with modifications to speed, aerodynamics, etc. Where should I create the folder with the modified .TWEAK and .CON files (copied from the Su-25A, of course) without causing any issues with the default game files? Btw I really appreciate your response :) .
Nope.
Only local. And any modified files, create a copy of the pr folder to make it pr_edit for offline only. And local dedicated. But not multiplayer.
Image
PRIdealist11
Posts: 3
Joined: 2025-01-02 03:17

Re: How to edit the speed of a Vehicle (jets, cars, etc)?

Post by PRIdealist11 »

Nope.
Only local. And any modified files, create a copy of the pr folder to make it pr_edit for offline only. And local dedicated. But not multiplayer.

Ok, so once I've created a copy of the pr folder (pr_edit) in the /mods directory, should I just modify the files and that's it? The thing is, I tried replacing the modified .TWEAK file of the Su-25A in the pr folder (default folder). The modifications I made did work in an Offline account I had, but when I tried to log into one of my Online accounts, I had to reinstall it because the game detected that something had been modified.

So rn i have some problems:
I reinstalled the game, and I didn’t touch any of the files in the original pr folder. The game is working correctly, and I don't want to mess with the original files again, mainly to be able to play on multiplayer servers without having to reinstall it again and so on...

Basically, I created a copy of the pr folder and renamed it pr_edit in the /mods directory as you told me, but there's one thing I can't understand: the part about "offline only." I tried replacing the modified .TWEAK file of the Su-25A in objects_vehicles_server.zip, and the game works correctly even when using my Online accounts, and it no longer detects the modified files (thank God I don't have to reinstall it AGAIN :? );

but when I tried with my Offline account (where the modified MEC Su-25a it's supposed to work without any problems), I loaded the map and spawned the Su-25a, but I didn't see any effect on it.

Did I do something wrong? I saw some tutorials about mapping/modding on the forum, and they mentioned the pr_edit folder and how they modified some MIG-21s textures and so on. I'm not an expert in modding, but I catch on quickly.

Could you explain to me, in a summarized way, the steps to set up the pr_edit folder and how I could use my "custom vehicles" in my Offline account? You would help me a ton!!! And thanks for the previous response. I really appreciate it. :D :D
Post Reply

Return to “Modding Tutorials”