how to make the faldamage divided by 2 in this code?
if player suffers from falldamage, i want his falldamage to be divided by 2 (falldamage/2)
PHP Code:
|
Re: how to make the faldamage divided by 2 in this code?
SetHamParamFloat(4, flDamage * 0.5)
|
Re: how to make the faldamage divided by 2 in this code?
add this after "return HAM_SUPERCEDE;" so you will have 0 damage in protect time and 0.5 damage in other time
|
Re: how to make the faldamage divided by 2 in this code?
I did that and installed the plugin.
After playing, i have a strong feeling that ALL damages are manipulated by 0.5. Not only the falldamage! Is takes all your mgazine to kill one person! Can anyone comment? __________________________________ edit: i did another test. This time with a value of 0.001. I am very sure now it is the case that ALL damages are affeted by this value. There has to be a check again, to make sure the damage is falldamage only. |
Re: how to make the faldamage divided by 2 in this code?
If you don't show your code, i suggest you to fix it by yourself :P
|
Re: how to make the faldamage divided by 2 in this code?
Quote:
Yes. Sorry, It's my mistake. PHP Code:
|
Re: how to make the faldamage divided by 2 in this code?
Thanks for your help Flipper_SPb :) :up:
:P |
| All times are GMT -4. The time now is 08:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.