Skip to main content

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.

Constructors​

MemberWhat it is
EquipmentStateSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

18 private and internal fields
MemberWhat it is
private float animationStageOverlapHow much the dummy's pose animation stages overlap. Default 0.25.
private EquipmentCustomizationRoom customizationRoomPrefab of the EquipmentCustomizationRoom spawned in equipment mode.
private float dummyMaterializationDurationSeconds the room takes to appear or disappear. Default 2.
private float dummyPoseAnimationDurationSeconds the dummy takes to move into a copied pose. Default 10.
private float flashDurationSeconds the camera flash lasts on a pose copy. Default 0.1.
private float flashExposureBrightness of the camera flash, scaled by how directly the player looks at the dummy. Default 12.
private float flashFadeoutDurationSeconds the camera flash takes to fade. Default 0.8.
private bool isUsingCameraFlashOnPoseCopyWhether copying a pose flashes the screen and plays the pose sound. Off by default.
private bool isUsingDummyPosesWhether the dummy copies the player's pose when they hold still. On by default.
private float maxPositionDeltaToTriggerPoseMost the head and hands can move and still count as holding still. Default 0.01.
private float maxRotationDeltaToTriggerPoseMost the head and hands can rotate and still count as holding still. Default 1.
private float minFreezeTimeToTriggerPoseSeconds the player must hold still before the pose is copied. Default 0.5.
private float minTimeBetweenPosesLeast time between two pose copies. Default 1 second.
private float poseCheckingStartDelaySeconds after entering the mode before pose copying starts. Default 10.
private RemoteEquipmentModeVisuals remoteDummyEffectsVisuals spawned in front of a remote player who is in equipment mode.
private float spawnDistanceFromPlayerHow far in front of the player's feet the room or remote visuals are placed. Default 1.5.
private float timeToBeForcedOutOfModeWhenOutsideBoundarySeconds outside the room boundary before the player is pushed out of the mode. Default 3.
private float timeToToggleEquipmentStateBacking field for TimeToToggleEquipmentState, default 1.5. Nothing in the decompiled code reads it.

Properties​

MemberWhat 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: