How to repair Heavy vehicle(such as APC) with wrench?
-
- Posts: 9
- Joined: 2021-08-11 04:17
How to repair Heavy vehicle(such as APC) with wrench?
I know in original PR this will be impossible.The manual told me that only repair drop can heal APC.But I'm a total Singleplayer lover and I was fancinated by the impressive atmosphere PR brought to me.So I really hope someone can told me how to modify it.
Here are the questions I want to ask:
1.How to make the Heavy vehicle repairable with wrench?Where to modify?
2.I also want Bots can respond the request sent out by radio like I request a medical support.Also,bot will respond other bots's request too.
I used to replace a rifleman's klappspaten to wrench but the bot can't respond the radio request.I think it may related to the aibehavior.ai? I also find a wrench.ai file in objects_weapons_server.zip.I changed some code in it but it didn't work.I really tried all of solutions I can come up with but none of them were available.
I'm a new PR player and I will be appreciated for your help to me.
Here are the questions I want to ask:
1.How to make the Heavy vehicle repairable with wrench?Where to modify?
2.I also want Bots can respond the request sent out by radio like I request a medical support.Also,bot will respond other bots's request too.
I used to replace a rifleman's klappspaten to wrench but the bot can't respond the radio request.I think it may related to the aibehavior.ai? I also find a wrench.ai file in objects_weapons_server.zip.I changed some code in it but it didn't work.I really tried all of solutions I can come up with but none of them were available.
I'm a new PR player and I will be appreciated for your help to me.
-
- Retired PR Developer
- Posts: 17261
- Joined: 2007-02-17 14:59
Re: How to repair Heavy vehicle(such as APC) with wrench?
It should be materials.
pr/content/common_server.zip, material/materialmanagersettings.con
Wrench material is 84, to fix vehicles look up vehicle materials, APCs are 4000-4004 I think.
pr/content/common_server.zip, material/materialmanagersettings.con
Wrench material is 84, to fix vehicles look up vehicle materials, APCs are 4000-4004 I think.
Change damageMod to something above 0MaterialManager.createCell 84 4000
MaterialManager.damageMod 0
![Image](https://i.imgur.com/Wdu9vpg.png)
-
- Posts: 9
- Joined: 2021-08-11 04:17
Re: How to repair Heavy vehicle(such as APC) with wrench?
Thanks for your reply,sir.I have done what you said,and tested it in asad_khal.I used the Rocket Launcher to hit the APC,but the wrench was still not working.No repairing sound and icon.
-
- Posts: 9
- Joined: 2021-08-11 04:17
Re: How to repair Heavy vehicle(such as APC) with wrench?
Thanks for your reply,sir.I have done what you said,and tested it in asad_khal.I used the Rocket Launcher to hit the APC,but the wrench seemed to be still not working.No repairing sound and icon.Outlawz7 wrote:It should be materials.
pr/content/common_server.zip, material/materialmanagersettings.con
Wrench material is 84, to fix vehicles look up vehicle materials, APCs are 4000-4004 I think.
Change damageMod to something above 0
- Mats391
- PR:BF2 Lead Developer
- Posts: 7636
- Joined: 2010-08-06 18:06
Re: How to repair Heavy vehicle(such as APC) with wrench?
I think, you need to do this for the defaultMaterial. For APC and tanks this is 172
![Image](https://i.imgur.com/KYFAjrf.png)
Mineral: TIL that Wire-guided missiles actually use wire
-
- Posts: 9
- Joined: 2021-08-11 04:17
Re: How to repair Heavy vehicle(such as APC) with wrench?
emmm,,,so,where is the defaultMaterial?I can't see it in common_server.zip.Mats391 wrote:I think, you need to do this for the defaultMaterial. For APC and tanks this is 172
- Mats391
- PR:BF2 Lead Developer
- Posts: 7636
- Joined: 2010-08-06 18:06
Re: How to repair Heavy vehicle(such as APC) with wrench?
Same the other materials above in materialManagerSettings.con
Code: Select all
MaterialManager.createCell 84 172
MaterialManager.damageMod 0
![Image](https://i.imgur.com/KYFAjrf.png)
Mineral: TIL that Wire-guided missiles actually use wire
-
- Posts: 9
- Joined: 2021-08-11 04:17
Re: How to repair Heavy vehicle(such as APC) with wrench?
Finally,it works!Very thanks,sir.Mats391 wrote:Same the other materials above in materialManagerSettings.conCode: Select all
MaterialManager.createCell 84 172 MaterialManager.damageMod 0
By the way,is there any methods to make the bots respond my repairing request in radio like requesting medic?
-
- Retired PR Developer
- Posts: 17261
- Joined: 2007-02-17 14:59
Re: How to repair Heavy vehicle(such as APC) with wrench?
Give bots the wrench in one of the spawn kits?
![Image](https://i.imgur.com/Wdu9vpg.png)
-
- Posts: 9
- Joined: 2021-08-11 04:17
Re: How to repair Heavy vehicle(such as APC) with wrench?
I replaced the klappspaten to wrench for BAF rifleman in albasrah_2.And when a tank needed to be repair and the driver called for the repair in radio,the bots seemed not to work it out.Outlawz7 wrote:Give bots the wrench in one of the spawn kits?
-
- Posts: 13
- Joined: 2024-03-12 23:47
Re: How to repair Heavy vehicle(such as APC) with wrench?
Does it works with planes and every vehicle?Mats391 wrote:I think, you need to do this for the defaultMaterial. For APC and tanks this is 172