Page 1 of 1

value for physics rocket

Posted: 2019-08-13 22:03
by potential
Hello asking about missile modding

Re: Battlefield 2 Performance/Maneuverability missile

Posted: 2019-08-14 08:27
by AlonTavor
...what

Are you asking about modding? Or are you giving a suggestion?

value for physics rocket

Posted: 2019-08-14 09:00
by potential
asking about modding physics of rocket

Re: AGM114 missile tweaking

Posted: 2019-08-14 13:10
by Arab
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.zip\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: Select all

ObjectTemplate.acceleration 300
ObjectTemplate.maxSpeed 125
Manuevaribility can be tweaked by increasing the values here:

Code: Select all

rem ---BeginComp :D efaultFollowComp ---
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: Select all

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.

value for physics rocket

Posted: 2019-08-14 19:27
by potential
Thank you so much

Re: AGM114 missile tweaking

Posted: 2019-08-21 03:04
by Arab
potential wrote: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/showth ... p?t=109751

value for physics rocket

Posted: 2019-08-21 09:20
by potential
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

Re: AGM114 missile tweaking

Posted: 2019-09-11 15:55
by Fastjack
@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: Select all

ObjectTemplate.[color=Red]target[/color].connectionEffect e_towscope

value for physics rocket

Posted: 2019-09-13 18:22
by potential
okay thanks

Re: AGM114 missile tweaking

Posted: 2019-09-13 19:22
by rPoXoTauJIo
You have other options to do so.
1. Decrease missile speed + increase TTL

Code: Select all

ObjectTemplate.maxSpeed [color=Red]125[/color]
ObjectTemplate.timeToLive CRD_NONE/[color=Red]3.5[/color]/0/0
2. Move camera back, so you'll get larger FOV to use TV guidance

Code: Select all

ObjectTemplate.addTemplate agm114_hellfire_tv_Camera
ObjectTemplate.setPosition 0/0/[color=Red]0.986687[/color]
3. Increase FOV itself on camera, so you can target larger area

Code: Select all

ObjectTemplate.worldFOV [color=red]0.6[/color]
ObjectTemplate.insideFOV [color=red]0.6[/color]
other than that, you've already heard options, change values in FollowComp...

Re: AGM114 missile tweaking

Posted: 2019-09-13 20:11
by AlonTavor
Are you trying to host a BF2 server with these modifications? Or are you trying to join an existing BF2 heli-war server?

I'm asking again as it seemed like that from Discord. It does not sound like you want to mess around with creating a mod, rather you want tweaks to help you in heli-wars on an existing server, evident by your example where you claimed that "each player has different tweak".

We are talking about server-side modifications. You are talking about player configurations. You cannot change these things as the client.

value for physics rocket

Posted: 2019-09-13 20:23
by potential
First of all Thank you for answering, when i first saw your name answering people, i think it was (Chopper flight models)

Re: AGM114 missile tweaking

Posted: 2019-09-16 01:12
by rPoXoTauJIo
potential wrote:what does TimeToLive has to do with missile responsiveness,manuverability? - this is the setting, how long missile will stay in air i think
Yes. Combined with decreased speed you can hit targets easier.
potential wrote:# ObjectTemplate.setPosition 0/0/0.986687 - that is a interesting one, i have never changed that before, as you say it will give you larger FOV to use TV guidance, does MOVE CAMERA BACK mean decreasing the value or increasing it? and more detailed should i change it in 100s or 1000s
On Z axis it should be negative value to move it back. So change to -15 or something, play with values.

potential wrote: ObjectTemplate.Stiffness is also something that makes missile fly faster and more manuverable,but i have always thoughts like, can i bring in other commands like example Objecttemplate.softness or any other physics commands
Pretty much everything that could be used already described in thread.
Other variants, like using actual rocket engine or wings would rather produce negative effect on missile performance.

value for physics rocket

Posted: 2019-09-16 14:25
by potential
okay got it thanks

Re: AGM114 missile tweaking

Posted: 2019-09-27 01:37
by rPoXoTauJIo
potential wrote: 1) what about e_missile_trail in agm114 file
Effects, nothing to do with missile physics.
potential wrote: # ControlMap.addButtonToTriggerMapping c_GIOk IDFMouse IDButton_ 0 0 0 default
Tweaked:
ControlMap.addButtonToTriggerMapping c_GIOk IDFMouse IDButton_0 0.0334 0
Client side control settings, nothing to do with missile physics.
potential wrote: controlMap.setPitchFactor 1
controlMap.setYawFactor 1
Client side control settings, nothing to do with missile physics.
potential wrote: HudElementsAh1zCoPilot.con
HudElementsZ10CoPilot.con
Hud, nothing to do with missile physics.
FOV defined in camera, already explained above.

value for physics rocket

Posted: 2020-08-05 00:38
by potential
:goodvibes