>use prepared melee weapon if needed
How does the game know if it's needed? I'm sure there's some kind of melee build in there but the explanation isn't really helping.