Overthrow.Arma4
Overthrow.Arma4 copied to clipboard
Virtualization
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