Allan Silva
Member
- Joined
- May 30, 2018
- Messages
- 39
- Solutions
- 1
- Reaction score
- 7
-TFS 1.3
Hi
I added the attackspeed system on the server following this reference
The script only run when I put this cod
Player.h
Now script are working, but attackspeed attribute is based on milliseconds and I would like to change it to a percentage. Any ideas what can be changed to do this?
Thanks!
Hi
I added the attackspeed system on the server following this reference
TFS 1.X+ - [C++] item attack speed (attr key not recognized)
Hello, so I'm trying to have attack speed on each weapon. No errors on compiling, only this error in console: [Warning - Items::parseItemNode] Unknown key value: attackspeed It also doesn't work if it's attackSpeed. Here's what I've done: items.cpp } else if (tmpStrValue == "attack")...
otland.net
The script only run when I put this cod
Player.h
Lua:
uint32_t getAttackSpeed() const {
Item* weapon = getWeapon(false);
if (weapon && weapon->getAttackSpeed() > 0)
return weapon->getAttackSpeed();
return vocation->getAttackSpeed();
}
Now script are working, but attackspeed attribute is based on milliseconds and I would like to change it to a percentage. Any ideas what can be changed to do this?
Thanks!
Last edited: