Return to Castle Wolfenstein

From LANCommander
Revision as of 21:54, 8 January 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Gray Matter InteractiveWestlake InteractiveRaster ProductionsSplash DamageNerve Software, LLC
Publishers
id SoftwareActivisionMicrosoft Game StudiosAspyr Media
Release Date
Windows: November 19, 2001
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\Return to Castle Wolfenstein.exe True

Install Script

$Documents = [Environment]::GetFolderPath("MyDocuments")
$Display = Get-PrimaryDisplay

Copy-Item -Path "$InstallDirectory\Profile" -Destination "$Documents\RTCW" -Recurse

Write-ReplaceContentInFile -Pattern 'seta r_customwidth (.+)' -Substitution "seta r_customwidth ""$($Display.Bounds.Width)""" -FilePath "$Documents\RTCW\main\wolfconfig_mp.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_customheight (.+)' -Substitution "seta r_customheight ""$($Display.Bounds.Height)""" -FilePath "$Documents\RTCW\main\wolfconfig_mp.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_mode (.+)' -Substitution "seta r_mode ""-1""" -FilePath "$Documents\RTCW\main\wolfconfig_mp.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_fullscreen (.+)' -Substitution "seta r_fullscreen ""1""" -FilePath "$Documents\RTCW\main\wolfconfig_mp.cfg"

Name Change Script

$Documents = [Environment]::GetFolderPath("MyDocuments")

Write-ReplaceContentInFile -Pattern 'seta name (.+)' -Substitution "seta name ""$NewPlayerAlias""" -FilePath "$Documents\RTCW\main\wolfconfig_mp.cfg"