y0014984 / Advanced-Equipment

Advanced Equipment is a Arma 3 mod, that brings equipment to life, like laptops and lamps.
Other
25 stars 9 forks source link

Remove interaction definitions on new generators #338

Closed y0014984 closed 1 year ago

y0014984 commented 1 year ago

The new generators mostly do not allow dragging, carrying or loading. We do not need to define these features by setting the values to 0 but we can completely get rid of this interaction config block:

        class AE3_Equipment
        {
            displayName = "$STR_AE3_Power_Config_RadarGeneratorDisplayName";

            class AE3_ace3Interactions
            {
                class AE3_aceDragging
                {
                    // Dragging
                    ae3_dragging_canDrag = 0;  // Can be dragged (0-no, 1-yes)
                    ae3_dragging_dragPosition[] = {0, 1, 0};  // Offset of the model from the body while dragging (same as attachTo)
                    ae3_dragging_dragDirection = 0;  // Model direction while dragging (same as setDir after attachTo)
                };
                class AE3_aceCargo
                {
                    ae3_cargo_canLoad = 0;  // Enables the object to be loaded (1-yes, 0-no)
                    ae3_cargo_size = 4;  // Cargo space the object takes
                };
            };
        };

Tihs will reduce the config complexity.

y0014984 commented 1 year ago

solved in #350