-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plutonium Black Ops 2.bat
66 lines (57 loc) · 2.13 KB
/
Plutonium Black Ops 2.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
@echo off
>nul chcp 65001
cd /d "%~dp0"
title Plutonium Black Ops 2
color 0C
taskkill /f /im "plutonium-launcher-win32.exe" 2>nul
call :title
echo Checking for updates...
echo.
ping -n 5 "plutonium-archive.getserve.rs" >nul 2>&1
if %errorlevel% equ 1 echo Connection Failed.
if %errorlevel% equ 0 (
if not exist "plutonium-updater.exe" (
curl -sLo "plutonium-updater.zip" "https://github.com/mxve/plutonium-updater.rs/releases/latest/download/plutonium-updater-x86_64-pc-windows-msvc.zip"
powershell -noprofile -command "expand-archive -path 'plutonium-updater.zip' -destinationpath '.'"
del /f /q "plutonium-updater.zip"
)
if exist "plutonium-updater.exe" (
plutonium-updater --no-color -qfd "Plutonium Black Ops 2" --archive "2905" -e bin/plutonium-launcher-win32.exe -e bin/steam_api64.dll -e bin/VibeCheck.exe -e games/t4sp.exe -e games/t4mp.exe -e storage/t4 -e games/t5sp.exe -e games/t5mp.exe -e storage/t5 -e games/iw5sp.exe -e games/iw5mp.exe -e storage/iw5
color 0C
)
)
timeout /t 5
:start
set player_name=Plutonium
set /p player_name=<player_name.txt
call :title
echo Player: %player_name%
echo.
echo 1-Player Name
echo 2-Black Ops 2 Multiplayer
echo 3-Black Ops 2 Zombies
echo.
choice /c 123 /n /m "Choose an option: "
call :title
if %errorlevel% equ 1 for /f "delims=" %%i in ('
powershell -NoProfile -Command "$input = Read-Host 'Player Name [a-zA-Z0-9 -_.]'; $filtered = ($input.ToCharArray() | Where-Object { $_ -match '[a-zA-Z0-9 -_.]' }) -join ''; if ($filtered) { $filtered } else { 'Plutonium' }"
') do set "player_name=%%i" && (echo %%i)>player_name.txt & goto :start
if %errorlevel% equ 2 (
set app_id=t6mp
echo Start a private match and join using "/connect IP".
)
if %errorlevel% equ 3 (
set app_id=t6zm
echo 1-Set "/zm_minplayers" [4 Players Max].
echo 2-Start the match and wait for other players.
echo 3-Join using "/connect IP".
)
timeout /t 5
start /wait "" /d "Plutonium Black Ops 2" /b "bin\plutonium-bootstrapper-win32.exe" %app_id% "%cd%" -nocurses -lan -offline -name "%player_name%"
exit
:title
cls
echo.
echo ----Plutonium LAN----
echo.
goto :eof