Counter-Strike: Source: Difference between revisions
DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Release Date = {{Game.InfoBox.ReleaseDate|Windows|November 1, 2004}} | PCGamingWiki = Counter-Strike:_Source }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = Counter-Strike Source.exe|Arguments = |WorkingDirectory = |Primary = True}} }} {{Game.Scripts.NameChange |Name = Name Change Script |Description = |RequiresAdmin = False |Contents = <syntaxhighlight lang="powershell" line> $NewName = $ar...") |
DoctorDalek (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
{{Game.InfoBox | {{Game.InfoBox | ||
|Cover = cover.jpg | |Cover = cover.jpg | ||
|Developers = | |||
{{Game.InfoBox.Developer|Valve}}{{Game.InfoBox.Developer|Hidden Path Entertainment}} | |||
|Publishers = | |||
{{Game.InfoBox.Publisher|Valve}} | |||
|Release Date = | |Release Date = | ||
{{Game.InfoBox.ReleaseDate|Windows|November 1, 2004}} | {{Game.InfoBox.ReleaseDate|Windows|November 1, 2004}} | ||
| PCGamingWiki = Counter-Strike:_Source | |Genres = | ||
}} | {{Game.InfoBox.Genre|Shooter}} | ||
|PCGamingWiki = Counter-Strike:_Source}} | |||
{{Game.ActionBox | {{Game.ActionBox | ||
|Actions = | |Actions = | ||
{{Game.ActionBox.Row|Name = Play | {{Game.ActionBox.Row|Name = Play Counter-Strike: Source|Path = {InstallDir}\hl2.exe|Arguments = -game cstrike|WorkingDirectory = |Primary = True}} | ||
}} | }} | ||
{{Game.Scripts.Install | |||
|Name = Install Script | |||
|Description = | |||
|RequiresAdmin = False | |||
|Contents = | |||
<syntaxhighlight lang="powershell" line> | |||
$Display = Get-PrimaryDisplay | |||
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "AutoConfigVersion" -Value 1 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenWidth" -Value $Display.Bounds.Width -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenHeight" -Value $Display.Bounds.Width -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenWindowed" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenMSAA" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenMSAAQuality" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "MotionBlur" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ShadowDepthTexture" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "VRModeAdapter" -Value -1 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenMonitorGamma" -Value "2.2" -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_forceaniso" -Value 2 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_picmip" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_trilinear" -Value 1 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_vsync" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_forcehardwaresync" -Value 1 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_parallaxmap" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_reducefillrate" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "r_shadowrendertotexture" -Value 1 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "r_rootlod" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "r_waterforceexpensive" -Value 1 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "r_waterforcereflectentities" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_antialias" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_aaquality" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_specular" -Value 1 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_bumpmap" -Value 1 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_hdr_level" -Value 0 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_colorcorrection" -Value 1 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "VendorID" -Value 32902 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "DeviceID" -Value 6422 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "DXLevel_V1" -Value 90 -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "User Token 2" -Value """ -Force | |||
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "User Token 3" -Value """ -Force | |||
</syntaxhighlight> | |||
}} | |||
{{Game.Scripts.Uninstall | |||
|Name = Uninstall Script | |||
|Description = | |||
|RequiresAdmin = False | |||
|Contents = | |||
<syntaxhighlight lang="powershell" line> | |||
Remove-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike" -Force -Recurse | |||
</syntaxhighlight> | |||
}} | |||
{{Game.Scripts.NameChange | {{Game.Scripts.NameChange | ||
|Name = Name Change Script | |Name = Name Change Script | ||
|Description = | |Description = | ||
|RequiresAdmin = False | |RequiresAdmin = False | ||
|Contents = <syntaxhighlight lang="powershell" line> | |Contents = | ||
<syntaxhighlight lang="powershell" line> | |||
Write-ReplaceContentInFile -Pattern 'PlayerName=(.+)' -Substitution "PlayerName=$NewPlayerAlias" -FilePath "$InstallDirectory\rev.ini" | |||
Write-ReplaceContentInFile -Pattern 'ClanTag=(.+)' -Substitution "ClanTag=" -FilePath "$InstallDirectory\rev.ini" | |||
Write-ReplaceContentInFile -Pattern '^name "(.+)"' -Substitution "name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\cstrike\cfg\config.cfg" | |||
Write-ReplaceContentInFile - | |||
Write-ReplaceContentInFile - | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |
Latest revision as of 00:40, 22 February 2024
Developers | |
---|---|
ValveHidden Path Entertainment | |
Publishers | |
Valve | |
Release Date | |
Windows: November 1, 2004 | |
Genres | |
Shooter | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Play Counter-Strike: Source | {InstallDir}\hl2.exe | -game cstrike | True |
Install Script
$Display = Get-PrimaryDisplay
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "AutoConfigVersion" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenHeight" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenWindowed" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenMSAA" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenMSAAQuality" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "MotionBlur" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ShadowDepthTexture" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "VRModeAdapter" -Value -1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "ScreenMonitorGamma" -Value "2.2" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_forceaniso" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_picmip" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_trilinear" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_vsync" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_forcehardwaresync" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_parallaxmap" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_reducefillrate" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "r_shadowrendertotexture" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "r_rootlod" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "r_waterforceexpensive" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "r_waterforcereflectentities" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_antialias" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_aaquality" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_specular" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_bumpmap" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_hdr_level" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "mat_colorcorrection" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "VendorID" -Value 32902 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "DeviceID" -Value 6422 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "DXLevel_V1" -Value 90 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "User Token 2" -Value """ -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike\Settings" -Name "User Token 3" -Value """ -Force
Uninstall Script
Remove-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\cstrike" -Force -Recurse
Name Change Script
Write-ReplaceContentInFile -Pattern 'PlayerName=(.+)' -Substitution "PlayerName=$NewPlayerAlias" -FilePath "$InstallDirectory\rev.ini"
Write-ReplaceContentInFile -Pattern 'ClanTag=(.+)' -Substitution "ClanTag=" -FilePath "$InstallDirectory\rev.ini"
Write-ReplaceContentInFile -Pattern '^name "(.+)"' -Substitution "name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\cstrike\cfg\config.cfg"