Uncap inward normal velocity deflection from spring ceiling and isolate 5s occlusion test
This commit is contained in:
parent
62089dcff3
commit
47175cf12a
2 changed files with 18 additions and 14 deletions
|
|
@ -227,6 +227,20 @@ namespace RustToDust.Tests
|
|||
var provokedSpec = tourists[0];
|
||||
var clearedSpec = tourists[1];
|
||||
|
||||
// Keep AI contenders safely inside the safe circle and other spectators far away so they don't kill player or steal clearance
|
||||
for (int i = 1; i < session.State.Contenders.Count; i++)
|
||||
{
|
||||
session.SetContenderPose(session.State.Contenders[i].Id, (i - 6) * 12f, 0f);
|
||||
}
|
||||
for (int i = 0; i < session.State.Spectators.Spectators.Count; i++)
|
||||
{
|
||||
var other = session.State.Spectators.Spectators[i];
|
||||
if (other.Id != provokedSpec.Id && other.Id != clearedSpec.Id)
|
||||
{
|
||||
session.SetSpectatorPose(other.Id, -mesa.X, -mesa.Z);
|
||||
}
|
||||
}
|
||||
|
||||
// Place player on the side of the mesa further from center (strictly outside SafeRadius)
|
||||
float xNeg = mesa.X - mesa.RadiusX - 18f;
|
||||
float xPos = mesa.X + mesa.RadiusX + 18f;
|
||||
|
|
|
|||
Loading…
Reference in a new issue