[Decorate] Player adjust for minimum falling speed w/ *grunt
Moderator: GZDoom Developers
[Decorate] Player adjust for minimum falling speed w/ *grunt
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.
Re: [Decorate] Player adjust for minimum falling speed w/ *g
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.
Re: [Decorate] Player adjust for minimum falling speed w/ *g
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:
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
- 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
Since I'm working on a game with increased jump height, I'd like to see something like this as well.
Re: [Decorate] Player adjust for minimum falling speed w/ *g
hehe yaay, thanks!
Re: [Decorate] Player adjust for minimum falling speed w/ *g
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?
Re: [Decorate] Player adjust for minimum falling speed w/ *g
Just the sounds.
Re: [Decorate] Player adjust for minimum falling speed w/ *g
Brilliant! Thanks very much.randi wrote:Both added in r3829.
- 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
Will this affect how fast a player must be moving on a low-friction floor to *grunt when hitting a wall?

