project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
19 Sep 2024, 00:00:00 (PRT)
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2021-08-11, 13:10   #1
NicolasZ

NicolasZ's Avatar
Question 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.
NicolasZ is offline Reply With Quote
Old 2021-08-13, 13:38   #2
Outlawz7
Retired PR Developer

Outlawz7's Avatar
Default 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.

Quote:
MaterialManager.createCell 84 4000
MaterialManager.damageMod 0
Change damageMod to something above 0

Outlawz7 is offline Reply With Quote
Old 2021-08-14, 04:50   #3
NicolasZ

NicolasZ's Avatar
Unhappy 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.
NicolasZ is offline Reply With Quote
Old 2021-08-14, 04:57   #4
NicolasZ

NicolasZ's Avatar
Unhappy Re: How to repair Heavy vehicle(such as APC) with wrench?

Quote:
Originally Posted by Outlawz7 View Post
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.
NicolasZ is offline Reply With Quote
Old 2021-08-14, 07:52   #5
[R-DEV]Mats391
PR:BF2 Lead Developer
Supporting Member
PR Server License Administrator

Mats391's Avatar
Default 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

Mineral: TIL that Wire-guided missiles actually use wire
Mats391 is offline Reply With Quote
Old 2021-08-14, 11:51   #6
NicolasZ

NicolasZ's Avatar
Post Re: How to repair Heavy vehicle(such as APC) with wrench?

Quote:
Originally Posted by Mats391 View Post
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.
NicolasZ is offline Reply With Quote
Old 2021-08-14, 13:26   #7
[R-DEV]Mats391
PR:BF2 Lead Developer
Supporting Member
PR Server License Administrator

Mats391's Avatar
Default Re: How to repair Heavy vehicle(such as APC) with wrench?

Same the other materials above in materialManagerSettings.con
Code:
MaterialManager.createCell 84 172
MaterialManager.damageMod 0

Mineral: TIL that Wire-guided missiles actually use wire
Mats391 is offline Reply With Quote
Old 2021-08-14, 13:53   #8
NicolasZ

NicolasZ's Avatar
Smile Re: How to repair Heavy vehicle(such as APC) with wrench?

Quote:
Originally Posted by Mats391 View Post
Same the other materials above in materialManagerSettings.con
Code:
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?
NicolasZ is offline Reply With Quote
Old 2021-08-14, 17:31   #9
Outlawz7
Retired PR Developer

Outlawz7's Avatar
Default Re: How to repair Heavy vehicle(such as APC) with wrench?

Give bots the wrench in one of the spawn kits?

Outlawz7 is offline Reply With Quote
Old 2021-08-15, 00:05   #10
NicolasZ

NicolasZ's Avatar
Post Re: How to repair Heavy vehicle(such as APC) with wrench?

Quote:
Originally Posted by Outlawz7 View Post
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.
NicolasZ is offline Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 16:52.