View Single Post
Re: Detecting fall damage in a safe way?
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Detecting fall damage in a safe way? - 13-01-2004

The IGNORE_DAMAGE bits don't work in Counter-Strike.

Do this instead
Code:
// is this player falling fast enough to get some damage ?
if (pEdict->v.flFallVelocity > PLAYER_MAX_SAFE_FALL_SPEED)
look in the SDK's player.h:
Code:
#define PLAYER_FATAL_FALL_SPEED 1024// approx 60 feet
#define PLAYER_MAX_SAFE_FALL_SPEED 580// approx 20 feet



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."

Last edited by Pierre-Marie Baty; 13-01-2004 at 00:46.. Reason: fixed typo
  
Reply With Quote