Jump to content

LMS

Console Variables

 

LSPD First Response 0.4 features a new settings and console variable system. Like in previous versions, all settings can be set using the lspdfr.ini file in the lspdfr subfolder. However, they can now also manipulated from the game using the game console for quick testing. Typing in "SetVar" followed by the name of the variable and its value will temporarily - for the session only - change it values. Note that for a few options this will not have any effect as they are evaluated at startup. Example: "SetVar WorldEvents.IntervalMultiplier 2.0f"

 

Main settings

 

Below you can find the most common settings for LSPDFR and what they do. The Default Value does not indicate the value in the release version of lspdfr.ini but the value LSPDFR uses if no value is specified.

 

 

Settings name Type Default Value Description
Main.PreloadAllModels Boolean False

Loads all models that will be used by the mod at startup. This reduces

loading times and possible micro-stuttering during gameplay but will

increase memory usage. If you use many vehicle mods and encounter

texture loss, turning this off might help freeing memory.

Callouts.DisableBigRadar Boolean False

The game radar map is enlarged while a callout is being displayed.

Callouts.Multiplier Integer 250

Likelihood of a callout to happen. The higher, the more likely.

Setting this to zero disables callouts.

WorldEvents.IntervalMultiplier Float 1.0f

Likelihood of a world event to happen. The higher, the more likely.

Setting this to zero disables world events.

WorldEvents.MaxNumberOfEvents Integer 1 Maximum number of world events that can run at the same time.
Holdup.TimeMultiplier Float 1.0f

Multiplier for the response time for the 'Holdup' callout.

A higher multiplier gives you more time, where as a lower

multiplier gives you less time.

Ambient.DisableAmbientGameCopSpawnBlock Boolean False

LSPDFR disables ambient cops to be created by the game in favor

of our own spawning system. If you are using a popschedule based

mod to spawn police units, turn this option on to disable the block.

Ambient.DisablePlayerFlashlightOverride Boolean False

LSPDFR replaces the default game flashlight when equipped.

Setting this option to true disables that.

AmbientSpawn.SpawnFrequency Integer 5000

Specifies the frequency in milliseconds for attempting to spawn

ambient units in the area.

AmbientSpawn.MaxCopsInArea Integer 5

Specifies the maximum number of ambient cops in an area

at any time. Setting this to zero disables ambient spawning.

BackupManager.LastBackupRequestResetInterval Integer 30000

Time in milliseconds after a backup request is considered a new

request. A new request will not be evenly distributed with prior

requests and will usually spawn as close as possible.

KeyHandler.AlwaysDisplayKeyboardKeys Boolean False

Specifies whether helpboxes in the game indicating what keys to

use will always display the keyboard controls.

Networking.DisableServerCommunication Boolean False

Specifies whether any kind of LSPDFR server communication

should be disabled.

Networking.DisableDiscordRichPresence Boolean False

Specifies whether Discord Rich Presence for LSPDFR should be

disabled.

 

Chase settings

 

Settings name Type Default Value Description
Chase.CopsCanCommandeerVehicles Boolean True Specifies whether cops can commandeer civilian vehicles during chases.
Chase.DisableCameraFocus Boolean False

Specifies whether the game camera focusing on suspects during chases

should be disabled.

Chase.DisableTrafficDensityAdjustments Boolean False

Specifies whether adjusting traffic density during chases should be

disabled.

Chase.ExhaustionInterval Integer 25000

Specifies the time in milliseconds after which a suspect can become

exhausted.

Chase.ExhaustionDuration Integer 30000

Specifies the duration in milliseconds a suspect can be exhausted.

Chase..MaxUnitsPerSuspect Integer 10

Sets the maximum amount of cops that can be assigned to an

individual suspect during a chase.

Chase.MaxUnits Integer 20

Sets the overall maximum amount of cops that can be assigned

to a chase.

Chase.SuspectEscapeTime Integer 90000

Sets the time after which a suspect is considered to have escaped a chase.

to a chase.

Chase.TrafficDensityBudget Integer 2

Sets the vehicle budget during chases.

to a chase.

Chase.TrafficDensityMultiplier Float 0.5

Sets the traffic density multiplier during chases.

to a chase.

 

 

Performance settings

 

Settings name Type Default Value Description
AmbientSpawn.DisableRandomUnits Boolean False

Specifies whether ambient units can spawn. It is recommended to

enable this setting when encountering texture loss.

Chase.DisableAmbientAI Boolean False

Specifies whether ambient vehicle AI is affected during chases. It is

recommended to enable this setting when encountering performance

issues during chases.

PoliceStation.DisableAmbientSpawn Boolean False

Specifies whether ambient units can spawn and populate a police

station. It is recommended to enable this setting when

encountering texture loss.

 

 

Developer settings

 

Settings name Type Default Value Description
Main.DisableAmbientScriptHooks Boolean False

RAGE Plugin Hook limits the number of native addresses that can be

resolved at runtime. LSPDFR makes use of this feature on every load

resulting in a crash after reloading a few times (usually around 20-25).

During plugin development it is hence recommended setting this to

true.



User Feedback

Recommended Comments

There are no comments to display.



Guest
This is now closed for further comments

×
×
  • Create New...