How to repair Heavy vehicle(such as APC) with wrench?

Making or wanting help making your own asset? Check in here
Post Reply
NicolasZ
Posts: 9
Joined: 2021-08-11 04:17

How to repair Heavy vehicle(such as APC) with wrench?

Post by NicolasZ »

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.
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: How to repair Heavy vehicle(such as APC) with wrench?

Post by Outlawz7 »

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.
MaterialManager.createCell 84 4000
MaterialManager.damageMod 0
Change damageMod to something above 0
Image
NicolasZ
Posts: 9
Joined: 2021-08-11 04:17

Re: How to repair Heavy vehicle(such as APC) with wrench?

Post by NicolasZ »

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.
NicolasZ
Posts: 9
Joined: 2021-08-11 04:17

Re: How to repair Heavy vehicle(such as APC) with wrench?

Post by NicolasZ »

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
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.
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Re: How to repair Heavy vehicle(such as APC) with wrench?

Post by Mats391 »

I think, you need to do this for the defaultMaterial. For APC and tanks this is 172
Image

Mineral: TIL that Wire-guided missiles actually use wire
NicolasZ
Posts: 9
Joined: 2021-08-11 04:17

Re: How to repair Heavy vehicle(such as APC) with wrench?

Post by NicolasZ »

Mats391 wrote:I think, you need to do this for the defaultMaterial. For APC and tanks this is 172
emmm,,,so,where is the defaultMaterial?I can't see it in common_server.zip.
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Re: How to repair Heavy vehicle(such as APC) with wrench?

Post by Mats391 »

Same the other materials above in materialManagerSettings.con

Code: Select all

MaterialManager.createCell 84 172
MaterialManager.damageMod 0
Image

Mineral: TIL that Wire-guided missiles actually use wire
NicolasZ
Posts: 9
Joined: 2021-08-11 04:17

Re: How to repair Heavy vehicle(such as APC) with wrench?

Post by NicolasZ »

Mats391 wrote:Same the other materials above in materialManagerSettings.con

Code: Select all

MaterialManager.createCell 84 172
MaterialManager.damageMod 0
Finally,it works!Very thanks,sir.

By the way,is there any methods to make the bots respond my repairing request in radio like requesting medic?
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: How to repair Heavy vehicle(such as APC) with wrench?

Post by Outlawz7 »

Give bots the wrench in one of the spawn kits?
Image
NicolasZ
Posts: 9
Joined: 2021-08-11 04:17

Re: How to repair Heavy vehicle(such as APC) with wrench?

Post by NicolasZ »

Outlawz7 wrote:Give bots the wrench in one of the spawn kits?
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.
MustafaAbd0
Posts: 13
Joined: 2024-03-12 23:47

Re: How to repair Heavy vehicle(such as APC) with wrench?

Post by MustafaAbd0 »

Mats391 wrote:I think, you need to do this for the defaultMaterial. For APC and tanks this is 172
Does it works with planes and every vehicle?
Post Reply

Return to “PR:BF2 Community Modding”