INFO: camera.xc

Published by ORT on

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #109820
    ORT
    Member

    (Due to the lack of an official wiki and thorough public documentation of the XVM mod, this is an attempt to publish the ins and outs of XVM and cover all of the .xc files. This is intended to be a live document. Everytime there are changes to XVM, the finalized changes will be incorporated in the document. Additions/comments/corrections to the information here are welcome. If you have any comment, or noticed anything missing or needing more clarification, or anything that is wrong, please post a comment.)

     

    camera.xc is the config file for camera settings in arcade, sniper or strategic (arty) mode. A zoom indicator can also be enabled/disabled. The camera config can be enabled/or disabled completely. By default, camera settings are disabled.
     
    Default camera.xc config file explained.

    /**
     * Camera settings
     */
    {
      “camera”: {
        // false – disable camera settings.
        “enabled”: false, <<<< set to true to enable

        // true – disable switching to sniper mode by mouse wheel
        “noScroll”: false, <<<< set to true to enable switching to sniper mode by scrolling the mouse wheel. !!! This will be removed from XVM because game client will implement it in 0.9.15 !!!

        // Arcade mode
        “arcade”: {
          // Camera distance range: [min, max], default – [2, 25]
          “distRange”: [2, 25],
          // Start distance (null for default behavior – saved state from the last battle)
          “startDist”: null,
          // Scroll sensitivity (default = 5)
          “scrollSensitivity”: 5,
          // false – disable dynamic camera
          “dynamicCameraEnabled”: true
        },

        // Postmortem mode <<<< after your vehicle is destroyed.
        “postmortem”: {
          // Camera distance range: [min, max], default – [2, 25]
          “distRange”: [2, 25],
          // Start distance (null for default behavior – maximum distance)
          “startDist”: null,
          // Scroll sensitivity (default = 5)
          “scrollSensitivity”: 5,
          // false – disable dynamic camera
          “dynamicCameraEnabled”: true
        },

        // Strategic mode (arty)
        “strategic”: {
          // Camera distance range: [min, max], default – [40, 100]
          “distRange”: [40, 100],
          // false – disable dynamic camera
          “dynamicCameraEnabled”: true
        },

        // Sniper mode
        “sniper”: {
          // List of multiplicities for the sniper mode
          // Default: [ 2, 4, 8 ]. It’s possible to use a greater number of values.
          “zooms”: [2, 4, 8], <<<< set your zoom preferences here, e.g., 2, 4, 8, 12, 16, 20.
          // Start zoom value (null for default behavior – last used state)
          “startZoom”: null,

          // Zoom Indicator
          // Global macros allowed in all fields
          “zoomIndicator”: {
            // false – disable.
            “enabled”: true, <<<< can be disabled by setting “enabled” to false, if your sight mod already has an intergrated zoom indicator.
            // Field position relative to screen center
            “x”: 150,
            “y”: 30,
            // Field size
            “width”: 100,
            “height”: 40,
            // Opacity in percents (0..100)
            “alpha”: 100,
            // Horizonatal text alignment (left, center, right)
            “align”: “left”,
            // Vertical text alignment (top, center, bottom)
            “valign”: “center”,
            // Background color
            “bgColor”: null,
            // Border color 
            “borderColor”: null,
            // Shadow settings
            “shadow”: { “distance”: 0, “angle”: 0, “color”: “0x192E0E”, “alpha”: 100, “blur”: 3, “strength”: 7 },
            // Text format
            “format”: “<font face=’$TitleFont’ color=’#95CB29′ size=’16’>x{{zoom}}</font>” <<<< the default format as shown will show your current zoom value as “x2”, or “x4”, or “x8”.
          },

          // false – disable dynamic camera
          “dynamicCameraEnabled”: true
        }
      }
    }
     

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.