Skip to content

Virtualization #100

@armazac

Description

@armazac

A new system is being developed to virtualize AI and handle spawn/despawn.

Implemented

  • All OF group spawning is now handled by the new OVT_VirtualizationManagerComponent. Groups are given waypoints when created. This includes base patrols, town patrols, radio tower defense and QRFs.
  • Manager will track location of the group and spawn if a player is within spawn distance, despawn when not
  • While despawned they will move in a straight line at a fixed speed to each waypoint virtually, when spawned they should be given the appropriate waypoints to continue walking normally
  • When spawning it will spread the groups across multiple frames
  • All virtualized groups are persisted to EPF and loaded on startup

To-Do

  • Extensive testing and bugfixing
  • Persist group members to virtualization + EPF so when killed they stay dead. Currently you need to kill the whole group or they will respawn as a full group if players leave spawn distance and come back. Alternatively maybe remove groups from virtualization when any member of them dies, ie just keep them spawned until wiped out
  • Add server configuration for spawn distance, allowing server owners to set it to a large number if they just want to keep all AI spawned if they have a beefy server

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    Status

    In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions