Changing fall velocity limit that gives damage on the player
Before giving more details I don't want any Ham_TakeDamage suggestions.
Well, I've done some tests and found out that the fall velocity that damages the player is 550. Is it possible to make this 300? |
Re: Changing fall velocity limit that gives damage on the player
Try with this player offset : m_flFallVelocity ( 251 )
|
Re: Changing fall velocity limit that gives damage on the player
Create a global var that checks if the player fell. Check his fall velocity in PreThink, and if it's 300(or higher) - assign 1 to the var(or true, whatever).
When he is on the ground, if the var's value is 1/true, then he just fell. Reset the var, and damage the player according to the falling velocity(I don't know what calculation is needed). |
Re: Changing fall velocity limit that gives damage on the player
Guess all of those value are hardcoded.
For half-life : Code:
#define PLAYER_FATAL_FALL_SPEED 1024// approx 60 feetCode:
if ( (FBitSet(pev->flags, FL_ONGROUND)) && (pev->health > 0) && m_flFallVelocity >= PLAYER_FALL_PUNCH_THRESHHOLD )Forgot that, but i guess you have HLSDK. Code:
float CHalfLifeMultiplay :: FlPlayerFallDamage( CBasePlayer *pPlayer ) |
Re: Changing fall velocity limit that gives damage on the player
Quote:
Quote:
Quote:
|
Re: Changing fall velocity limit that gives damage on the player
i will be on this thread, very interesting stuff, i am going to implement this on HnS..
|
| All times are GMT -4. The time now is 02:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.