This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

fall damage sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 08-10-2011 , 06:29   fall damage sound
Reply With Quote #1

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.
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
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
avril-lavigne
Banned
Join Date: Apr 2009
Old 08-10-2011 , 06:46   Re: fall damage sound
Reply With Quote #3

ok thanks.
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-10-2011 , 13:03   Re: fall damage sound
Reply With Quote #4

If you only want to replace fall sound when the player falls and gets damage then you can hook FM_EmitSound for when the normal fall damage sound is played and replace it with your sound.
__________________
Bugsy is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-10-2011 , 13:47   Re: fall damage sound
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
If you only want to replace fall sound when the player falls and gets damage then you can hook FM_EmitSound for when the normal fall damage sound is played and replace it with your sound.
Correct, also TakeDamage could be triggered after the sound so it would be useless to hook it.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-10-2011 , 14:22   Re: fall damage sound
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
Correct, also TakeDamage could be triggered after the sound so it would be useless to hook it.
He asked ho to block it too
Doc-Holiday is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-10-2011 , 14:57   Re: fall damage sound
Reply With Quote #7

He says he is aware of no fall damage plugins BUT just wants to play sound on landing.
__________________
Bugsy is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-10-2011 , 15:40   Re: fall damage sound
Reply With Quote #8

Quote:
Originally Posted by Bugsy View Post
He says he is aware of no fall damage plugins BUT just wants to play sound on landing.
I miss read that last partmy bad.
Doc-Holiday is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 08-11-2011 , 13:28   Re: fall damage sound
Reply With Quote #9

I need code to create fall damage ratio
example
dmg * 0.8 = 80% of fall damage

I need to get fall dmg its easy , then how to reduce it
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 08-11-2011 at 13:34.
avril-lavigne is offline
katna
Senior Member
Join Date: May 2010
Old 08-11-2011 , 13:54   Re: fall damage sound
Reply With Quote #10

Check Exolent Xp Mod to see
katna is offline
Reply



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 05:09.


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