View unanswered posts | View active topics


Forum lockedPost a reply
Previous topic | Next topic 

  Skilled Modder Skilled ModderMember since: 03.08.2007, 05:16Posts: 608Location: Austin, Texas Likes: 11
 

 Post Topic: How To Enable Third Person View
PostPosted 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:
   <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:
<action name="thirdperson" onPress="1" keyboard="f1" />

so you will end up with a block that looks like the following:
Code:
   <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   Superstar Dolphin Superstar DolphinMember since: 16.08.2004, 10:46Posts: 9874Location: Finland Likes: 181
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 22.08.2011, 14:35 
Thanks for the info! For the record, third person mode can also be enabled using a console variable. :)
  Skilled Modder Skilled ModderMember since: 03.08.2007, 05:16Posts: 608Location: Austin, Texas Likes: 11
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 22.08.2011, 15:44 
Quote by the_grim:
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
  Beginner BeginnerMember since: 11.11.2008, 06:01Posts: 3 Likes: 0
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 23.08.2011, 22:46 
Quote by the_grim:
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   Has no life Has no lifeMember since: 02.02.2007, 07:25Posts: 5170 Likes: 252
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 24.08.2011, 13:49 
Thanks Criminal. :)


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


Last edited by modsuki on 24.08.2011, 23:14, edited 1 time in total.
User avatar   Trainee TraineeMember since: 27.07.2009, 15:53Posts: 149Location: Space Likes: 1
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 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   Beginner BeginnerMember since: 18.08.2011, 14:15Posts: 18 Likes: 0
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 24.08.2011, 19:04 
Nice!
But how do you change the positioning of the camera?
User avatar   Superstar Dolphin Superstar DolphinMember since: 16.08.2004, 10:46Posts: 9874Location: Finland Likes: 181
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 24.08.2011, 20:16 
You can adjust the position using the "tpv" console commands. ;)
User avatar   Has no life Has no lifeMember since: 02.02.2007, 07:25Posts: 5170 Likes: 252
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 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
  Uber Modder Uber ModderMember since: 18.01.2010, 23:11Posts: 1730 Likes: 1
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 26.08.2011, 05:09 
thoses Goc cvar only work for the CE3 SDK i suppose ? :/
  Beginner BeginnerMember since: 04.08.2007, 14:07Posts: 9Location: australia,brisbane Likes: 0
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 04.09.2011, 14:03 
Where is the library located in CE3? I did a quick search and can't find it.
  Beginner BeginnerMember since: 25.11.2009, 19:13Posts: 23Location: Serbia Likes: 0
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 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   Beginner BeginnerMember since: 05.09.2011, 20:44Posts: 12 Likes: 0
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 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   Trainee TraineeMember since: 24.08.2004, 01:34Posts: 123 Likes: 2
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 09.09.2011, 10:30 
Why does this very simple script give me an actionmap default user does not exist error?
  Beginner BeginnerMember since: 07.09.2011, 01:19Posts: 4 Likes: 0
 

 Post Topic: Re: How To Enable Third Person View
PostPosted 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