Inter‐pack Compatibility ‐ Basics - boot2big/immersive_vehicles_vanity GitHub Wiki

In general, Immersive Vehicles Vanity uses convention standards from the Trin pack series (TCP, TPP, etc). However as an upcoming and innovative pack, new features and parts being added means that some parts may not be compatible with other packs yet.

For parts positioning there are centering guide models in /resources/modeltemplates/ consisting of the in-game models, modified to help with positioning, rotating and re-scaling them as necessary.

Custom Variables

Interactional

Variable Note
hatch_* left/right,frontleft/frontright/rearleft/rearright

Door animations in IVV use the hatch_ prefix instead of door_, as this prevents them form automatically closing when the vehicle starts moving while still being somewhat readable.

Animational

Variable Note
engine_revlimit_backfire Used for backfire pop noises, tends to be referenced by the vehicle for visual backfiring
vehicle_odometer Displays this vehicle's distance traveled since initial creation
vehicle_radiator_size 0-5, what size of radiator to use

Functional

Variable Note
vehicle_size Generally -1 to 1, positive value indicates this vehicle is larger than average while negative values indicate that this vehicle is smaller
vehicle_wheels_locked Boolean, used for wheel physics/animations which show that the wheels have locked up
vehicle_has_ac Boolean, vehicle has an air conditioning system
vehicle_is_convertable Boolean, vehicle has a convertible hard/soft top, sunroof, T-tops, etc.

Examples of VMs/CVs used for Custom Variables

Variable Modifiers

Odometer

    {
      "variable": "vehicle_odometer",
      "maxValue": 2.14748365E9,
      "animations": [
        {
          "animationType": "translation",
          "variable": "speed",
          "axis": [0.0,1.3889E-5,0.0]
        }
      ]
    },

Constant Variables

Variables marked with //* must be set to 1, otherwise they may not work correctly!

Engine Bench dyno stats

  "constantValues": {
    "engine_obdiii_present": 1.0,//*
    "engine_obdiii_horsepower": 239.0,
    "engine_obdiii_torque": 282.0
  },

Vehicle stats

  "constantValues": {
    "vehicle_size": 0.125,
    "vehicle_has_ac": 1.0,//*
    "vehicle_is_convertable": 1.0//*
  },