Left 4 Dead

From LANCommander
Developers
Turtle Rock StudiosCertain AffinityValve
Publishers
Valve
Release Date
Windows: November 17, 2008
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Left 4 Dead left4dead.exe -novid {InstallDir} True

Install Script

$Display = Get-PrimaryDisplay

Write-ReplaceContentInFile -Pattern '"setting.defaultres"\s+"(.+)"' -Substitution """setting.defaultres"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\left4dead\cfg\video.txt"
Write-ReplaceContentInFile -Pattern '"setting.defaultresheight"\s+"(.+)"' -Substitution """setting.defaultresheight"" ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\left4dead\cfg\video.txt"

Name Change Script

Write-ReplaceContentInFile -Pattern '^name "(.+)"' -Substitution "name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\left4dead\cfg\config.cfg"
$NewPlayerAlias | Out-File -FilePath "$InstallDirectory\bin\steam_settings\force_account_name.txt"