project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
20 Sep 2020, 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 2019-08-13, 22:03   #1
potential
Default value for physics rocket

Hello asking about missile modding
potential is offline
Last edited by potential; 2020-08-05 at 12:31..
Reply With Quote
Old 2019-08-14, 08:27   #2
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: Battlefield 2 Performance/Maneuverability missile

...what

Are you asking about modding? Or are you giving a suggestion?
AlonTavor is online now
Last edited by AlonTavor; 2019-08-14 at 08:44..
Reply With Quote
Old 2019-08-14, 09:00   #3
potential
Default value for physics rocket

asking about modding physics of rocket
potential is offline
Last edited by potential; 2020-08-05 at 12:32..
Reply With Quote
Old 2019-08-14, 13:10   #4
[R-DEV]​Arab
PR:BF2 Developer
Supporting Member

Arab's Avatar
Default Re: AGM114 missile tweaking

Moved thread to Community Modding.

First thing is to make a copy of pr folder and rename it to pr_edit, then in mods/pr_edit/bin/PRLauncher.exe, create a shortcut on the desktop and rename it to something like pr_edit so you know that launches PR with modified changes. Be aware that you can't join any servers in pr_edit.

The file to modify is in C:\Program Files (x86)\Project Reality\Project Reality BF2\mods\pr_edit\content\objects_weapons_server.zi p\weapons\Armament\missiles\agm114_hellfire.tweak

Open that with Notepad++ (Recommended as it is a much better version of Notepad, avoid using Wordpad due to formatting issues)

You can increase the values in the following lines to make it faster:
Code:
ObjectTemplate.acceleration 300
ObjectTemplate.maxSpeed 125
Manuevaribility can be tweaked by increasing the values here:
Code:
rem ---BeginComp:DefaultFollowComp ---
ObjectTemplate.createComponent DefaultFollowComp
ObjectTemplate.follow.maxYaw 1.5
ObjectTemplate.follow.maxPitch 1.5
ObjectTemplate.follow.changePitch 0.2
ObjectTemplate.follow.changeYaw 0.2
ObjectTemplate.follow.minDist 10
rem ---EndComp ---
Most likely increasing changePitch, changeYaw can have a noticable difference but try increasing everything and having it the same value.

The best way to test this is in Test Airfield (COOP 64). This way, you can test your changes without organizing a playtest.

Code:
rcon debug - turns debug mode on.
rcon oneman - allows you to get into any vehicle with no kit requirements.
rcon start - allows you to skip vehicle start delay.
rcon health (name) 100 - gives you 100 HP in health.
rcon damage (name) 100 - gives you 100 HP to the vehicle.
rcon damage - turns on/off vehicle damage.
rcon spawner (vehicle) - allows you to spawn a vehicle that's in the map (otherwise game will crash).
rcon teleport 100 - to teleport 100m.
!fly (name) 100 - to launch yourself 100m.
.zip files are recommended to be opened in WinRar since it's what most people use.

You can modify soldier HP to be really high by opening each soldier in objects_common_server.zip/soldiers/pr_usa (example)/and opening each .tweak file.

Then replace ObjectTemplate.armor.maxHitPoints 100 and ObjectTemplate.armor.hitPoints 100 to 99999 and save for each.

Arab is offline
Last edited by Arab; 2019-08-14 at 13:37..
Reply With Quote
Old 2019-08-14, 19:27   #5
potential
Default value for physics rocket

Thank you so much
potential is offline
Last edited by potential; 2020-08-05 at 12:32..
Reply With Quote
Old 2019-08-21, 03:04   #6
[R-DEV]​Arab
PR:BF2 Developer
Supporting Member

Arab's Avatar
Default Re: AGM114 missile tweaking

Quote:
Originally Posted by potential View Post
Thank you so much

i have alot more questions

what are the max values on those settings

