Closed dennwc closed 1 year ago
Refactor the script to make use of new functionality.
Some of the changes:
Bot
Update
Equip
FindObject
HasTypeName
FindAllObjects
castPhonemes
*Cooldown
*Ready
bool
if war.BerserkReady {
//
Untested!
Refactor the script to make use of new functionality.
Some of the changes:
Bot
interface so that all bot classes can be used equally. We need only anUpdate
method from each.Equip
+FindObject
+HasTypeName
lines were replaced byFindAllObjects
withHasTypeName
arrays - should be more efficient and shorter to write.castPhonemes
function to avoid a "ladder" or timer callbacks. Also, add shortcuts for phonemes.*Cooldown
variables to*Ready
and change the type tobool
. This way it's more natural to read:if war.BerserkReady {
.//
from comments. It's not needed.Untested!