I made Scorpio drift script so that it can face and fire at one direction, while move at another direction, rather than currently Scorpion can only face and fire at the direction it moves.
Also tactical ai to let it kite like riots, trying to keep range instead of sit.
What do you think about this :)
To try, type "!game scorpio" in lobby chat
Current problems
[Spoiler]
By script inertial_piece.lua, backward rotating seems 1 frame later than unit rotation. I made compensation but cannot avoid 1 frame shake everytime unit's rotation velocity changed.
Heavy shake happens when scorpion is passing through a high slope wall( y= k*x + 0*z ) because idk what is Spring.GetUnitRotation doing.
mb its bugged.
Spring.GetUnitRotation returns massive, wrong 3 rotation changes when rotating at slope wall ( y= k*x + 0*z )
e.g. { 0.25 -> -2.71, -3.0 -> -1.0, 1.3 -> -1.8 }
but returns fine rotation changes when rotating at slope wall ( y= 0*x + k*z )
e.g. { -1.29 -> -1.29, 1.48 -> -4.61, 0 -> 0 }
about inertial_piece:
[Spoiler]
inertial_piece can be applied on any pieces's rotation to let then less correlated to the units' rotation, i.e. rotate less when unit rotates.
this can be applied on many units whose turret turns slower than unit itself (e.g. knight and firewalker) and reduce situations e.g. they kite and rotated from front to back, then their turret rotate from back to front to fire.