project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding > Modding Tutorials
08 Sep 2024, 00:00:00 (PRT)
Register Developer Blogs Members List Search Quick Links
Modding Tutorials Information and tutorials related to modding BF2.

Reply
 
Thread Tools Display Modes
Old 2010-11-19, 03:19   #1
Rhino
Retired PR Developer
Supporting Member

Rhino's Avatar
Arrow 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.

Rhino is offline
Last edited by Arab; 2021-10-05 at 10:54..
Reply With Quote
Old 2010-11-19, 07:58   #2
pfhatoa
Default Re: [BF2 Editor] Enabling Player 3rd Person Views

This is very cool! Amazing really. Thanks for the tip
pfhatoa is offline Reply With Quote
Old 2010-11-19, 09:05   #3
Amok@ndy
Retired PR Developer
Supporting Member

Amok@ndy's Avatar
Default 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


Amok@ndy is offline Reply With Quote
Old 2010-11-19, 09:32   #4
Rhino
Retired PR Developer
Supporting Member

Rhino's Avatar
Default Re: [BF2 Editor] Enabling Player 3rd Person Views

Quote:
Originally Posted by [R-CON]Amok@ndy View Post
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
I have no issues and I just re-made my pr_edit off v0.95?

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 -------------------------------------

Quote:
Originally Posted by pfhatoa View Post
This is very cool! Amazing really. Thanks for the tip
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

Rhino is offline Reply With Quote
Old 2010-11-19, 09:52   #5
pfhatoa
Default Re: [BF2 Editor] Enabling Player 3rd Person Views

Quote:
Originally Posted by [R-DEV]Rhino View Post
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
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
pfhatoa is offline Reply With Quote
Old 2010-11-19, 10:26   #6
Amok@ndy
Retired PR Developer
Supporting Member

Amok@ndy's Avatar
Default Re: [BF2 Editor] Enabling Player 3rd Person Views

cheers no more crash ty rhino


Amok@ndy is offline Reply With Quote
Old 2010-11-19, 18:59   #7
AFsoccer
Retired PR Developer
Supporting Member

AFsoccer's Avatar
Default Re: [BF2 Editor] Enabling Player 3rd Person Views

Very cool and helpful. Thanks Rhino!

AFsoccer is offline Reply With Quote
Old 2013-02-04, 20:54   #8
[R-DEV]​Ason
PR:BF2 Developer
Supporting Member

Ason's Avatar
Default 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:
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 ------------------------------------
And now it doesn't work at all, nothing happens when i click "soldier" :S Is it something i need to do before going to soldier camera?
Im only trying to get the soldier camera , not the 3rd person view.
Ason is offline Reply With Quote
Old 2013-02-04, 20:56   #9
BroCop
Default Re: [BF2 Editor] Enabling Player 3rd Person Views

You have the soldier (or something like that) tab ticked in the Mod Manager?
BroCop is offline Reply With Quote
Old 2013-02-04, 22:47   #10
[R-DEV]​Ason
PR:BF2 Developer
Supporting Member

Ason's Avatar
Default Re: [BF2 Editor] Enabling Player 3rd Person Views

Quote:
Originally Posted by CroCop View Post
You have the soldier (or something like that) tab ticked in the Mod Manager?
Haha thanks Crocop, I always forget about the Mod Manager xd
Ason is offline Reply With Quote
Reply


Tags
3rd, bf2, editor, enabling, person, player, views

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 01:10.