project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
20 Nov 2019, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2018-09-29, 21:04   #11
MaxP
Default Re: Disabling grenade resupply in vanilla BF2.

Quote:
Originally Posted by Mats391 View Post
Each weapons requires 100 supply points to rearm to 100%. So a weapon with 1 magazine requires 100 supply points to rearm one magazine and a weapon with 4 magazines requires 100 supply points to rearm 4 magazines. That means if a weapons has more magazines it requires less supply points per magazine and also less time to rearm a single magazine (still same time required to rearm to 100%).
Thank you. But how it works for multiple weapons?
I.e., I have 3 grenades at 1, 9 pistol mags at 2 and 10 rifle mags at 3.
The supply source has 100 supply points. Will I rearm all my weapons, or just only 1/3 of each?
MaxP is offline Reply With Quote
Old 2018-09-29, 22:32   #12
[R-DEV]Mats391
PR:BF2 Lead Developer
Supporting Member

Mats391's Avatar
Default Re: Disabling grenade resupply in vanilla BF2.

Quote:
Originally Posted by Manekk View Post
You guys are amazing. Thank you so much for trying to help me with my problem!
I will definitely leave you guys a donation for your project, should I be able to tackle the issue with your help!

So do you think changing

ObjectTemplate.ammo.nrOfMags 4
ObjectTemplate.ammo.magSize 1

to

ObjectTemplate.ammo.nrOfMags 1
ObjectTemplate.ammo.magSize 4

will give me the possibility to reduce either one of those two

ObjectTemplate.ammo.reloadTime 0.5
ObjectTemplate.ammo.minimumTimeUntilReload 0.5

so I can achieve a slower reload?

I am at work at the moment, so I cannot test it. Will do it, when I come home.

Maybe I made a mistake while changing it in rcon, but I remember changing this

ObjectTemplate.ammo.nrOfMags 4
ObjectTemplate.ammo.magSize 1

to this

ObjectTemplate.ammo.nrOfMags 1
ObjectTemplate.ammo.magSize 4


only changed the ammo count while I could still throw four nades, just without proper animation.
The client seems to refuse some changes I make to the server
reloadTime and mimimumReloadTime are the time to reload, not the time to rearm. So it is the time when you still have an additional magazine to reload that magazine. For grenadiers you want to keep magSize at 1 else you wont get reloading between firing.

Quote:
Originally Posted by MaxP View Post
Thank you. But how it works for multiple weapons?
I.e., I have 3 grenades at 1, 9 pistol mags at 2 and 10 rifle mags at 3.
The supply source has 100 supply points. Will I rearm all my weapons, or just only 1/3 of each?
All weapon rearm at once, so each gets 1/3 of the supply. In your case that is enough for 1 grenade, 3 pistol mags and 3.33 rifle mags. The 0.33 rifle mags will get lost tho.

Mineral: TIL that Wire-guided missiles actually use wire
Mats391 is offline Reply With Quote
Old 2018-09-29, 23:17   #13
Manekk
Default Re: Disabling grenade resupply in vanilla BF2.

Quote:
Originally Posted by Mats391 View Post
reloadTime and mimimumReloadTime are the time to reload, not the time to rearm. So it is the time when you still have an additional magazine to reload that magazine. For grenadiers you want to keep magSize at 1 else you wont get reloading between firing.
All I find are these lines:

rem ---BeginComp:ThrownFireComp ---
ObjectTemplate.createComponent ThrownFireComp
ObjectTemplate.fire.fireLaunchDelay 0.39
ObjectTemplate.fire.altFireInput PIAltFire
ObjectTemplate.fire.addFireRate 0
ObjectTemplate.fire.projectileStartPosition 0/0/0.2
ObjectTemplate.fire.fireLaunchDelaySoft 0.8
ObjectTemplate.fire.showWeaponAfterReloadDelay 0.1
ObjectTemplate.fire.pullBackTime 0.45
rem ---EndComp ---
rem ---BeginCompefaultAmmoComp ---
ObjectTemplate.createComponent DefaultAmmoComp
ObjectTemplate.ammo.ammoType 1
ObjectTemplate.ammo.nrOfMags 4
ObjectTemplate.ammo.magSize 1
ObjectTemplate.ammo.reloadTime 0.5
ObjectTemplate.ammo.minimumTimeUntilReload 0.5
ObjectTemplate.ammo.autoReload 1
ObjectTemplate.ammo.instantReloadOnEnable 1
ObjectTemplate.ammo.toggleWhenNoAmmo 1
rem ---EndComp ---

Any idea where I can alter the rearm time? Or ist it the wrong file?
Manekk is offline Reply With Quote
Old 2018-09-30, 00:03   #14
MaxP
Default Re: Disabling grenade resupply in vanilla BF2.

Quote:
Originally Posted by Manekk View Post
Any idea where I can alter the rearm time? Or ist it the wrong file?
In SupplyObject itself.
I.e. for stock supply:
Quote:
ObjectTemplate.healSpeed 3
ObjectTemplate.refillAmmoSpeed 7
MaxP is offline Reply With Quote
Old 2018-09-30, 00:20   #15
Manekk
Default Re: Disabling grenade resupply in vanilla BF2.

Sounds pretty interesting!
And in what file can I find that? Or how can I enter it into rcon?
Does it affect all soldiers or can I change it only for the support class?
Pretty lost at the moment, sorry.
Manekk is offline Reply With Quote
Old 2018-09-30, 00:45   #16
MaxP
Default Re: Disabling grenade resupply in vanilla BF2.

Quote:
Originally Posted by Manekk View Post
Sounds pretty interesting!
And in what file can I find that? Or how can I enter it into rcon?
Does it affect all soldiers or can I change it only for the support class?
Pretty lost at the moment, sorry.
Can't say about rcon, but you can search in your server archives with advanced file managers, like Total Commander (search by text SupplyObject in this case). It will find all the files containing this text.
But you have to know already what object you want to edit.
I.e., stock BF2 has only supply_crate object (airdrop).
This changes will affect all soldier classes, and it is not soldier depedent.
MaxP is offline Reply With Quote
Old 2018-11-04, 23:26   #17
Manekk
Default Re: Disabling grenade resupply in vanilla BF2.

A small update from me:
I tried all the suggestions made in this thread and am very thankful for what you provided so far. Your enthusiasm and helpfulness is heartwaming!
However I still have not found a solution for my problem. I am sure there is a way. I just can't figure it out, since I really lack knowledge of the deeper game mechanics.

I offer to make a donation to your project, should anyone find a solution to this problem.
At the moment the state of the game is simply saddening.

I would be very happy for any suggestion.

Thanks, Manekk
Manekk is offline Reply With Quote
Old 2018-11-05, 08:55   #18
[R-DEV]​Rhino
PR:BF2 Developer
Supporting Member

Rhino's Avatar
Default Re: Disabling grenade resupply in vanilla BF2.

I very much doubt you can stop resupply for just grenades without modifying the engine itself.

Rhino is offline Reply With Quote
Old 2018-11-05, 15:04   #19
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: Disabling grenade resupply in vanilla BF2.

Hello.
If you are serious about this, contact me on Discord.
I have some unusual tricks...

-Alon
AlonTavor is offline Reply With Quote
Reply


Tags
bf2, disabling, grenade, resupply, vanilla
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 07:25.