About 3D Phone Booth Preview Support

Synopsis

This hack adds 3D previews to the phone booth in place of the usual 2D sprites.

Configuration

This is an example configuration for this hack with comments explaining how it works.

This configuration file goes into 3DPhoneBoothPreviewSupport.ini in the root of your mod.

We do not recommend copying this entire example into your mod. We recommend only using what is necessary.

[Miscellaneous]
; BackgroundPath
;	The path to the P3D file containing the background of the scene.
; 	Defaults to art\\frontend\\scrooby\\resource\\pure3d\\rewardbg.p3d
BackgroundPath=art\\frontend\\scrooby\\resource\\pure3d\\rewardbg.p3d

; DarkenLockedCars
;	Set whether or not to darken cars that are not unlocked yet.
; 	Defaults to 0.
DarkenLockedCars=0

; FullScreen
;	Set whether or not the background is FullScreen.
; 	Defaults to 1.
FullScreen=1

; Radius
;	Set the radius of the cars on the pedestal.
; 	Defaults to 3.6.
Radius=3.6

Usage

Frontend Changes

This hack requires changes to the frontend file art\frontend\scrooby\ingame.p3d to function. Requiring this hack in a mod without making these changes will cause a crash when opening phone booths.

The specific changes involve adding the chunks highlighted in the image below to Phonebooth.pag.

3DPhoneBoothPreviewSupport_FrontendChanges.png

We distribute an official mod called 3D Phone Booth Previews that utilizes this hack and makes these necessary changes. It also re-configures the hack to fit it's specific implementation of the feature. If you want to implement this feature into your mod you have a few options:

  • Mods that do not modify art\frontend\scrooby\ingame.p3dshould be compatible with the 3D Phone Booth Previews mod right away.
  • Mods that do modify this file can copy the aforementioned chunks into their copy of it and addSupportedMod=3DPhoneBoothPreviews to their Meta.ini to add support for being enabled alongside that mod.
  • Mods can force this feature on by copying the chunks, requiring the hack and copying 3DPhoneBoothPreviewSupport.ini from 3D Phone Booth Previews.

This hack also requires any phone booth cars to have a preview model in art\frontend\dynaload\cars

Back to top