Allow AI to initiate attacks every frame (#7776)
Closes #7776 (closed). Let's say magic projectile aiming is not a part of that.
Currently a new attack can only be initiated no earlier than 0.25s after the end of the previous attack due to having both a native cooldown (GMST-based, can be instant) and a reaction timer-induced cooldown, but in Morrowind, this isn't the case. So attack updates now occur in one place. I recommend tweaking fCombatDelay* GMSTs. The following footage was recorded with fCombatDelayNPC set to -0.5 (i.e., 50% chance of no cooldown, 50% chance of up to 0.4s cooldown).
0.51.0:
MR:
Obviously this doesn't skip wind-up, so the AI won't just do the equivalent of spam-click. Eyeing Morrowind.exe, it looks roughly like the second video.
Dodging movement behaves... oddly... in Morrowind.exe when you tweak the GMST to be much larger or lower than the default, I think it's okay to leave it on the normal timer (it's not tied to attacks).
- I have read the CONTRIBUTING guidelines
- My code runs locally
- My code passes CI on my fork