Пример #1
0
 void RefreshSize()
 {
     if (altMode.val)
     {
         objectScale.SetFloatParamValue("scaleX", breastAltSize.val.x);
         objectScale.SetFloatParamValue("scaleY", breastAltSize.val.y);
         objectScale.SetFloatParamValue("scaleZ", breastAltSize.val.z);
     }
     else
     {
         objectScale.SetFloatParamValue("scaleX", breastSize.val.x);
         objectScale.SetFloatParamValue("scaleY", breastSize.val.y);
         objectScale.SetFloatParamValue("scaleZ", breastSize.val.z);
     }
 }
Пример #2
0
        public override void Init()
        {
            if (containingAtom.type != "ISSphere")
            {
                SuperController.LogError($"Plugin is for use with 'ISSphere' atom, not '{containingAtom.type}'");
                return;
            }

            Atom parent = containingAtom.parentAtom;

            if (parent == null || parent.type != "Person")
            {
                SuperController.LogError($"Atom must be parented to a 'Person' type atom");
                return;
            }

            InitParentPluginReference(parent);
            objectScale = containingAtom.GetStorableByID("scale");
            objectScale.SetFloatParamValue("scale", 2f);
            containingAtom.GetStorableByID("AtomControl").SetBoolParamValue("collisionEnabled", false);
            altMode = NewToggle("altMode");

            RefreshSize();
        }