Songo Krul
New Member
- Joined
- Nov 28, 2018
- Messages
- 2
- Reaction score
- 0
Yo
I want to do attack speed skill (for example 190 as -> 100 hit speed -> 10 hits per 1 sec), i edited creature.h creature think interval (1, 100) and my getAttackSpeed func in player.cpp
My problem is in doAttacking func. Attack speed is not stable - when i'm walking/using runes/clicking on something my AS is stopping or speeding up. i tried to remove scheduler tasks like in few tutorials but it doesn't work. Also when i'm attacking with fist (without weapon) my server crashes (idk why lol)
my player.cpp:
[C++] Attack Speed Problem - Pastebin.com
I want to do attack speed skill (for example 190 as -> 100 hit speed -> 10 hits per 1 sec), i edited creature.h creature think interval (1, 100) and my getAttackSpeed func in player.cpp
My problem is in doAttacking func. Attack speed is not stable - when i'm walking/using runes/clicking on something my AS is stopping or speeding up. i tried to remove scheduler tasks like in few tutorials but it doesn't work. Also when i'm attacking with fist (without weapon) my server crashes (idk why lol)
my player.cpp:
[C++] Attack Speed Problem - Pastebin.com