|
Modding Tutorials Information and tutorials related to modding BF2. |
|
Thread Tools | Display Modes |
2010-11-19, 03:19 | #1 |
Retired PR Developer
|
Enabling Player 3rd Person Views
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! 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 Arab; 2021-10-05 at 10:54..
|
2010-11-19, 07:58 | #2 |
Join Date: Aug 2009
Posts: 906
Sweden
|
Re: [BF2 Editor] Enabling Player 3rd Person Views
This is very cool! Amazing really. Thanks for the tip
|
2010-11-19, 09:05 | #3 |
Retired PR Developer
|
Re: [BF2 Editor] Enabling Player 3rd Person Views
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
|
|
|
2010-11-19, 09:32 | #4 | |
Retired PR Developer
|
Re: [BF2 Editor] Enabling Player 3rd Person Views
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 | |
|
||
2010-11-19, 09:52 | #5 |
Join Date: Aug 2009
Posts: 906
Sweden
|
Re: [BF2 Editor] Enabling Player 3rd Person Views
Well, it certainly will help me to position small objects, set the correct heights for the walls and so on. So mini-amazing it is
|
2010-11-19, 18:59 | #7 |
Retired PR Developer
Join Date: Sep 2007
Posts: 4,280
United States of America
Location: Denver, Colorado
|
Re: [BF2 Editor] Enabling Player 3rd Person Views
Very cool and helpful. Thanks Rhino!
|
|
|
2013-02-04, 20:54 | #8 | |
PR:BF2 Developer
Join Date: Oct 2012
Posts: 1,737
Hungary
|
Re: [BF2 Editor] Enabling Player 3rd Person Views
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. | |
2013-02-04, 20:56 | #9 |
Join Date: Mar 2008
Posts: 4,152
Croatia
|
Re: [BF2 Editor] Enabling Player 3rd Person Views
You have the soldier (or something like that) tab ticked in the Mod Manager?
|
2013-02-04, 22:47 | #10 |
PR:BF2 Developer
Join Date: Oct 2012
Posts: 1,737
Hungary
|
Re: [BF2 Editor] Enabling Player 3rd Person Views
|
Tags |
3rd, bf2, editor, enabling, person, player, views |
|
|