Table of Contents

Class NPCPackSettings

Namespace
FishMMO.Server.Implementation.World.SceneServer.AI
Assembly
FishMMO.Server.dll

How a spawner's NPCs fight as a pack: whether they are one at all, and the tactic, focus and ring they share. Authored on an ObjectSpawner, baked into its SpawnerDefinition, and read by the running spawner when it founds an NPCGroup.

[Serializable]
public class NPCPackSettings
Inheritance
NPCPackSettings
Inherited Members

Remarks

Off by default, so every spawner authored before packs existed runs unchanged. A table or scene serialized without this block deserializes it with Enabled false, and a spawner whose pack is off never creates a group.

Inline rather than a separate asset. A pack's tuning is four numbers that belong to one placement; an asset would be a second thing to author, register with the server's addressables and keep out of client groups, for no reuse anyone has asked for. The members and their roles are the spawner's own entries (NPCSpawnableSettings.PackRole).

Fields

Enabled

When true, every NPC this spawner produces joins the spawner's pack.

[Tooltip("Every NPC this spawner produces fights as one pack. Roles come from each NPC entry's Pack Role.")]
public bool Enabled

Field Value

bool

FocusTargeting

When true, the pack's focus follows the target of its living, fighting tank.

[Tooltip("The pack focuses whoever its tank is fighting. DPS and Support members follow the focus.")]
public bool FocusTargeting

Field Value

bool

KiteRotationSpeed

Degrees per second the Kite ring turns.

[Tooltip("Degrees per second the Kite tactic turns the pack's ring.")]
public float KiteRotationSpeed

Field Value

float

Tactic

How the pack arranges itself around the enemy it is fighting. See PackTactic.

[Tooltip("How the pack arranges itself around the enemy it focuses, while members orbit it.")]
public PackTactic Tactic

Field Value

PackTactic

TacticOrbitRadius

Radius, in metres, of the ring a tactic puts its members on while they orbit.

[Tooltip("Metres from the focused enemy at which an orbiting member takes its tactic slot.")]
[Min(0)]
public float TacticOrbitRadius

Field Value

float

Methods

Clone()

A detached copy, for a baked table that must not change when its scene is edited.

public NPCPackSettings Clone()

Returns

NPCPackSettings

The copy.