Static, passive, dynamic, phalanx, spear bracing, spear mod, etc. Call it anything you want it to be. Still WIP.
If You like what I do, please consider subscribing. Thank You
I would like to give you some advice, since I consider your mod very important.
Once the spear hitbox hits an enemy or a horse, the soldier holding the spear should suffer a knockback blow that should push him backwards by deactivating the mode that allows him to aim the spear (so as not to inflict continuous shots in case of further collisions between hitboxes with other horses or with the same one).
characteristics that the kickback should have:
1) The kickback must take place a few hundredths of a second after the impact (or in a much smaller time the greater the momentum exchanged..quotes partly simulates the impact).
2) the kickback must "push" the soldier backwards with a magnitude that should depend on the momentum exchanged.
Since there are not many thrust-related animations in the game, I would tell you to set a momentum that exceeds this threshold, the soldier instead of being pushed backwards, is thrown away (even if he hits the horse that probably makes a bad end).
3) the kickback disables the "aim the spear" mod for the duration of the animation.
If the animation is that of falling to the ground, obviously the time to get back into the pose will be greater.
4) the soldiers, if possible, should keep the spears parallel to the direction of the formation front.
I hope I have been helpful.