Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Damage indication is not showing on animation #66

Closed
StrobelArtesao opened this issue Sep 29, 2021 · 3 comments
Closed

Damage indication is not showing on animation #66

StrobelArtesao opened this issue Sep 29, 2021 · 3 comments

Comments

@StrobelArtesao
Copy link
Contributor

There is no visual damage indicationen when you hit some npc or player or if you get hit by it

@StrobelArtesao
Copy link
Contributor Author

I've fixed this by changing the "if ( attacker.cmdlevel >= 2 )" to "if ( attacker.cmdlevel >= 0 )" in mainHitScript00.src

it became this:

function DamageInfo(attacker, defender, basedamage, rawdamage)
if ( attacker.cmdlevel >= 0 )
PrintTextAbovePrivate(attacker, "Rawdamage:"+rawdamage+" Base:"+basedamage, attacker);
endif
if ( defender.cmdlevel >= 0 )
PrintTextAbovePrivate(attacker, "Rawdamage:"+rawdamage+" Base:"+basedamage, defender);
endif
endfunction

@turleypol
Copy link
Member

Is in your combat.cfg SendDamagePacket enabled?

@turleypol
Copy link
Member

I just realized that the ModernDistro has a complete script hook for combat...
Set in systems/combat/config/settings.cfg EnableHook to 0. Or comment the cfg block in syshook.cfg which defines a SystemHook Attack.

Then the core handles combat and it will send the damage when you have in the combat.cfg the SendDamagePacket active

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants