Check Slash
Hi, i just wanted to know, is there a way to check in takedamagepre a slash and a stab ? I want to lower the slash damage, without touching to the stab damage.
Thx |
Re: Check Slash
Check attacker's button bitsum for IN_ATTACK. Like so:
PHP Code:
|
Re: Check Slash
So, Something like this will be good ?
PHP Code:
|
Re: Check Slash
I don't think inflictor will equal to attacker.
Also, if you're changing a parameter you have to return HAM_HANDLED. Otherwise it will be ignored by Ham. Here's another way, don't know which is better/more efficient though. Code:
|
| All times are GMT -4. The time now is 21:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.