Paints Reference
Module defined in `lua/common/jbeam/sections/paints.lua`. Applies the metallic paint system to the vehicle object from configuration.
Module defined in lua/common/jbeam/sections/paints.lua. Applies the metallic paint system to the vehicle object from configuration.
Exports
Functions
M.process(vehicleObj, vehicleConfig, vehicle)
Applies paint data from vehicleConfig.paints (or converts from legacy colors). Sets vehicleObj.color, colorPalette0, colorPalette1 from the first three paint entries' baseColor, and calls vehicleObj:setMetallicPaintData(paints) for full metallic paint support.
- Parameters:
vehicleObj- userdata - C++ vehicle objectvehicleConfig- table - Config withpaintsarray (or legacycolors)vehicle- table - Assembled vehicle data (unused)
- Returns:
self(module table, for chaining)
Internal Notes
- Paint structure:
{ baseColor = {r, g, b, a}, ... }with additional metallic properties. - Each paint is validated via
validateVehiclePaint(paint)before use. - Falls back to
convertVehicleColorsToPaints(colors)ifpaintsnot present butcolorsis. - This is the newer paint system;
colors.luahandles the legacy format.
NodeBeam Reference
Module defined in `lua/common/jbeam/sections/nodeBeam.lua`. Processes core structural sections: nodes (position calculation), hydros (hydraulic actuators), ropes, and quads (pressure volumes).
Visual Ropes Reference
Module defined in `lua/common/jbeam/sections/vropes.lua`. Processes visual rope definitions from JBeam data, creating rendered rope objects attached between props.