[Decorate] Player adjust for minimum falling speed w/ *grunt

Moderator: GZDoom Developers

Post Reply
User avatar
Kate
... in rememberance ...
Posts: 2975
Joined: Tue Jul 15, 2003 8:06 pm

[Decorate] Player adjust for minimum falling speed w/ *grunt

Post by Kate »

Basically what I need right now is some way to prevent the player from playing *grunt if they've fallen a certain height - because right now, increasing the player's jump height will make them grunt every single time they hit the ground after a jump--even if they should technically be able to fall such a height gracefully without actually hitting the ground that hard.
User avatar
Enjay
 
 
Posts: 27234
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: [Decorate] Player adjust for minimum falling speed w/ *g

Post by Enjay »

Related (I guess) a property to set how far (fast?) the player has to be falling before he lets out his aaaaaaaaaAAAAAAAHHHH! falling yell. I have used this feature but you only ever hear it when the falls are very, very far and I'd like to hear it a little more often.
User avatar
Nash
 
 
Posts: 17505
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [Decorate] Player adjust for minimum falling speed w/ *g

Post by Nash »

I actually had the need for the opposite - I wanted the player grunt to be more "sensitive". Since my player class is shrunk down, the probability of it happening is less, so I had to find a way to increase its "sensitivity" to grunting.

I had to modify it in the source, but a modder-exposed option would be much appreciated.

p_mobj.cpp, P_ZMovement(), line 2300:

Code: Select all

const fixed_t minvel = -4*FRACUNIT;    // landing speed from a jump with normal gravity // [ISurvivor] changed to -4 from -8
 
User avatar
Ral22
Posts: 531
Joined: Sun Sep 05, 2010 12:09 pm
Preferred Pronouns: He/Him
Location: The Fortress of Dr. Radiaki
Contact:

Re: [Decorate] Player adjust for minimum falling speed w/ *g

Post by Ral22 »

Since I'm working on a game with increased jump height, I'd like to see something like this as well.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: [Decorate] Player adjust for minimum falling speed w/ *g

Post by randi »

Both added in r3829.
User avatar
Kate
... in rememberance ...
Posts: 2975
Joined: Tue Jul 15, 2003 8:06 pm

Re: [Decorate] Player adjust for minimum falling speed w/ *g

Post by Kate »

hehe yaay, thanks!
User avatar
Nash
 
 
Posts: 17505
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [Decorate] Player adjust for minimum falling speed w/ *g

Post by Nash »

Awesome, thanks! I have to ask something though, regarding GruntSpeed; the changelog says these properties control the playing of sounds... so does this new property also affect the "squatting" animation or does it only affect the sound being played?
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: [Decorate] Player adjust for minimum falling speed w/ *g

Post by randi »

Just the sounds.
User avatar
Enjay
 
 
Posts: 27234
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: [Decorate] Player adjust for minimum falling speed w/ *g

Post by Enjay »

randi wrote:Both added in r3829.
Brilliant! Thanks very much. :D
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Re: [Decorate] Player adjust for minimum falling speed w/ *g

Post by Ed the Bat »

Will this affect how fast a player must be moving on a low-friction floor to *grunt when hitting a wall?
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”