Enabling Player 3rd Person Views

Information and tutorials related to modding BF2.
Post Reply
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Enabling Player 3rd Person Views

Post by Rhino »

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 :D
Image

Image Image Image
Image Image Image
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: Select all

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 [b]1[/b]
ObjectTemplate.CVMChase [b]1[/b]
ObjectTemplate.CVMFrontChase [b]1[/b]
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) :D


Hope this helps, have fun! :D

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 on 2021-10-05 10:54, edited 5 times in total.
Image
pfhatoa
Posts: 917
Joined: 2009-08-27 19:26

Re: [BF2 Editor] Enabling Player 3rd Person Views

Post by pfhatoa »

This is very cool! Amazing really. Thanks for the tip :)
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [BF2 Editor] Enabling Player 3rd Person Views

Post by Amok@ndy »

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
Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [BF2 Editor] Enabling Player 3rd Person Views

Post by Rhino »

[quote=""'[R-CON"]Amok@ndy;1492554']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[/quote]

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: Select all

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="pfhatoa""]This is very cool! Amazing really. Thanks for the tip :) [/quote]

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 :p
Image
pfhatoa
Posts: 917
Joined: 2009-08-27 19:26

Re: [BF2 Editor] Enabling Player 3rd Person Views

Post by pfhatoa »

[R-DEV]Rhino wrote: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 :p
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 :)
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [BF2 Editor] Enabling Player 3rd Person Views

Post by Amok@ndy »

cheers no more crash :) ty rhino
Image
AFsoccer
Retired PR Developer
Posts: 4289
Joined: 2007-09-04 07:32

Re: [BF2 Editor] Enabling Player 3rd Person Views

Post by AFsoccer »

Very cool and helpful. Thanks Rhino!
User avatar
Ason
PR:BF2 Developer
Posts: 1749
Joined: 2012-10-22 10:29

Re: [BF2 Editor] Enabling Player 3rd Person Views

Post by Ason »

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
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.
BroCop
Posts: 4155
Joined: 2008-03-08 12:28

Re: [BF2 Editor] Enabling Player 3rd Person Views

Post by BroCop »

You have the soldier (or something like that) tab ticked in the Mod Manager?
Image
User avatar
Ason
PR:BF2 Developer
Posts: 1749
Joined: 2012-10-22 10:29

Re: [BF2 Editor] Enabling Player 3rd Person Views

Post by Ason »

CroCop wrote: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
Post Reply

Return to “Modding Tutorials”