Forums Gallery Downloads LOGIN |REGISTER

How To Enable Third Person View

Gameplay Setup, SP/MP Logic, Audio Setup, AI Logic, Entity Usage, etc.


 

Criminal
Skilled Developer
Skilled Developer
 
Posts: 608
Member since: 03.08.2007, 05:16
Location: Austin, Texas
Likes: 11

How To Enable Third Person View

Postby Criminal » 22.08.2011, 13:51

Hey guys!
I have gotten a few PM's and questions about where Third Person mode has gone. I wanted to let you know how to enable it in case the game you are creating needs something other than First Person.

To enable Third Person:
1. Explore to (or export from the gamedata.pak) the Libs folder.
2. Within the Libs folder is the Config directory which contain the file that we need to modify called "defaultProfile.xml"
3. Open the file in a text editor.
Locate the "debug" block for the action map (should be right near the top)
Code: Select all
   <actionmap name="debug" version="22">
   <!-- debug keys - move to debug when we can switch devmode-->
      <action name="flymode" onPress="1" noModifiers="1" keyboard="f3" />
      <action name="godmode" onPress="1" noModifiers="1" keyboard="f4" />
      <action name="toggleaidebugdraw" onPress="1" noModifiers="1" keyboard="f11" />
      <action name="togglepdrawhelpers" onPress="1" noModifiers="1" keyboard="f10" />
      <action name="ulammo" onPress="1" noModifiers="1" keyboard="np_2" />
      <action name="debug" onPress="1" keyboard="7" />      
    <!-- debug keys - end -->
   </actionmap>

4. Add the string "thirdperson" to an action at the end of the block
Code: Select all
<action name="thirdperson" onPress="1" keyboard="f1" />

so you will end up with a block that looks like the following:
Code: Select all
   <actionmap name="debug" version="22">
   <!-- debug keys - move to debug when we can switch devmode-->
      <action name="flymode" onPress="1" noModifiers="1" keyboard="f3" />
      <action name="godmode" onPress="1" noModifiers="1" keyboard="f4" />
      <action name="toggleaidebugdraw" onPress="1" noModifiers="1" keyboard="f11" />
      <action name="togglepdrawhelpers" onPress="1" noModifiers="1" keyboard="f10" />
      <action name="ulammo" onPress="1" noModifiers="1" keyboard="np_2" />
      <action name="debug" onPress="1" keyboard="7" />      
      <action name="thirdperson" onPress="1" keyboard="f1" />
    <!-- debug keys - end -->
   </actionmap>

Restart the editor and press F1 for thirdperson

Enjoy!

-Sean
Image
Want to learn the CryENGINE3? Purchase the CryENGINE3 CookBook! https://www.packtpub.com/cryengine-3-cookbook/book
User avatar
the_grim
Superstar Dolphin
Superstar Dolphin
 
Posts: 9884
Member since: 16.08.2004, 10:46
Location: Finland
Likes: 189

Re: How To Enable Third Person View

Postby the_grim » 22.08.2011, 14:35

Thanks for the info! For the record, third person mode can also be enabled using a console variable. :)
Criminal
Skilled Developer
Skilled Developer
 
Posts: 608
Member since: 03.08.2007, 05:16
Location: Austin, Texas
Likes: 11

Re: How To Enable Third Person View

Postby Criminal » 22.08.2011, 15:44

the_grim wrote:Thanks for the info! For the record, third person mode can also be enabled using a console variable. :)

You just HAD to one up me didn't you :)
This is true of course, i just guess I like having it in the action map since I'm used to it being there.
Image
Want to learn the CryENGINE3? Purchase the CryENGINE3 CookBook! https://www.packtpub.com/cryengine-3-cookbook/book
b3h47pte
Just getting started
Just getting started
 
Posts: 3
Member since: 11.11.2008, 06:01
Likes: 0

Re: How To Enable Third Person View

Postby b3h47pte » 23.08.2011, 22:46

the_grim wrote:Thanks for the info! For the record, third person mode can also be enabled using a console variable. :)


Which console variable? :3
I tried doing it using the defaultProfile.xml way however it hasn't worked for me.
Any help? Thanks.

