Raised This Month: $ Target: $400
 0% 

fall damage sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-10-2011 , 06:34   Re: fall damage sound
Reply With Quote #2

Quote:
Originally Posted by avril-lavigne View Post
I know there are alot of no fall damage plugin. but I want just play sound on landing

not just usual landing after jump . but after falling down

I know how to get fall event

PHP Code:

#define FALL_VELOCITY 350

if(entity_get_float(idEV_FL_flFallVelocity) >= FALL_VELOCITY) { 
but what shoud I register .. event damage. or what.
Ham_TakeDamge

check the last parameter iDamageBits & DMG_FALL

to eliminate falldamage
PHP Code:
public fwdPlayerHurt(iVictimiInflictoriAttackerFloat:flDamageiDamageBits)
{
     if(
iDamageBits DMG_FALL)
     {
          return 
HAM_SUPERCEDE;
     }

Doc-Holiday is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode