Page 1 of 1
Define player head's height
Posted: December 15th, 2010, 1:56 pm
by PVince81
From the player's point of view (first person) it feels that the player is small on my map, and I'd like to increase its head height.
I don't want to rescale the whole map using smaller cubes to achieve this.
Is it possible to define the player's head height ? Do I need to modify the player's model for that ?
Thanks,
Vincent
Re: Define player head's height
Posted: December 15th, 2010, 2:42 pm
by arcones
I'm assuming you want to do something like this:
Youtube: Sandbox Cabzilla (albeit a bit smaller ;D)
Open your Sandbox folder. Packages>models>ogre>Look for the md3 file and the last bit of coding in it should say something like:
Code: Select all
//adjust height
mdltrans 0 0 17
mdlbb 0 0 0.93
mdlspec -1
Change the height to whatever you'd like.
If you're looking to change the RC: Packages>models>rc>Look for the md# (I've upgrade my folder, so the md file is a bit different than yours). Search for the code:
Change the height to whatever you'd like.
Now, if you want to change each RC's height specifically, go into each folder (red, blue, pink) and search for the same thing in each md# file.
Have a one,
-Arcones
Re: Define player head's height
Posted: December 16th, 2010, 10:11 am
by Leo_V117
No... Arc... thats just the Model height... Its in one of the src folders. Something to do with Eye Height. and its in C++
Re: Define player head's height
Posted: December 16th, 2010, 11:52 am
by arcones
Yeah, I know. But technically this would work as well... It just saves time.
Re: Define player head's height
Posted: December 19th, 2010, 5:11 pm
by PVince81
Thanks for the hints.
I tried changing the RC's model scale, but it doesn't affect the eye height in first person mode. It only shows me a bigger RC in third person mode. Also it seems there is no eye height defined in the model itself. It must be somewhere else. I've hoped it could be changed without having to hack the source.
Re: Define player head's height
Posted: December 19th, 2010, 6:43 pm
by kid matthew
Pvence You can't hack an open source Engine.....
Re: Define player head's height
Posted: December 19th, 2010, 7:09 pm
by chocolatepie33
why would you need a higher head height? Also, you could try to make the ground lower and use clip (invisible wall) to give the illusion (as long as you don't switch into 3rd person mode) of being higher, maybe.
I wish we had Aardappel here. He could help us. (Actually, maybe I'll go do that now!)
Re: Define player head's height
Posted: December 20th, 2010, 3:28 am
by PVince81
I want a higher head height because I figured out the eye is too low in my map, and I don't want to change my whole complex map to fit this.
Some people could want to have bigger models for the player, or power ups / spells / curses that would make the player grow.