One of the recent updates seems to have broken one of my mods horribly (more specifically,
this one). Basically, the acs script calculates the angle and pitch between you and a target and forces you to face them. Here is a relevant function used in the script:
Code: Select all
Function Int Pitch (Int tid1, Int tid2)
{
Int x, y, z, xy;
x = GetActorX(tid2) - GetActorX(tid1);
y = GetActorY(tid2) - GetActorY(tid1);
z = GetActorZ(tid2) - GetActorZ(tid1);
xy = VectorLength (x, y);
return -VectorAngle(xy, z);
}
This is actually a slightly altered version of [wiki]GetTargetPitch[/wiki] found in the [wiki=Other_useful_functions]other useful functions[/wiki] page. The expected result from this is a pitch that is used as your new view pitch. In recent git versions, if you happen to be above an enemy when you use this, it alters your pitch so you are looking at the ceiling. This worked perfectly fine in 2.8.1.
To test, bind a key to user2, aim at a monster, then press user2 and keep them in line-of-sight while you move around them.