Customization and Upgrades

Table of Contents

Overview

RCCP includes a comprehensive vehicle customization and upgrade system. Vehicles can be painted, fitted with different wheels, equipped with spoilers, decorated with decals, illuminated with neon underglow, and upgraded with performance parts. All customizations are saved automatically and persist across sessions.

The customization system is managed by RCCP_Customizer, which coordinates several specialized manager components on each vehicle.

Customization Types

Paint

Change the vehicle's body color using the RCCP_VehicleUpgrade_PaintManager. Supports full RGB color selection through UI sliders or preset color buttons.


// Apply a paint color via script
vehicle.Customizer.PaintManager.Paint(Color.red);

Wheels

Swap the vehicle's wheels from a registry of available wheel models defined in RCCP_ChangableWheels (loaded from Resources). Each wheel model includes the mesh, material, and collider radius.


// Change wheels by index
vehicle.Customizer.WheelManager.UpdateWheel(wheelIndex);

Spoilers

Add or change rear spoilers from a collection of spoiler prefabs. Each spoiler model is a child prefab that gets instantiated on the vehicle.

Decals

Apply sticker/decal textures to the vehicle body. The decal placement system allows positioning and rotating decals on the vehicle surface through the RCCP_UI_DecalSetLocation UI component.

Neon Lights

Underglow neon lighting with customizable colors. Neon lights are placed under the vehicle body and emit colored light onto the ground surface.

Sirens

Emergency/police light effects with multiple siren patterns. Uses the RCCP_PoliceLights component for light animation.

Performance Upgrades

Performance upgrades improve vehicle capabilities through a 5-level progression system. Each level increases the relevant parameter by a multiplier.

Upgrade Types

UpgradeComponentEffect
EngineRCCP_VehicleUpgrade_EngineIncreases maximum torque via efficiency multiplier (1.15x to 2.0x)
SpeedRCCP_VehicleUpgrade_SpeedIncreases maximum speed
HandlingRCCP_VehicleUpgrade_HandlingImproves steering response and cornering
BrakeRCCP_VehicleUpgrade_BrakeEnhances braking power

Upgrade Levels

Each upgrade type has 5 levels. The upgrade manager tracks the current level and applies the appropriate multiplier:

LevelTypical Multiplier
01.0x (stock)
11.15x
21.3x
31.5x
41.75x
52.0x

Applying Upgrades via Script


// Upgrade engine to level 3
vehicle.Customizer.UpgradeManager.UpgradeEngine(3);

// Upgrade brakes to level 2
vehicle.Customizer.UpgradeManager.UpgradeBrake(2);

Customization Managers

Each customization type has a dedicated manager component:

ManagerResponsibility
RCCP_VehicleUpgrade_PaintManagerPaint color application and storage
RCCP_VehicleUpgrade_WheelManagerWheel model swapping
RCCP_VehicleUpgrade_SpoilerManagerSpoiler installation
RCCP_VehicleUpgrade_DecalManagerDecal placement and management
RCCP_VehicleUpgrade_NeonManagerNeon light configuration
RCCP_VehicleUpgrade_SirenManagerSiren type selection
RCCP_VehicleUpgrade_UpgradeManagerPerformance upgrade progression
RCCP_VehicleUpgrade_CustomizationManagerOverall coordination and save/load

Save and Load

Customizations are automatically saved using PlayerPrefs with a per-vehicle save name. When a vehicle loads, its customization manager reads saved data and applies all previously configured customizations.

Deleting Saved Customizations


// Reset a vehicle's customization to defaults
vehicle.Customizer.Delete();

The UI includes a delete button (RCCP_UI_DeleteCustomization) that resets all saved customization data for the current vehicle.

Customization UI

RCCP includes a complete customization UI system with panels for each customization type:

UI ComponentPurpose
RCCP_UI_CustomizerMain customization menu controller
RCCP_UI_ColorColor preset buttons
RCCP_ColorPickerBySlidersRGB slider color picker
RCCP_UI_WheelWheel selection buttons
RCCP_UI_SpoilerSpoiler selection
RCCP_UI_DecalDecal selection
RCCP_UI_DecalSetLocationDecal position/rotation editor
RCCP_UI_NeonNeon color customization
RCCP_UI_SirenSiren type selection
RCCP_UI_UpgradePerformance upgrade purchase UI

Editable in Lite

The customization system works fully at runtime in Lite. All paint, wheel, upgrade, and cosmetic changes function normally. The customization inspector editors have some parameters locked, but the runtime UI and API provide full access to all customization features.

Next Steps