vgstation13 icon indicating copy to clipboard operation
vgstation13 copied to clipboard

Smoother AI tracking

Open SECBATON-GRIFFON opened this issue 10 months ago • 3 comments

[tweak]

What this does

redoes #34059 but without the retracking stuff as it caused some controversy actually locks the AI eye to the tracked mob so it gets updated on movement rather than every second. adds an event that detects if someone ~~enters or~~ exits the cameranet on a turf to check if the AI can keep following them through static instead of checking every second. (with the usual exception for borgs with a camera) ~~does not apply when tracking stops via usual means like moving away or jumping somewhere else.~~ changes the snowflaked checks for AI blocking items to be a variable called "blocks_tracking" that does its functionality.

Why it's good

less jumpy when tracking mobs

Changelog

:cl:

  • tweak: AIs can now track mobs as they move, rather than jumping to them every second.
  • tweak: AI messages when they stop being able to follow a target are now more general, as cameras are not the only thing that stops tracking.

SECBATON-GRIFFON avatar Apr 20 '24 01:04 SECBATON-GRIFFON

has your parole been lifted yet?

SonixApache avatar Apr 23 '24 03:04 SonixApache

There are multiple issues with this PR, and in my testing I found at least one more problem.

Now tracking Ian on camera.
No longer tracking Ian on camera.
Now tracking Dessert on camera.
ADMIN LOG: [Dilt]/(H.E.R.B.I.E.) deleted Dessert at (264,257,1)

I had jumped on the old local test server, used the track button to look at Ian, then used the button to look at Dessert. I qdel'd Dessert, and after a moment, the camera suddenly jumped back to Ian.

And when tracking Ian, it wasn't even smooth. Just an instant jump. I saw the step changes to try and help the tracking, but it doesn't seem to work?

just added /event/destroyed to the thing that stops tracking

SECBATON-GRIFFON avatar May 13 '24 16:05 SECBATON-GRIFFON

Tested it again, this time simply tracked Salem. Camera followed normally. I moved away, getting the no longer tracking Salem message. Camera kept getting forced back to Salem every time the cat moved. So I tried tracking Ian. Salem was no longer getting tracked! But now the problem was centered on Ian.

should be fixed now

SECBATON-GRIFFON avatar Jun 21 '24 01:06 SECBATON-GRIFFON

holy shit, at long last

SonixApache avatar Aug 21 '24 21:08 SonixApache