Making the player taller

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Sonnyboy
Posts: 1156
Joined: Sun May 03, 2009 5:40 pm
Location: A pinch here, a dab there
Contact:

Making the player taller

Post by Sonnyboy »

Is there any easy way to edit the player to make him taller?

I don't mean the guy you see when you turn on the chasecam. I mean the field of view. If his view camera was a bit higher, the DN3D textures I'm using might seem porportionate.
I want it to look like the player is wearing lift shoes, basically. :)
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Making the player taller

Post by Ceeb »

You can define the viewheight if you make a new playerpawn.
User avatar
Snarboo
Posts: 2599
Joined: Tue Nov 29, 2005 4:37 am

Re: Making the player taller

Post by Snarboo »

Setting the viewheight to 44 or 46 is pretty good for making the player seem taller. Weasel's Diaz mod made the player's view height pretty high, so try looking at that for inspiration.
User avatar
Sonnyboy
Posts: 1156
Joined: Sun May 03, 2009 5:40 pm
Location: A pinch here, a dab there
Contact:

Re: Making the player taller

Post by Sonnyboy »

Hmmm... well....
that theoretically should have worked, but I got an error...

It says that it got an unexpected error in the definition, I changed the value of the viewheight to 8, so it would be very noticible. It got an error in definition, said it got an unexpected 8. :?
Last edited by Sonnyboy on Sat Oct 03, 2009 11:51 am, edited 1 time in total.
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Making the player taller

Post by Ceeb »

Just put up your goddamn code.
User avatar
Snarboo
Posts: 2599
Joined: Tue Nov 29, 2005 4:37 am

Re: Making the player taller

Post by Snarboo »

Setting the viewheight to 8 would put the player's eyes inside of his shoes.
User avatar
Ethril
Posts: 2677
Joined: Sun Nov 16, 2008 2:59 am
Location: with you in the dark

Re: Making the player taller

Post by Ethril »

Snarboo wrote:Setting the viewheight to 8 would put the player's eyes inside of his shoes.
Something like this?
Spoiler:
User avatar
Enjay
 
 
Posts: 27115
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Making the player taller

Post by Enjay »

Snarboo wrote:Setting the viewheight to 44 or 46 is pretty good for making the player seem taller.
However, it does still mean that the Doomguy's eyes are somewhere in his neck. I find that a viewheight of 52 is reasonably accurate but it does make him seem like something other than the Doomguy.

If you are changing the viewheight, it makes sense to raise the attack offset too because raising the view makes the attack and the view get even further apart than they are normally. I find the following settings work well and also eliminate the issuse that the crosshair doesn't quite point at where a bullet will hit in the default configuration.

DECORATE:

Code: Select all

ACTOR TallGuy : DoomPlayer
{
	Player.ViewHeight 52
	Player.AttackZOffset 24
}
Keyconf:

Code: Select all

clearplayerclasses
addplayerclass TallGuy
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: Making the player taller

Post by Matt »

52!? That seems awfully high... with a viewheight of 48 if I hit Freeze and walk up to a zombieman while keeping my view level, my crosshair is one pixel above his eyes.
User avatar
Enjay
 
 
Posts: 27115
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Making the player taller

Post by Enjay »

Vaecrius wrote:52!? That seems awfully high... with a viewheight of 48 if I hit Freeze and walk up to a zombieman while keeping my view level, my crosshair is one pixel above his eyes.
Good, you should be taller than those shambling ex-humans. They have bad posture you know. :P

With a player height of 56 units, I reckon that the eyes being 4 units below the top of the head is about right. If we assume the Doomguy is a six footer, then every pixel is about 1.3 inches (72/56=1.285714 recurring). So, 4 units puts the eyes 5.14 inches below the top of his head (which, on a quick measurement, is slightly greater than the distance between the top of my head and the middle of my eyes). Of course, with Doom's screwy height/width proportions and sprite offsetting, there is plenty of leeway. It is far from an exact science working out where the Doomguy's eyes should be. ;)
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: Making the player taller

Post by Matt »

But if you look at sprites only and adjust for the doomguy's helmet, isn't he actually a bit shorter? :P
User avatar
Enjay
 
 
Posts: 27115
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Making the player taller

Post by Enjay »

OK, I'll concede that his eyes are probably about 5.5 pixels below the top of the PLAYA1 sprite rather than 4. The POSS and SPOS sprites have their eyes at 6 units below the top of the head so maybe 50, rather than 52, is a better height and the attack Z offset would need to be adjusted accordingly too. However, I still like my 52 when making non Doomguy players, especially ones that are supposed to be tall.

Like I said, it's not an exact science. :)
User avatar
Sonnyboy
Posts: 1156
Joined: Sun May 03, 2009 5:40 pm
Location: A pinch here, a dab there
Contact:

Re: Making the player taller

Post by Sonnyboy »

Enjay wrote: DECORATE:

Code: Select all

ACTOR TallGuy : DoomPlayer
{
	Player.ViewHeight 52
	Player.AttackZOffset 24
}
Keyconf:

Code: Select all

clearplayerclasses
addplayerclass TallGuy
Sorry to bounce the thread, but I just got around to testing this (yeah, yeah, shame on me) and it doesn't work. My DECORATE and KEYCONF codes say exactly what you posted, but the player's height remains at its pathetic lowest. Am I making a mistake, or am I supposed to assume something? I'm confused. Someone tell me what I'm doing wrong?
:)

Edit-- Never mind, I got it to work.
Locked

Return to “Editing (Archive)”