Is it possible to change the size of the player?

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
Sephiron
Posts: 300
Joined: Mon Jun 28, 2010 1:56 pm
Location: Michigun, pew pew!

Is it possible to change the size of the player?

Post by Sephiron »

Face it, the player is a freaking midget. Almost all my textures are 128 high, so I have to have it sort of cut off. As you would expect, this looks utterly HORRIBLE.

Any way to raise the height of the player by at least maybe 8 pixels?
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Is it possible to change the size of the player?

Post by NeuralStunner »

[wiki=Actor_properties#Height]Height[/wiki], [wiki=Actor_properties#Player.ViewHeight]Player.ViewHeight[/wiki], &c.
User avatar
Sephiron
Posts: 300
Joined: Mon Jun 28, 2010 1:56 pm
Location: Michigun, pew pew!

Re: Is it possible to change the size of the player?

Post by Sephiron »

Kthx
User avatar
Sephiron
Posts: 300
Joined: Mon Jun 28, 2010 1:56 pm
Location: Michigun, pew pew!

Re: Is it possible to change the size of the player?

Post by Sephiron »

Actually wait, this isn't doing anything for me.

In DECORATE

Code: Select all

ACTOR TallGuy : FighterPlayer
{
   Height 32
	Player.viewheight 60
   Player.AttackZOffset 24
}
In KEYCONF

Code: Select all

addplayerclass TallGuy
Any ideas?
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Is it possible to change the size of the player?

Post by NeuralStunner »

Wait, 32? That's tiny. (Average player classes are 56 high. Hexen's are 64.) If your texture is 128 high, you'll want something like Height 128.

ViewHeight should be roughly the height from the sprite's feet as the eyes are.

Also note that AttackZOffset is calculated from the center.
User avatar
Sephiron
Posts: 300
Joined: Mon Jun 28, 2010 1:56 pm
Location: Michigun, pew pew!

Re: Is it possible to change the size of the player?

Post by Sephiron »

It still changes absolutely nothing DDDDD:
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Is it possible to change the size of the player?

Post by NeuralStunner »

Did you add ClearPlayerClasses to your KeyConf?
User avatar
Sephiron
Posts: 300
Joined: Mon Jun 28, 2010 1:56 pm
Location: Michigun, pew pew!

Re: Is it possible to change the size of the player?

Post by Sephiron »

NeuralStunner wrote:Did you add ClearPlayerClasses to your KeyConf?
Oops?
Lol

EDIT:
Useless post, but it DID work :>
Locked

Return to “Editing (Archive)”