• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

What is this classicAttackSpeed parameter at config.lua?

MutantAssassin

Active Member
Joined
Dec 13, 2009
Messages
43
Solutions
1
Reaction score
27
Well, the title says it all. I am trying to get used to TFS (currently it is quite different from otserv) and I saw this classicAttackSpeed parameter at config.lua, along with a warning about high CPU usage. The description in there is not very informative. Could someone please tell me what exactly it does and why it might heavily increase CPU usage?

Cheers,

Assassina Mutante.
 
Solution

you will increase the amount of scheduled events by setting classicAttackSpeed

Having classicAttackSpeed enabled will eventually overload the scheduler and thus cause lags. This of course is dependent on how many players are online and how fast they can attack.

With classicAttackSpeed disabled, the player will stop attacking for a brief moment whenever they do another action (i.e. using a rune, moving et cetera), while they will not once it’s enabled

Evil Puncker

I know nothing
TFS Developer
Joined
May 30, 2009
Messages
8,112
Solutions
218
Reaction score
4,026

you will increase the amount of scheduled events by setting classicAttackSpeed

Having classicAttackSpeed enabled will eventually overload the scheduler and thus cause lags. This of course is dependent on how many players are online and how fast they can attack.

With classicAttackSpeed disabled, the player will stop attacking for a brief moment whenever they do another action (i.e. using a rune, moving et cetera), while they will not once it’s enabled
 
Solution
OP
OP
MutantAssassin

MutantAssassin

Active Member
Joined
Dec 13, 2009
Messages
43
Solutions
1
Reaction score
27
I forgot that, most often, the best source to find out something about otserv is the c++ code lol. Thank you for replying, @Evil Puncker.

EDITED: Offtopic, why can't I edit my original message? I tried to add the "solved" tag in the title, but I couldn't.
 

Evil Puncker

I know nothing
TFS Developer
Joined
May 30, 2009
Messages
8,112
Solutions
218
Reaction score
4,026
I forgot that, most often, the best source to find out something about otserv is the c++ code lol. Thank you for replying, @Evil Puncker.

EDITED: Offtopic, why can't I edit my original message? I tried to add the "solved" tag in the title, but I couldn't.
you just need to click this:
2021-09-01 03_36_50-Lua - [TFS 1.3] How to make condition damage increase over time _ OTLand.png
 
Top