Internal Swingtime

Here you can post threads specific to the current release of the core (099)
Post Reply
Terciob
Master Poster
Posts: 90
Joined: Fri Nov 07, 2008 3:47 am

Internal Swingtime

Post by Terciob »

Hello!
I gonna chance weapons speed from "speed" (internal) to "Delay" in Ms for best control through scripts, but i cannot find the correct delay size to match with old "speed" in weapon cfg. So, searching inside pol source in a hope to find a swing calculation i got this:

Character::schedule_attack() in charactr.cpp

Code: Select all

clocks = POLCLOCKS_PER_SEC * static_cast<polclock_t>(15000L);
clocks /= (dexterity() + 100) * weapon_speed;
Unfortunately my C is not good enough to understand this, can any dev explain this?
Post Reply