[Question]How To Increase Bullet Damage
how to increase our bullet damage when we fire useing any weapon??
|
Re: [Question]How To Increase Bullet Damage
You should have searched first because it's not a rare question but anyway. Here is the code:
PHP Code:
amx_cvar amx_damage_increase "1.5" - will multiply damage by 1.5 . |
Re: [Question]How To Increase Bullet Damage
Attacker not being alive doesn't matter here and you are not checking if the damage is from a bullet. You should return HAM_HANDLED after SetHamParamFloat().
Modified TakeDamage to increase damage from bullets only. PHP Code:
PHP Code:
|
Re: [Question]How To Increase Bullet Damage
Sorry, i just found that code posted be exolent and i thought it was right. Next time i will check.
|
Re: [Question]How To Increase Bullet Damage
What happens if you don't return HAM_HANDLED?
|
Re: [Question]How To Increase Bullet Damage
I'm not sure, try it. Documentation states to use HANDLED when you've changed something.
Code:
HAM_IGNORED - Nothing happened, the call continues. |
Re: [Question]How To Increase Bullet Damage
After reading the include, I think it's just for compatibility with other plugins and post hooks. Like if you were to use GetHamReturnFloat it would return the old value unless you used override or superceded it.
|
Re: [Question]How To Increase Bullet Damage
1 Attachment(s)
thanks all, i have another question,, i'm trying to merg this code to use it with cod mw4 and try make increase our bullet damage with upgrade is it possible?
here is sma to check if needed |
Re: [Question]How To Increase Bullet Damage
Quote:
|
Re: [Question]How To Increase Bullet Damage
increase damage worked put how to upgrade it as same as in the sma if you know how?
|
| All times are GMT -4. The time now is 17:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.