EquipmentStateSettings
A class in Root.Township, Alta.PlayerStates.
Settings for the equipment player state, where a dummy copy of the player appears in front of them to change gear, and copies their pose when they hold still.
- Listed in Players and characters
- Inherits or implements
PlayerStateSettings - Derived types
EquipmentStateSettings.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
EquipmentStateSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
18 private and internal fields
| Member | What it is |
|---|---|
private float animationStageOverlap | How much the dummy's pose animation stages overlap. Default 0.25. |
private EquipmentCustomizationRoom customizationRoom | Prefab of the EquipmentCustomizationRoom spawned in equipment mode. |
private float dummyMaterializationDuration | Seconds the room takes to appear or disappear. Default 2. |
private float dummyPoseAnimationDuration | Seconds the dummy takes to move into a copied pose. Default 10. |
private float flashDuration | Seconds the camera flash lasts on a pose copy. Default 0.1. |
private float flashExposure | Brightness of the camera flash, scaled by how directly the player looks at the dummy. Default 12. |
private float flashFadeoutDuration | Seconds the camera flash takes to fade. Default 0.8. |
private bool isUsingCameraFlashOnPoseCopy | Whether copying a pose flashes the screen and plays the pose sound. Off by default. |
private bool isUsingDummyPoses | Whether the dummy copies the player's pose when they hold still. On by default. |
private float maxPositionDeltaToTriggerPose | Most the head and hands can move and still count as holding still. Default 0.01. |
private float maxRotationDeltaToTriggerPose | Most the head and hands can rotate and still count as holding still. Default 1. |
private float minFreezeTimeToTriggerPose | Seconds the player must hold still before the pose is copied. Default 0.5. |
private float minTimeBetweenPoses | Least time between two pose copies. Default 1 second. |
private float poseCheckingStartDelay | Seconds after entering the mode before pose copying starts. Default 10. |
private RemoteEquipmentModeVisuals remoteDummyEffects | Visuals spawned in front of a remote player who is in equipment mode. |
private float spawnDistanceFromPlayer | How far in front of the player's feet the room or remote visuals are placed. Default 1.5. |
private float timeToBeForcedOutOfModeWhenOutsideBoundary | Seconds outside the room boundary before the player is pushed out of the mode. Default 3. |
private float timeToToggleEquipmentState | Backing field for TimeToToggleEquipmentState, default 1.5. Nothing in the decompiled code reads it. |
Properties
| Member | What it is |
|---|---|
float AnimationStageOverlap { get; } | How much the dummy's pose animation stages overlap (0 to 1). |
EquipmentCustomizationRoom CustomizationRoom { get; } | The room prefab with the dummy, spawned for the local player. |
float DummyMaterializationDuration { get; } | How long the room takes to appear and disappear, in seconds. |
float DummyPoseAnimationDuration { get; } | How long the dummy takes to copy the player's pose. |
float DummySpawnDistanceFromPlayer { get; } | How far in front of the player's feet the dummy appears. |
float FlashDuration { get; } | How long the camera flash lasts when the pose is copied. |
float FlashExposure { get; } | Brightness of the camera flash. |
float FlashFadeoutDuration { get; } | How long the camera flash takes to fade. |
bool IsUsingCameraFlashOnPoseCopy { get; } | Whether a camera flash plays when the dummy copies the pose. |
bool IsUsingDummyPoses { get; } | Whether the dummy copies the player's pose at all. |
float MaxPositionDeltaToTriggerPose { get; } | Most the player's bones may move and still count as holding still. |
float MaxRotationDeltaToTriggerPose { get; } | Most the player's bones may rotate (degrees) and still count as holding still. |
float MinFreezeTimeToTriggerPose { get; } | How long the player must hold still before the pose is copied. |
float MinTimeBetweenPoses { get; } | Shortest time between two pose copies. |
float PoseCheckingStartDelay { get; } | Delay after entering the state before pose checking starts. |
RemoteEquipmentModeVisuals RemoteDummyEffects { get; } | Effect other players see in front of someone in this state. |
override Type StateType { get; } | Always EquipmentState. |
float TimeToBeForcedOutOfModeWhenOutsideBoundary { get; } | How long the player can stay outside the room's boundary before leaving the state. |
float TimeToToggleEquipmentState { get; } | Time setting for toggling the state. Not read anywhere in this build. |
Used in
Members of other types that take, return or hold a EquipmentStateSettings: