-
Notifications
You must be signed in to change notification settings - Fork 76
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
attack speed extra delay BUG #103
Comments
I tried to look on it some days ago, couldnt find a solution. I think it has to do with creature onThink, as if it just check for a new attack on onThink, and when you mess with the interval between attacks with any action you fuck up attack speed, because there is no trigger for a next attack on 2 seconds, it will need to wait for onThink event. I'm not sure though, just a conjecture. |
i still think its somewhere here: i was think its becouse of OTSYS_TIME is not count miliseconds, i got similar problem here: and in our atk delay case its ALWAYS around 666ms delay! // edit. not always! read new posts! also its happend only when we use runes with offensive exhaust like sd, explo, magic wall, fire bomb. |
There is no relation at all with this other Lua issue you had, that was more related to proper use of Lua, OTSYS_TIME is not related to that in any way. Try to check when doAttacking is triggered, I'm nearby sure the actual issue is that it's triggered in an interval that is not related with attack speed once there is a interrupt swing action. As if what is happening is something along this lines:
As if it never triggered in the proper time. Not that the interval is 1 sec, just to give the idea. |
https://github.com/TwistedScorpio/OTHire/blob/master/source/player.cpp#L3743
Its clear say if not combat exhausted (2 sec in config) use weapon. Weird things happend when we change combat exhaust for example from 2 sec to 1.7, Its not lower our delay to 2.33. it will not change anything. Its working like: if no combat exhaust then use weapon. @up |
I think we can blame Maybe create a different exhaust condition for magic spells? |
May be related: |
nothing change, its just enchantment for fast attack ots's. |
@LuisPro this works? |
@diegorodriguesvieira |
@peonso |
@peonso see here, otland/forgottenserver#2109 |
Just updating the issue to say it's totally what I said earlier, since attacks are triggered on |
Good Morning, Dear @peonso, Can you convert this fix otland/forgottenserver#2109 into OTHire? There are some difference e.g in configmanager.cpp there are all on "m_confInteger" not "boolean" and in luascript.cpp there aren't any line with "registerEnumIn". Thanks in advance |
atk speed = 2 sec
ofensive exhaust = 2 sec
distance_weapon_interrupt_swing = true
like on rl tibia
how its works now:
auto attack on 0sec0ms then i shot sd on 0sec300ms so now i broke auto attack speed and next auto attack should go on 2sec300ms but its go on ~2sec900ms (more than half second later)
how its should work:
testes on rl files:
auto attack on 6sec12frame, next auto attack on 8sec12frame, so next auto attack should be on 10sec12frame but i shot rune on 9sec20frame and i broke auto attack speed, and next bolt go exacly on 11sec20frame
30frame = 1000ms = 1 second
The text was updated successfully, but these errors were encountered: