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

Moderator: Developers

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

Postby Kate » Mon Aug 13, 2012 8:00 pm

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
Kate
Will love and tolerate THE SHIT out of you
 
Joined: 15 Jul 2003
Location: New Jersey, US

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

Postby Enjay » Mon Aug 13, 2012 8:04 pm

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
Enjay
The Force is strong with this one.
 
Joined: 15 Jul 2003
Location: Scotland

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

Postby Nash » Mon Aug 13, 2012 8:07 pm

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 allExpand view

const fixed_t minvel 
= -4*FRACUNIT;    // landing speed from a jump with normal gravity // [ISurvivor] changed to -4 from -8
 
User avatar
Nash
http://twitter.com/ISurvivorGame
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

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

Postby Ral22 » Mon Aug 13, 2012 8:34 pm

Since I'm working on a game with increased jump height, I'd like to see something like this as well.
User avatar
Ral22
stoneshipMapper
 
Joined: 05 Sep 2010
Location: Lone Isle

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

Postby randi » Mon Aug 13, 2012 10:25 pm

Both added in r3829.
User avatar
randi
Site Admin
 
Joined: 09 Jul 2003

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

Postby Kate » Mon Aug 13, 2012 10:32 pm

hehe yaay, thanks!
User avatar
Kate
Will love and tolerate THE SHIT out of you
 
Joined: 15 Jul 2003
Location: New Jersey, US

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

Postby Nash » Mon Aug 13, 2012 10:54 pm

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
Nash
http://twitter.com/ISurvivorGame
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

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

Postby randi » Mon Aug 13, 2012 11:05 pm

Just the sounds.
User avatar
randi
Site Admin
 
Joined: 09 Jul 2003

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

Postby Enjay » Tue Aug 14, 2012 4:47 am

randi wrote:Both added in r3829.

Brilliant! Thanks very much. :D
User avatar
Enjay
The Force is strong with this one.
 
Joined: 15 Jul 2003
Location: Scotland

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

Postby Ed the Bat » Tue Aug 14, 2012 6:41 am

Will this affect how fast a player must be moving on a low-friction floor to *grunt when hitting a wall?
User avatar
Ed the Bat
 
Joined: 03 May 2012
Location: Maryland, US


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest