Deus Ex

From LANCommander
Revision as of 00:41, 22 February 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Ion Storm
Publishers
Eidos InteractiveAspyr Media
Release Date
Windows: June 26, 2000
Genres
AdventureShooterRole-playing (RPG)
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play DeusEx.exe {InstallDir}/System True

Install Script

$Display = Get-PrimaryDisplay

$X = $Display.Bounds.Width
$Y = $Display.Bounds.Height

$FOV = 75

Write-ReplaceContentInFile -Pattern '^FullscreenViewportX=(.+)' -Substitution "FullscreenViewportX=$($Display.Bounds.Width)" -FilePath "$InstallDirectory\System\DeusEx.ini"
Write-ReplaceContentInFile -Pattern '^FullscreenViewportY=(.+)' -Substitution "FullscreenViewportY=$($Display.Bounds.Height)" -FilePath "$InstallDirectory\System\DeusEx.ini"

if (($X / $Y) -eq (16 / 9)) {
    $FOV = 90
} elseif (($X / $Y) -eq (16 / 10)) {
    $FOV = 85
}

Write-ReplaceContentInFile -Pattern '^DesiredFOV=(.+)' -Substitution "DesiredFOV=$FOV.000000" -FilePath "$InstallDirectory\System\DeusEx.ini"
Write-ReplaceContentInFile -Pattern '^DefaultFOV=(.+)' -Substitution "DefaultFOV=$FOV.000000" -FilePath "$InstallDirectory\System\DeusEx.ini"

Name Change Script

Write-ReplaceContentInFile -Pattern '^Name=(.+)' -Substitution "Name=$NewPlayerAlias" -FilePath "$InstallDirectory\System\User.ini"