|
Modding Tutorials Information and tutorials related to modding BF2. |
![]() |
|
Thread Tools | Display Modes |
![]() |
#1 |
PR:BF2 Developer
![]() |
![]()
Hey guys,
Quick tutorial here on how to enable 3rd person views for your player in the BF2 Editor which can be very useful for when it comes to checking out statics in relation to the player, checking out weapon animations/effects and many other things ![]() Basically to do this is a very simple tweak of a current file. All you need to do is browse to: "\mods\pr_edit\objects\soldiers\Common" and in there, there should be a "SoldierCamera.tweak" file. Open that with any text editor, like notepad and then paste in the following code over the current code (changes highlighted in bold). Code:
rem *** Generated with Bf2Editor.exe [created: 2004/10/13 15:1] ObjectTemplate.activeSafe Camera SoldierCamera ObjectTemplate.modifiedByUser LJO ObjectTemplate.saveInSeparateFile 1 ObjectTemplate.hasMobilePhysics 0 rem ------------------------------------- ObjectTemplate.addTemplate S_SoldierCamera_RotationRpm rem ------------------------------------- ObjectTemplate.CVMInside 1 ObjectTemplate.CVMFlyBy 1 ObjectTemplate.CVMChase 1 ObjectTemplate.CVMFrontChase 1 ObjectTemplate.CVMNose 0 ObjectTemplate.CVMTrace 0 ObjectTemplate.CVMExternTrace 0 ObjectTemplate.cameraShakeSensitivity 0.8 ObjectTemplate.chaseDistance 6 ObjectTemplate.followStiffness 0 ObjectTemplate.chaseAngle 0.1 ObjectTemplate.worldFOV 1.1 ObjectTemplate.insideFOV 1.1 ObjectTemplate.activeSafe Sound S_SoldierCamera_RotationRpm ObjectTemplate.modifiedByUser LJO Save that file up and load up the BF2 Editor (if it's already running you will need to restart it for this change to take effect) and now when you go into player camera mode, or enter a handheld weapon, push the "c" button and you should cycle between all the 3p views (chase, front chase and fly by) ![]() Hope this helps, have fun! ![]() Other Camera modes for in-game: Arab's Camera Views If you wish to change the Editor's default soldier or kit, change the "default_soldier_template" and "default_soldier_kit_template" in the "mod.desc" file to the one you wish to run around with. |
|
|
![]() |
Last edited by Rhino; 2021-03-10 at 08:51..
![]() |
![]() |
#2 |
Join Date: Aug 2009
Posts: 906
![]() |
![]()
This is very cool! Amazing really. Thanks for the tip
![]() |
![]() |
![]() |
![]() |
#3 |
Retired PR Developer
![]() |
![]()
can you expand this tutorial also to how enable the Soldier Camera at all ? for me its crashing all the time cause of an index error with the kni_bar
|
![]() |
|
![]() |
![]() |
![]() |
#4 | |
PR:BF2 Developer
![]() |
![]() Quote:
but your issue sounds like you most likely have an issue with your "US_Specops.con" kit since that's the one the BF2 editor uses by default. In the latest versions of PR there is no "US_Specops.con" kit, but it still might be using the one from vBF2 but the kit in my screen had an m16 in it by default so ehhh, unlikely... Not sure what defines the default kit the editor uses tbh, but I expect if you fix up your "US_Specops.con" to how you like it, in your "\objects\kits\us\" folder, everything should work out fine. Just copy in the weapons bit from another kit, like for example this set up: Code:
rem ------------------------------------- ObjectTemplate.addTemplate kni_kabar ObjectTemplate.addTemplate USPIS_92FS ObjectTemplate.addTemplate usrif_m4scope ObjectTemplate.addTemplate USHGR_M67 ObjectTemplate.addTemplate radio ObjectTemplate.addTemplate hgr_smoke_signalpurple ObjectTemplate.addTemplate SIMRAD ObjectTemplate.addTemplate medikit_dressing_3 ObjectTemplate.addTemplate hgr_incendiary rem ------------------------------------- hehe its not that amazing, I've been doing this for years just made this tut since I needed this info for another tut I'm typing up and thought it would be best to do this as a separate tut for it to be linked to ![]() | |
|
||
![]() |
![]() |
![]() |
#5 | |
Join Date: Aug 2009
Posts: 906
![]() |
![]() Quote:
![]() | |
![]() |
![]() |
![]() |
#7 |
Retired PR Developer
![]() Join Date: Sep 2007
Posts: 4,280
![]()
Location: Denver, Colorado
|
![]()
Very cool and helpful. Thanks Rhino!
|
![]() |
|
![]() |
![]() |
![]() |
#8 | |
PR:BF2 Developer
![]() Join Date: Oct 2012
Posts: 1,626
![]() |
![]()
I tried Soldier camera mode and it worked but when i switched back to normal camera it crashed so i tried to replace the weapon part like you said
Quote:
Im only trying to get the soldier camera , not the 3rd person view. | |
![]() |
![]() |
![]() |
#9 |
Join Date: Mar 2008
Posts: 4,154
![]() |
![]()
You have the soldier (or something like that) tab ticked in the Mod Manager?
|
![]() |
|
![]() |
![]() |
![]() |
#10 |
PR:BF2 Developer
![]() Join Date: Oct 2012
Posts: 1,626
![]() |
![]() |
![]() |
![]() |
![]() |
Tags |
3rd, bf2, editor, enabling, person, player, views |
Thread Tools | |
Display Modes | |
|
|