Edit: Nevermind, figured out the console variable. However, I don't understand why extracting GameData.pak and then modifying the defaultProfile.xml didn't work. :( Do i need to repackage my GameData folder?
User avatar
modsuki
Has seen it all
Has seen it all
 
Posts: 5227
Member since: 02.02.2007, 07:25
Likes: 258

Re: How To Enable Third Person View

Postby modsuki » 24.08.2011, 13:49

Thanks Criminal. :)
Last edited by modsuki on 24.08.2011, 23:14, edited 1 time in total.
My Crytek News Blog - http://bit.ly/aFSbnP
My Massive Crysis Maps Guide - http://bit.ly/f5ifhe
My CryEngine Screens - http://bit.ly/wIDNDJ
My Youtube - http://bit.ly/xIg1l1
My Twitter - http://bit.ly/yZtaoH0
User avatar
helpsl
Junior Dev
Junior Dev
 
Posts: 149
Member since: 27.07.2009, 15:53
Location: Space
Likes: 1

Re: How To Enable Third Person View

Postby helpsl » 24.08.2011, 15:09

add this line to system.cfg
g_tpview_force_goc=1
this will stop the camera going through objects
User avatar
VG_Director
Just getting started
Just getting started
 
Posts: 18
Member since: 18.08.2011, 14:15
Likes: 0

Re: How To Enable Third Person View

Postby VG_Director » 24.08.2011, 19:04

Nice!
But how do you change the positioning of the camera?
User avatar
the_grim
Superstar Dolphin
Superstar Dolphin
 
Posts: 9884
Member since: 16.08.2004, 10:46
Location: Finland
Likes: 189

Re: How To Enable Third Person View

Postby the_grim » 24.08.2011, 20:16

You can adjust the position using the "tpv" console commands. ;)
User avatar
modsuki
Has seen it all
Has seen it all
 
Posts: 5227
Member since: 02.02.2007, 07:25
Likes: 258

Re: How To Enable Third Person View

Postby modsuki » 24.08.2011, 22:45

Only tpv dist & tpv yaw in Cvar. Poor for adjustment. Original GOC had xyz value.
And "pitch" is more important than yaw. :(

And g_tpview_control & g_tpvie_enable don't work in system.cfg.

EDIT: Oh, missed
My Crytek News Blog - http://bit.ly/aFSbnP
My Massive Crysis Maps Guide - http://bit.ly/f5ifhe
My CryEngine Screens - http://bit.ly/wIDNDJ
My Youtube - http://bit.ly/xIg1l1
My Twitter - http://bit.ly/yZtaoH0
wootwoots
Producer
Producer
 
Posts: 1730
Member since: 18.01.2010, 23:11
Likes: 2

Re: How To Enable Third Person View

Postby wootwoots » 26.08.2011, 05:09

thoses Goc cvar only work for the CE3 SDK i suppose ? :/
Azza
Just getting started
Just getting started
 
Posts: 9
Member since: 04.08.2007, 14:07
Location: australia,brisbane
Likes: 0

Re: How To Enable Third Person View

Postby Azza » 04.09.2011, 14:03

Where is the library located in CE3? I did a quick search and can't find it.
FrostDM
Just getting started
Just getting started
 
Posts: 23
Member since: 25.11.2009, 19:13
Location: Serbia
Likes: 0

Re: How To Enable Third Person View

Postby FrostDM » 06.09.2011, 14:58

That is all nice and dandy but how to create proper 3rd person view?
I mean enter game bee in 3rd person, aim-switch to 1st person, prone, animated cover system all that jazz?
Anyone made something like that so far?
User avatar
jojimbo
Just getting started
Just getting started
 
Posts: 12
Member since: 05.09.2011, 20:44
Likes: 0

Re: How To Enable Third Person View

Postby jojimbo » 08.09.2011, 20:49

worked a treat thanks for that, only thing is the 3rd person guy doesnt rflect the 1st person arms, is there a way to have the 3rd person guy the 1st person guy so i can see my legs?

sorry about the awful explanation
"So shall it be at the end of the world: the angels shall come forth, and sever the wicked from among the just, And shall cast them into the furnace of fire: there shall be weeping and gnashing of teeth."

(Matthew 13:49-50)
User avatar
YamahaAlex37
Junior Dev
Junior Dev
 
Posts: 123
Member since: 24.08.2004, 01:34
Likes: 2

Re: How To Enable Third Person View

Postby YamahaAlex37 » 09.09.2011, 10:30

Why does this very simple script give me an actionmap default user does not exist error?
McTune
Just getting started
Just getting started
 
Posts: 4
Member since: 07.09.2011, 01:19
Likes: 0

Re: How To Enable Third Person View

Postby McTune » 11.09.2011, 08:10

Hello I have moderate experience scripting but I am new to cryengine. I can't open the Gamedata.Pak file. I can't find any DefaultProfile.xml I found gamedata but I can't open or export a Pak file. What should I use or where do you think I am failing to look? any ideas thanks


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community