Increase knife damage for me
Hello,
I'd like to ask you if anyone knows how to increase knife damage ONLY for the 'id' (for the people who choose that they want their damage increased). I have done this before but when I clicked it, it automatically increased the damage to all the server. Thanks forwardly. |
Re: Increase knife damage for me
Search , and you are in the wrong forum, for suggestion and request please post in the suggestion and requests forum.
|
Re: Increase knife damage for me
You could at least give me a suggestion for that .. I've been looking for that for hours..
|
Re: Increase knife damage for me
Hook TakeDamage function by Ham & check if damage bits is equal to DMG_SLASH. (Not tested)
public [HookedFunctionName](VictimID, InflictorID, AttackerID, Float:Damage, DamageBits) { ... } |
Re: Increase knife damage for me
Quote:
Well, it doesn't work this way, but thank you for your reply. |
Re: Increase knife damage for me
Quote:
|
Re: Increase knife damage for me
Quote:
|
Re: Increase knife damage for me
Quote:
|
Re: Increase knife damage for me
Instead of checking if the dmg contain dmg_slash check if the attacker is valid, he is not the victim and hes holding a knife.
Also hook takedmg pre, use HamSetParamFloat to change the amount of dmg... HamSetParamFloat(4, newdmg) |
Re: Increase knife damage for me
Quote:
|
| All times are GMT -4. The time now is 12:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.