• 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!

Lua Paladin stop atacking when using potion [tfs 1.2]

pepito999

New Member
Joined
Jul 19, 2011
Messages
34
Solutions
1
Reaction score
0
Hello everyone,

I have a problem that when a paladin attacks with a range weapon and uses a potion, it stops attacking. I already added swing="yes" to the weapon I am using at weapon.xml, but it didn't work. It used to work on my 0.3.6 tfs .I would really appreciate if someone could help me. Thank you!
 
I found part of the solution on another thread,

Code:
virtual bool interruptSwing() const {
return true;
}

Code:
bool interruptSwing() const final {
return true;
}

You have to change the code shown before from weapons.h to:

Code:
virtual bool interruptSwing() const {
return false;
}

Code:
bool interruptSwing() const final {
return false;
}

This changes let me shoot the arrows faster than before but still not as fast as attacking without using potions. If someone could help me, I would really appreciate it. Thank you!
 
Back
Top