Page 1 of 1
How to repair Heavy vehicle(such as APC) with wrench?
Posted: 2021-08-11 13:10
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.
Re: How to repair Heavy vehicle(such as APC) with wrench?
Posted: 2021-08-13 13:38
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
Re: How to repair Heavy vehicle(such as APC) with wrench?
Posted: 2021-08-14 04:50
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.
Re: How to repair Heavy vehicle(such as APC) with wrench?
Posted: 2021-08-14 04:57
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.
Re: How to repair Heavy vehicle(such as APC) with wrench?
Posted: 2021-08-14 07:52
by Mats391
I think, you need to do this for the defaultMaterial. For APC and tanks this is 172
Re: How to repair Heavy vehicle(such as APC) with wrench?
Posted: 2021-08-14 11:51
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.
Re: How to repair Heavy vehicle(such as APC) with wrench?
Posted: 2021-08-14 13:26
by Mats391
Same the other materials above in materialManagerSettings.con
Code: Select all
MaterialManager.createCell 84 172
MaterialManager.damageMod 0
Re: How to repair Heavy vehicle(such as APC) with wrench?
Posted: 2021-08-14 13:53
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?
Re: How to repair Heavy vehicle(such as APC) with wrench?
Posted: 2021-08-14 17:31
by Outlawz7
Give bots the wrench in one of the spawn kits?
Re: How to repair Heavy vehicle(such as APC) with wrench?
Posted: 2021-08-15 00:05
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.
Re: How to repair Heavy vehicle(such as APC) with wrench?
Posted: 2024-07-05 06:01
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?