Internal Swingtime
Posted: Mon May 17, 2010 7:49 am
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
Unfortunately my C is not good enough to understand this, can any dev explain this?
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;