[VERSN2]
//unlocks memory files and installs speedreflect.asi in scripts folder
unlock_memory all
speedreflect auto

if collection_exists GLOBAL\GLOBALB.LZC CarTypeInfos COBRA
	do
		// nothing
	else
		// Add unlock condition
	copy_incareer GLOBAL\GLOBALB.LZC GCareers Main GCarUnlocks IMPREZAWRX COBRA
end


// Move BIN files to the COBRA folder
move_file override relative absolute COBRA\GEOMETRY.BIN CARS\COBRA\GEOMETRY.BIN
move_file override relative absolute COBRA\TEXTURES.BIN CARS\COBRA\TEXTURES.BIN
move_file override relative absolute COBRA\VINYLS.BIN CARS\COBRA\VINYLS.BIN
move_file override relative absolute COBRA\PARTS_ANIMATIONS.BIN CARS\COBRA\PARTS_ANIMATIONS.BIN

// Add CarTypeInfos
import override GLOBAL\GLOBALB.LZC CarTypeInfos CarTypeInfos\COBRA.BIN

// Add DBModelParts
import override GLOBAL\GLOBALB.LZC DBModelParts DBModelParts\COBRA.BIN

// Add Car Sound Tuner ini
move_file override relative absolute CarSoundData\CarTypeMapping\COBRA.ini scripts\CarSoundData\CarTypeMapping\COBRA.ini
move_file override relative absolute CarSoundData\CarDataMapping\85.ini scripts\CarSoundData\CarDataMapping\85.ini
move_file override relative absolute CarSoundData\TurboDataSet\22.ini scripts\CarSoundData\TurboDataSet\22.ini
move_file override relative absolute CarSoundData\TurboDataSet\23.ini scripts\CarSoundData\TurboDataSet\23.ini
move_file override relative absolute CarSoundData\TurboDataSet\24.ini scripts\CarSoundData\TurboDataSet\24.ini

// Add Supercharger Sound
move_file override relative absolute SOUND\TURBO\TURBO_SC_COBRA.abk SOUND\TURBO\TURBO_SC_COBRA.abk
move_file override relative absolute SOUND\TURBO\TURBO_SC_COBRA_MB.abk SOUND\TURBO\TURBO_SC_COBRA_MB.abk
move_file override relative absolute SOUND\TURBO\TURBO_SC_MBZ_MB.abk SOUND\TURBO\TURBO_SC_MBZ_MB.abk
move_file override relative absolute SOUND\TURBO\TURBO_SC_MUSTANG_MB.abk SOUND\TURBO\TURBO_SC_MUSTANG_MB.abk

// Add Unlimiter ini
move_file override relative absolute UnlimiterData\COBRA.ini scripts\UnlimiterData\COBRA.ini 

if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
	do
		update_collection FRONTEND\FRONTB.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
	else
end

combobox "Install Vanilla Quality Neon Menu Logo" "Install High Quality Neon Menu Logo" "Select an action"
	"Install Vanilla Quality Neon Menu Logo"
		// Add badge texture
		add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COBRA SECONDARY_LOGO_COBRA SecondaryLogo\SECONDARY_LOGO_COBRA.dds

	"Install High Quality Neon Menu Logo"
		// Add HQ badge texture
		add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COBRA SECONDARY_LOGO_COBRA SecondaryLogo\HQ\SECONDARY_LOGO_COBRA.dds

end