--------------------------------------
ObjectTemplate.follow.maxYaw 1.5
ObjectTemplate.follow.maxPitch 1.5
ObjectTemplate.follow.changePitch 0.2
ObjectTemplate.follow.changeYaw 0.2
ObjectTemplate.follow.minDist 10
--------------------------------------

i have actually tried to change those values somewhile now, i am just going for more and more
what can be done, example there are a setting ObjectTemplate.Stiffness in that notepad file, that makes the missile very fast to move yes, i was wondering can i add anything in that section more, to make missile more ¤¤RESPONSIBLE¤¤ is the word, example can i bring in ObjectTemplate.softness or whatever more commands in the agm114,

(under)
ObjectTemplate.addTemplate S_agm114_hellfire_tv_Camera_RotationRpm

to make it even more better, i know it sounds funny or weird, but are there more ways?

keywords are:

1) best missile responsiveness
2) the most manuverable the missile can be tweaked
3) i am not necessarily looking the [faster] part of it

i am looking close to this one

https://www.youtube.com/watch?v=efNWODJ9s3c&t=101s

^ yes i know there are factors like macro
^ and of course the ping factor, video are made close to 40 ping

# can anything be changed elsewhere than agm114 file, example control.con
# or any other file, i dont know about

Thanks.
Not sure what the max values are, but have a look at the list of BF2 Commands and see what does what:
https://www.realitymod.com/forum/sho...d.php?t=109751

Arab is offline Reply With Quote
Old 2019-08-21, 09:20   #7
potential
Default value for physics rocket

there is no real description on those lines what does exactly what, there is only

std::string -> void
bool -> bool
float -> float

behind every command

but example can i use diffrent ObjectTemplate commands on diffrent tweak files
potential is offline
Last edited by potential; 2020-08-05 at 12:33..
Reply With Quote
Old 2019-09-11, 15:55   #8
[R-CON]​Fastjack
PR:BF2 Contributor

Fastjack's Avatar
Default Re: AGM114 missile tweaking

@Arab
I think he mean more like this : ObjectTemplate.target.connectionEffect e_towscope

@potential

After watching the YouTube clip ….
You want more responsiveness for your missile maneuverability right? If i understand you right, you trying to steer your missile directly with your crosshair without pressing leftclick over and over again right?


I dont have bf2vanilla installed on this Computer. Also i dont have the tweak of the vanilla agm114 and PR dont use the projectilecamera method like vanilla (The e_towscope_connectionEffect was used LONGTIME AGO).


But it should be possible because the OPK mod for BF2 has this option for the HOT Missiles you looking for in the Bölkow Bo-105 but they dont used the projectilecamera.

Try to add to your agm114 weaponlauncher :

Code:
ObjectTemplate.target.connectionEffect e_towscope
Fastjack is offline Reply With Quote
Old 2019-09-13, 18:22   #9
potential
Default value for physics rocket

okay thanks
potential is offline
Last edited by potential; 2020-08-05 at 12:33..
Reply With Quote
Old 2019-09-13, 19:22   #10
[R-DEV]​rPoXoTauJIo
PR:BF2 Developer
Supporting Member

rPoXoTauJIo's Avatar
Default Re: AGM114 missile tweaking

You have other options to do so.
1. Decrease missile speed + increase TTL
Code:
ObjectTemplate.maxSpeed 125
ObjectTemplate.timeToLive CRD_NONE/3.5/0/0
2. Move camera back, so you'll get larger FOV to use TV guidance
Code:
ObjectTemplate.addTemplate agm114_hellfire_tv_Camera
ObjectTemplate.setPosition 0/0/0.986687
3. Increase FOV itself on camera, so you can target larger area
Code:
ObjectTemplate.worldFOV 0.6
ObjectTemplate.insideFOV 0.6
other than that, you've already heard options, change values in FollowComp...

assetruler69: I've seen things you smurfs wouldn't believe. Apaches on the Kashan. I watched burned down tank hulls after the launch of the single TOW. All those moments will be lost in time, like tears in rain.
Time to give up and respawn.
rPoXoTauJIo 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 21:09.